Skip to content

Commit c6371e0

Browse files
committed
Use updated flag for inkscape
1 parent bdae6d6 commit c6371e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

session/session.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ func (s *Session) Annotate(page int) (bool, error) {
165165

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

0 commit comments

Comments
 (0)