Adding /Enforce viewer preference #2509
-
In the PDF 2.0 specification, there's a way to prevent a PDF from being scaled to anything other than 100% when printing (at least in Acrobat; other PDF viewers don't consistently respect it). This is done by by adding these two viewer preferences to the PDF: /Enforce [/PrintScaling] I was able to set
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
This feature has been introduced in PDF 2.0, this is why it has not been implemented yet. I just note a small error : can you confirm it is working? I should be able to propose a PR |
Beta Was this translation helpful? Give feedback.
oups I missed the error:
vp.update({ NameObject('/Enforce'): ArrayObject([NameObject('/PrintScaling')])})