[
https://issues.apache.org/jira/browse/PDFBOX-4262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16537145#comment-16537145
]
Maruan Sahyoun commented on PDFBOX-4262:
----------------------------------------
As you can see the entry /Root/AcroForm/DR/Font doesn't contain a resource with
the name /HeBo (only /Helv and ZaDb). As a result when looking up the name
/HeBo which is specified in your default appearance string that name can not be
found. What you could do is add the font using that same name to the AcroForm
font resources prior to setting the fields value.
> HeBo font not found exception even though it's present in the system
> --------------------------------------------------------------------
>
> Key: PDFBOX-4262
> URL: https://issues.apache.org/jira/browse/PDFBOX-4262
> Project: PDFBox
> Issue Type: Bug
> Components: AcroForm
> Affects Versions: 2.0.9
> Environment: RHEL 7
> Reporter: Jim Halpert
> Priority: Blocker
> Labels: Appearance
> Attachments: .pdfbox.cache, field.PNG, font.PNG, page2.PNG, pdf.PNG,
> pdf2.PNG
>
>
> Throws an IO Exception without falling back to other fonts. However,
> Helvetica-Bold is available IF HeBo means Helvetica-Bold. See .pdfbox.cache
> file.
>
>
> - Exception : ----Could not find font: /HeBo
> java.io.IOException: Could not find font: /HeBo
> at
> org.apache.pdfbox.pdmodel.interactive.form.PDDefaultAppearanceString.processSetFont(PDDefaultAppearanceString.java:179)
> at
> org.apache.pdfbox.pdmodel.interactive.form.PDDefaultAppearanceString.processOperator(PDDefaultAppearanceString.java:132)
> at
> org.apache.pdfbox.pdmodel.interactive.form.PDDefaultAppearanceString.processAppearanceStringOperators(PDDefaultAppearanceString.java:108)
> [^.pdfbox.cache]
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]