-
Notifications
You must be signed in to change notification settings - Fork 80
PDF-Hul produces Invalid Page Dictionary for PDF's with VP dictionaries #662
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Indeed, current way of parsing measurement format arrays is incorrect and will be fixed. The only remaining question is how to present this measurement data in the report. For example, there might be multiple measurement units in X (or Y) direction. In PDF they would be defined as (see Table 262 in PDF 1.7 spec):
We can put them in the report as is:
or make the key names more user friendly. Like:
|
I have found in most of my samples the units and ratio are often not populated, Do they need to be?
|
Both /U and /C entries are required (see Table 263, PDF 1.7 spec). /U entry is defined as:
The example from PDF 1.7 specification suggests the following use:
However, an empty /U value is not forbidden. And this is what the PDF creators might use in cases when the scaling coefficient is not linked to any standard unit. |
1.26RC1 PDF-Hul is still using version 1.12.2, so can't test. |
This one I suspected might be a mistake on my part. Now I'm aware there's a packaging issue, which likely has a similar cause, I'll still double check, but believe it's fixed. |
Just checked PDF-Hul 1.12.3 and this sample PDF is still not well formed. |
I'll look into this and get back to you this week. I think I may have been hard of understanding on the issue, let's see. |
Any PDF which uses a ViewPort dictionary including the newer Geo Supplement throws the PDF-HUL-117 error.
May be related to the parsing of the Measurement key.
AutoCAD-Viewport-Sample1.pdf
The text was updated successfully, but these errors were encountered: