-
Notifications
You must be signed in to change notification settings - Fork 6
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
Minor rule issues #36
Comments
ISO 32000-2:2020 Table 255 has an italic "(PDF 1.6)" indicator which is therefore incorrect. ISO 32000-1:2008 is the same presumably because Adobe PDF 1.7 said "PDF 1.6 defines the following values for public-key cryptographic signatures: adbe.x509.rsa_sha1, adbe.pkcs7.detached, and adbe.pkcs7.sha1" . Adobe PDF 1.3 and PDF 1.4 fail to mention any values for I also note that the sentence starting "Other values may be ..." should really be a new para in Table 255 in ISO 32000-2:2020 - it is not PDF 2.0 only. |
See Errata #219 |
For |
See Errata #191 for BorderThickness in |
For I know there are ongoing discussions regarding this wording but, for now (such as Errata #128), I'd like to leave it to reflect the words as currently stated in ISO 32000-2:2020 and not yet corrected by any errata. |
For |
Everything addressed. Thanks! |
Sorry to come back to some of these, but:
I'm starting to worry I've misunderstood the grammar again, but I can see in the current version of the code that It feels like you're reaching for something more like |
I'm after a more logic-predicate-like method for expressing things than a functional programmatic And please don't rely on the code for any significant meaning. It is very much just PoC and thinking out loud... |
Collection/View corrected for PDF 2.0 special case |
I have now run a check over about 800 files - first observation is there are a lot of faults in a lot of PDFs! And I agree with the point you made a few weeks back - the version number in the file is basically fictional.
I did find a few faults in the model, but not looking too bad overall. There are undoubtedly more, but there is just so much noise from actual failures they're hard to spot.
XObjectImageSoftMask
- Width and Height only have to be the same as the parent image ifMatte
is specified.Collection
fieldView
- test should befn:Eval((@View!=C) || fn:IsPresent(Navigator))
FieldCh
fieldOpt
- I read "Each element of the array is either a text string representing one of the available options or an array consisting of two text strings" as saying you can mix the entries - some are strings, some are arrays of two strings. Which is not allowed byArrayOfArrays_2StringsText
XObjectFormType1
-Resources
is set to required, but it's "(Optional but strongly recommended; PDF 1.2)". If the stream uses no resources, it surely doesn't need to be there if it's empty? So should be optional.ArrayOf_4BorderThicknessIntegers
- these don't have to be integers. "The value of each edge shall be a positive number in default user space units representing the border’s thickness"VRI
-CRL
andOCSP
are only required if the objects they refer to exist - which sounds like a complicated way of saying "optional" to me.Signature
- theSubFilter
field makes "adbe.x509.rsa_sha1" allowed after 1.6, should always allowed (been there since 1.3)The text was updated successfully, but these errors were encountered: