-
Notifications
You must be signed in to change notification settings - Fork 2
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
validating supplement number of predefined CMaps #77
Comments
See also Issue #40 and adobe-type-tools/cmap-resources#11 |
As a software vendor selling tools that consume PDF files, we would expect to keep pretty close to the latest published CMaps for those bundled with our products. So I agree that needing the font's Supplement value to be equal to or later than the CMap's Supplement value sounds incorrect. |
I think this is indeed wrong. A CMap is assumed to be updated with additional glyphs over time and each time this happens the supplement value should be increased. The CIDFont that references a CMap should either use an older version of that CMap (a lower supplement value) or the same version. So it should say: But is this not more an issue for the PDF/A TWG? It is not an issue in ISO 32000-2. |
Yes it is for the PDF/A TWG to decide corrections for ISO 19005-4:2020 and report back here so that I can then publish the industry recommended corrections. |
I agree with @DietrichSeggern on this - both in terms of the text and the issue in PDF/A (and PDF/X) |
PDF/A TWG agree to change text "shall be greater than or equal" is wrong and should be replaced by "shall be less than or equal". |
Fixed for PDF/A-4. Cannot find equivalent text in PDF/X-6... |
Indeed the whole chapter "6.2.10.3 Composite fonts" from PDF/A-4 does not have a corresponding text in PDF/X-6. I am not sure whether this is by purpose... |
@lrosenthol maybe you could check if this was on purpose or by accident. I'm reopening this issue leaving just PDF/X-6 label. |
Just for reference, 32000-2:2020 9.7.3 says "In order for a CIDFont and a CMap to be compatible, their Registry and Ordering values shall be the same." (modulo Identity CMaps), and the Supplement row in Table 114 explicitly says "This value shall not be used in determining compatibility between character collections." So the reported issue does not affect 32000-2 itself, although there might be a related problem in allowing a font with a high supplement number to be combined with a CMap with a low supplement number that may not include all of the character codes required for that document. If so, it's not a new problem! |
@lrosenthol - could you please research this issue and the history with PDF/X? |
Well, in the final disposition of comments on the 3rd CD of 15930-9 (date 2017-03-22), there is a table comment from the PL that says:
which was accepted by the committee at the time. In reviewing my notes on completion of application of comments, it is marked as completed. HOWEVER, in checking CD4 (and all subsequent versions of the document), only minor changes were applied within the context of the existing font material. No effort was made - AFAICT - to actually bring over the full spectrum of PDF/A font material. I do recall that there have been various debates over time in TC 130/WG 2/TF 2 about whether the font requirements from PDF/A really applied, in their entirety, to PDF/X - since rules about content extraction aren't relevant in the PDF/X world and only those requirements that impacted visual rendering/fidelity should apply. |
And that makes perfect sense. The goal was to ensure that it was possible to create a file that conformed to both PDF/X and PDF/A, without constraining it beyond what was necessary to conform to each individually. That doesn't imply a need for adding all of the PDF/A constraints to the PDF/X standard or vice versa. But I would definitely argue that, for both PDF/X and PDF/A, the value of supplement should be taken into account in determining compatibility between character collections (see my Jun 30 comment above). So fixing PDF/A and copying the result to X would make sense to me. |
A related discussion at adobe-type-tools repo: adobe-type-tools/cmap-resources#14 |
More related information on the upcoming introduction of GB1-6 CMap: |
And more recently: adobe-type-tools/cmap-resources#16 |
To be discussed at the next PDF TWG (16/11/23) |
Labelled as proposed solution when there isn't to ensure we cover this in the next PDF TWG (so any changes can make it in for the PDF/A-4 and PDF/X-6 dated revisions). |
PDF TWG agree that fixing supplement numbers for PDF/A-4 and PDF/X-6 is best - onus is then on PDF creators to "flatten"/embed CMP should future supplements occur. |
The decision of PDF/A TWG is not to make this change in the dated revisions of PDF/A-4 and PDF/X-6 |
To be discussed during the next PDF TWG meeting since the PDF and PDF/A TWGs seem to be at some disagreement. The PDF Association should at least come up with appropriate communication for stakeholders (both implementers and end-users), even if this is not officially ratified by ISO. |
PDF/A TWG to write an article/whitepaper on this issue with recommendations. |
Parking this errata until PDF/A TWG complete their article/whitepaper. Assigned to Boris as PDF/A TWG chair. |
All PDF/A specifications starting from PDF/A-2 contain the following requirement on the Registry, Ordering, and Supplement in CIDFonts:
The main interest here the second (Otherwise, […]) list item and the case when one of the predefined CMaps is used. While Registry and Ordering are uniquely defined by the name of the predefined CMap, its Supplement is supposed to change (increase) with new versions of PDF. And we have Table 117 in ISO 32000-1 listing these supplement numbers for PDF 1.2-1.5, which was removed from ISO 32000-2.
Would it be correct to say that the PDF/A-2 and PDF/A-3 validator shall assume that the Supplement of a predefined CMap is equal to the largest number of its character collection as listed in ISO 3200-1, Table 117? While PDF/A-4 validator shall assume that the Supplement is fixed based on the following statement from ISO 32000-2: “A PDF processor shall support Adobe-CNS1-7, Adobe-GB1-5, Adobe-Japan1-7 and Adobe-KR-9 character collections”?
Next, it seems that the text "shall be greater than or equal" is wrong and should be replaced by "shall be less than or equal". For example, some PDF creators today specify Supplement value in the CIDFont info as a minimal supplement number that covers all characters in the embedded font. So, normally such number will be less than the Supplement in the CIDSystemInfo dictionary of the CMap.
The text was updated successfully, but these errors were encountered: