Closed psiccardi closed 5 years ago
Thanks for letting me know.
I will try to add and test that soon.
-dPrinted=false
\usepackage[pdfa]{hyperref}
-dPrinted=false
ghostscript option will have the effect to drop print annotations.pdfa hyperref
option will make the PDF have boxes around the links when printed, making the document less readable.I will probably just set an optional flag for dPrinted=false
.
Still not sure what should be the default though.
What is more important? Preserving URLs or preserving print annotations?
Implemented on v2.4.9 ( https://github.com/tavinus/pdfScale/commit/e3d826d14ae245f8b1d127082b9054c800158dc9 )
Created parameter --print-mode <screen|printer>
to control the dPrinted
parameter on GS calls.
Default behavior is unchanged, it is left empty which will use a print profile if there is an output file set (which we always do at this point).
--print-mode screen
> adds -dPrinted=false
to calls--print-mode printer
> adds -dPrinted
to calls (forces print mode)Forcing print mode is kind of useless at this point, but can become useful in the future.
Cheers!
Gus
Using pdfscale to scale a page doesn't preserve hyperlinks. Could you add the possibility to pass the "-dPrinted=false" parameter to gs? Now i'm using this script with the addition of this parameter (i edited the script in my local machine) to achieve my goal. Anyway, nice work! This script saved me hours of life!