You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Maruan Sahyoun (Jira)" <ji...@apache.org> on 2019/12/31 13:38:00 UTC
[jira] [Commented] (PDFBOX-4725) Listbox /AP/N has huge font
[ https://issues.apache.org/jira/browse/PDFBOX-4725?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17006104#comment-17006104 ]
Maruan Sahyoun commented on PDFBOX-4725:
----------------------------------------
IMHO the issue is caused as the /DA enry contains a font size of "0" meaning autoscale and additional font size setting per list box entry using a custom {{/FXFO}} entry.
> Listbox /AP/N has huge font
> ---------------------------
>
> Key: PDFBOX-4725
> URL: https://issues.apache.org/jira/browse/PDFBOX-4725
> Project: PDFBox
> Issue Type: Bug
> Components: AcroForm
> Affects Versions: 2.0.18
> Reporter: Tilman Hausherr
> Priority: Major
> Attachments: Foxit_PhantomPDF.pdf, Foxit_PhantomPDF2.pdf
>
>
> Attached file shows a huge font in field "listBox" when value is set
> {code}
> PDDocument doc = PDDocument.load(new File("Foxit_PhantomPDF.pdf"));
> PDField l = doc.getDocumentCatalog().getAcroForm().getField("listBox");
> l.setValue("Black");
> doc.save(new File("Foxit_PhantomPDF2.pdf"));
> {code}
> May be related to DA string having variable length?
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org