Skip to content
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

Question: created pdf file font resources in the absence of ToUnicode map #693

Open
tayei1997 opened this issue Mar 13, 2024 · 3 comments
Open

Comments

@tayei1997
Copy link

Hello, I got a pdf file and through its Info I found your website and came here through the website.
There seems to be no ToUnicode map in this pdf file, I would like to ask if I didn't find it or it's really not there.
If not, then how do you do the font to CID conversion?

The documents are as follows:
sample1.pdf

@ceztko
Copy link

ceztko commented Mar 21, 2024

As discussed in the PoDoFo issue, the PDF is using the predefined CMap /Encoding /UniGB-UCS2-H, as enlisted in section "9.7.5.2 Predefined CMaps" of ISO 32000-2, which should resolve to an external ToUnicode map. I believe it's an old feature of PDF because now the recommend approach for PDF authoring is having all required the CMap(s) embedded in the PDF (subsetting allows to mantain them small).

@tayei1997
Copy link
Author

So what you are saying is that the way this file uses CMap is an older way? I have also tried to extract this file using poppler and again it ended in failure.

@ceztko
Copy link

ceztko commented Mar 21, 2024

It's a supported PDF feature and it's not going to be deprecated, but PDF/A profiles prohibit from using it (PDA/1-B ISO 19005-1 "6.3.3.1 All CMaps used within a conforming file, except Identity-H and Identity-V, shall be embedded in that file as
described in PDF Reference 5.6.4"), so if there are preservation concerns for the PDF it's not recommended to use it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants