Comments (3)
Thanks for letting me know.
I will try to add and test that soon.
from pdfscale.
Possible solutions:
- Ghostscript option:
-dPrinted=false
- Hyperref option "pdfa":
\usepackage[pdfa]{hyperref}
More info:
- https://www.ghostscript.com/doc/9.21/Use.htm
- https://tex.stackexchange.com/questions/245801/local-hyperlinks-broken-after-pdf-processing-with-ghostscript
- https://tex.stackexchange.com/questions/456896/set-the-print-flag-on-links-with-hyperref-to-preserve-them-with-ghostscript-9
Problems:
- The
-dPrinted=false
ghostscript option will have the effect to drop print annotations. - The
pdfa hyperref
option will make the PDF have boxes around the links when printed, making the document less readable.
GS manual info
Conclusions
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?
from pdfscale.
Implemented on v2.4.9 ( e3d826d )
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).
Otherwise
--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
from pdfscale.
Related Issues (20)
- Donation methods HOT 1
- Losing links HOT 3
- Issue with PDF output size HOT 20
- Resize and not preserve scale HOT 5
- Can you resize and fill the page instead of fitting the image? HOT 4
- Architectural paper size names in command line arguments rejected as invalid. HOT 1
- Licence missing HOT 1
- a specific png is being compressed into a jpeg... HOT 4
- Centering objects in resize mode seems to be broken HOT 2
- function isFloatBiggerThanZero() is broken HOT 3
- typo: milimeters -> millimeters HOT 1
- typo: used used -> used HOT 1
- misspelling: usefull -> useful HOT 1
- Unquoted $0 in basename $0 - basename: extra operand issues HOT 2
- How to decrease pdfscale execution time? HOT 1
- Export-Import PDF Metadata - Geospatial data not written to output HOT 5
- Ghostscript complains about the old PDF interpreter being deprecated HOT 4
- pdfscale custom resize appears to generate different flavor of pdf that interferes with gs PDFX (?) HOT 1
- what license? HOT 2
- [BUG]: `-dNEWDPF` deprecated?! Page drawing error! HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pdfscale.