Emacs PDF View: Replace current page with file using PDFtk (opens in new tab)
I needed to replace a page in a PDF with another PDF. This was a bit of an annoying process on my iPad involving copying and pasting pages in Noteful and then re-exporting them as a PDF, but it was easy to do in Emacs thanks to ;;;###autoload (defun sacha-pdf-view-replace-current-page-with-file (file) "Replace the current page in PDF View with FILE. Requires pdftk." (interactive "FFile to insert: ") (let ((temp-file (concat (make-temp-name "pdf-view") ".pdf"))) (call-process "pdftk" nil nil n...
Read the original article