Move from pdftk to qpdf

Remove dependency on java
This commit is contained in:
2026-04-15 11:39:19 +02:00
parent 579d141d93
commit 452ce78c46
5 changed files with 18 additions and 20 deletions
+1 -1
View File
@@ -360,7 +360,7 @@ Function that opens current pdf page as an SVG file with Inkscape.
(setq filename (read-string "Enter file name:" (car (split-string (file-name-base buffer-file-name) "_"))))
(setq filename (read-string "Enter file name:")))
(setq filepath (concat "/tmp/" filename ".svg"))
(shell-command (concat "pdftk " buffer-file-name " cat " (number-to-string (pdf-view-current-page)) " output /tmp/pdf_page.pdf"))
(shell-command (concat "qpdf --pages " buffer-file-name " " (number-to-string (pdf-view-current-page)) " -- " buffer-file-name " /tmp/pdf_page.pdf"))
(shell-command (concat "pdf2svg /tmp/pdf_page.pdf " filepath))
(start-process "" nil "inkscape" filepath))