[
https://issues.apache.org/jira/browse/PDFBOX-1434?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13493531#comment-13493531
]
Eric Leleu commented on PDFBOX-1434:
------------------------------------
Hi,
In attachment you can find a patch that fixes this issue.
The problem comes from the addition of the Font in resources of the
PDAppearance Stream that used the wrong method.
This change has been committed in the revision "r1407284"
BR,
Eric
> Font being changed after form field is set
> ------------------------------------------
>
> Key: PDFBOX-1434
> URL: https://issues.apache.org/jira/browse/PDFBOX-1434
> Project: PDFBox
> Issue Type: Bug
> Components: PDModel.AcroForm
> Affects Versions: 1.7.1
> Environment: Windows XP Professional, java version "1.6.0_37"
> Reporter: Eugene Chang
> Assignee: Eric Leleu
> Priority: Minor
> Labels: fields, font
> Attachments: forms26916.pdf, PDFBOX-1434-appearance.patch, PRP.pdf,
> TestBed1.java
>
>
> We have encounter a problem when using pdfbox.
> We have a pdf form with fields and font set to Courier (please see attached
> pdf file PRP.pdf).
> After running the program TEstbed1.java which tries to set the value of one
> of the fields, font was being changed to Helvetica (please see attached pdf
> file forms26916.pdf).
> Is there any way we can set the values and retain the original font?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira