Rainer Pichler created PDFBOX-5212:
--------------------------------------
Summary: Cannot create document containing certain characters in
Symbol font
Key: PDFBOX-5212
URL: https://issues.apache.org/jira/browse/PDFBOX-5212
Project: PDFBox
Issue Type: Bug
Components: PDModel
Affects Versions: 2.0.24
Environment: Windows 10, Java 8
Reporter: Rainer Pichler
Attachments: SymbolFileGenerator.java, output.txt
I try to generate a document using the Standard 14 Font PDType1Font.SYMBOL.
Using this font constant should neither result in embedding and nor require the
font on the document-generating system as each reader supplies a compatible
font (https://pdfbox.apache.org/1.8/cookbook/workingwithfonts.html).
This initally works. But for verifying completeness, I wrote the attached a
sample code that contains all Symbol characters.
Several characters cannot be written (see attached output.txt). There are two
distinct error cases:
1.) Characters not in the file glyphlist.txt, e.g. U+220D ('.notdef') is not
available in this font Symbol encoding: SymbolEncoding
2.) Characters that are in the file glyphlist.txt but cannot be mapped to the
SymbolEncoding due to a missing entry or different name, e.g. U+0394
('Deltagreek') is not available in this font Symbol encoding: SymbolEncoding
In this case, the problem can be addressed by replacing the "wrong" mapping by
(0104, "Deltagreek") in SymbolEncoding.
As I understand, this approach should work as it translates the encoding via
the glyphlist.txt and SymbolEncoding.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]