Skip to content

Commit

Permalink
Use updated flag for inkscape
Browse files Browse the repository at this point in the history
  • Loading branch information
oxplot committed Aug 23, 2023
1 parent 597cff9 commit bdae6d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion session/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ func (s *Session) Annotate(page int) (bool, error) {

srcPath := s.srcPath(page)
if _, err := os.Stat(srcPath); err != nil {
cmd := exec.Command("inkscape", "--pdf-page="+strconv.Itoa(page+1), "--export-type=svg",
cmd := exec.Command("inkscape", "--export-page="+strconv.Itoa(page+1), "--export-type=svg",
"--pdf-poppler", "--export-filename="+srcPath+".svg", s.path)
if _, err := cmd.Output(); err != nil {
return false, fmt.Errorf("failed to convert page %d of '%s' to svg: %s", page, s.path, cmdErr(err))
Expand Down

0 comments on commit bdae6d6

Please sign in to comment.