-
Notifications
You must be signed in to change notification settings - Fork 47
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
Invalid Message "True type font doesn't contain cmap table" #1487
Comments
@pbroissiat I wonder which version of veraPDF do you use? When running veraPDF version 1.26 (the latest release) on your test file I see a different warning in the logs:
And a bit more detail in the
When checking the CMap stream (not to confuse with cmap table in the TrueType font), I see that it is indeed broken. For example, it contains lines like this:
which looks like a garbage. |
testok.pdf I have tried developement build and this message (Can't parse CMap CMap 25 0 obj, using default) seems to have disappeared. That's why I chose bad file. I agree that test.pdf was wrong. |
There are also 2 other messages that have disappeared in dev release. I opened an issue for that and answer is that they were wrong messages. Thats's why I have tried dev release but I think it's better to come back to 1.26 release. |
Ah, dev version is indeed a bit different as we are in process of cleaning up undesired log messages. I was able to reproduce your initial log. It has level I do fully agree that |
test.pdf
We got this message with this pdf : True type font doesn't contain cmap table.(object key = 21 0 obj)
We are using CIDFontType2 embedded font and pdf 1.7 documentation says :
These TrueType tables shall always be present if present in the original TrueType font program: “head”, “hhea”, “loca”, “maxp”, “cvt”, “prep”, “glyf”, “hmtx”, and “fpgm”. If used with a simple font dictionary, the font program shall additionally contain a cmap table defining one or more encodings, as discussed in 9.6.6.4, "Encodings for TrueType Fonts". If used with a CIDFont dictionary, the cmap table is not needed and shall not be present, since the mapping from character codes to glyph descriptions is provided separately.
cmap is replaced by CIDToGIDMap. It already contains mapping from CID to glyph.
The text was updated successfully, but these errors were encountered: