bai yuan created PDFBOX-5697:
--------------------------------
Summary: Load a font “SimsunBold” throw an exception
Key: PDFBOX-5697
URL: https://issues.apache.org/jira/browse/PDFBOX-5697
Project: PDFBox
Issue Type: Bug
Affects Versions: 2.0.24
Reporter: bai yuan
Attachments: image-2023-10-12-10-36-33-803.png, simsunbd.ttf
Load the attach file, it will throws an exception:
{code:java}
PDDocument doc = new PDDocument();
PDPage page = new PDPage();
doc.addPage(page);
PDPageContentStream stream = new PDPageContentStream(doc, page);
TrueTypeFont ttFont = new TTFParser().parse("simsunbd.ttf");
PDFont font = PDType0Font.load(doc, ttFont, true); {code}
!image-2023-10-12-10-36-33-803.png!
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]