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 2024/01/24 06:51:00 UTC
[jira] [Commented] (PDFBOX-5756) Load a PFB font throw an exception
[ https://issues.apache.org/jira/browse/PDFBOX-5756?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17810220#comment-17810220 ]
Tilman Hausherr commented on PDFBOX-5756:
-----------------------------------------
That isn't a PFB file. That's a raw type 1 font. You can't use it unless it is in a PDF together with the /Length1 and /Length2 values.
> Load a PFB font throw an exception
> ----------------------------------
>
> Key: PDFBOX-5756
> URL: https://issues.apache.org/jira/browse/PDFBOX-5756
> Project: PDFBox
> Issue Type: Bug
> Affects Versions: 2.0.30
> Reporter: bai yuan
> Priority: Major
> Attachments: TimesRegular.pfb, image-2024-01-24-14-42-35-102.png
>
>
> 1. Load the attach font file, it will throw an exception:
> {code:java}
> PDType1Font font = new PDType1Font(doc, fontStream); {code}
> 2.The exception as follows:
> !image-2024-01-24-14-42-35-102.png!
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org