You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (Jira)" <ji...@apache.org> on 2021/06/11 15:01:01 UTC
[jira] [Commented] (PDFBOX-5212) Cannot create document containing
certain characters in Symbol font
[ https://issues.apache.org/jira/browse/PDFBOX-5212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17361830#comment-17361830 ]
Tilman Hausherr commented on PDFBOX-5212:
-----------------------------------------
The symbol U+220D (∍) is not in the symbol set in the PDF specification (search for "Symbol Set and Encoding")
https://www.adobe.com/content/dam/acom/en/devnet/pdf/pdfs/PDF32000_2008.pdf
For delta, you need to use U+2206, which is "Delta". "Deltagreek" is not in the set.
> 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
> Priority: Minor
> 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: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org