View Single Post
Old 08-27-2018, 04:46 PM   #5
lensmann
Zealot
lensmann ought to be getting tired of karma fortunes by now.lensmann ought to be getting tired of karma fortunes by now.lensmann ought to be getting tired of karma fortunes by now.lensmann ought to be getting tired of karma fortunes by now.lensmann ought to be getting tired of karma fortunes by now.lensmann ought to be getting tired of karma fortunes by now.lensmann ought to be getting tired of karma fortunes by now.lensmann ought to be getting tired of karma fortunes by now.lensmann ought to be getting tired of karma fortunes by now.lensmann ought to be getting tired of karma fortunes by now.lensmann ought to be getting tired of karma fortunes by now.
 
lensmann's Avatar
 
Posts: 143
Karma: 821920
Join Date: Sep 2014
Device: Clara BW, Aura One, Aura HD, Boox Max 2, ThinkBook Plus Gen 2
Quote:
Originally Posted by MadAstra View Post
If you figure out how to do this on Linux I'd love to know. I don't have Acrobat Pro and this has been driving me nuts. Thank you.
In that case, you'll be happy to hear that it turns out to be very simple to do it with ghostscript. All you need to do is create a new PDF forcing ghostscript to use the file's 'screen' options rather than its 'printer' options, by setting -dPrinted=false.

Code:
gs -sDEVICE=pdfwrite -dDOPDFMARKS -dNOPAUSE -dQUIET -dBATCH -dPrinted=false -dPassThroughJPEGImages=true -sOutputFile=output.pdf input.pdf
This gives you a new PDF where the annotations print perfectly.

Note that I tried this on gs version 9.18. If you're using version 9.21 or later and find this doesn't work, you may need to also add -dPreserveAnnots=false.

I've only tried this on Linux, but it should work on any platform where you can install ghostscript.

Last edited by lensmann; 08-27-2018 at 04:55 PM.
lensmann is offline   Reply With Quote