[ 
https://issues.apache.org/jira/browse/PDFBOX-5697?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17774300#comment-17774300
 ] 

Tilman Hausherr commented on PDFBOX-5697:
-----------------------------------------

Use another font or use the 3.0 version, that one skips over the error. I don't 
know why I made the 3.0 version more lenient in PDFBOX-4489.

> 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
>            Priority: Major
>         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: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org

Reply via email to