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 2015/03/11 08:07:38 UTC

[jira] [Closed] (PDFBOX-1419) PDField.setValue is not behave correctly

     [ https://issues.apache.org/jira/browse/PDFBOX-1419?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Maruan Sahyoun closed PDFBOX-1419.
----------------------------------
    Resolution: Duplicate

This issue is also described in PDFBOX-1402 and PDFBOX-2333 with font scaling not working correctly. There have been a number of changes already to PDFBox 1.8.8. with regards to font size calculation. As there is no sample PDF attached to this issue it's not possible to check if a specific problem has been addressed.

> PDField.setValue is not behave correctly
> ----------------------------------------
>
>                 Key: PDFBOX-1419
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1419
>             Project: PDFBox
>          Issue Type: Bug
>          Components: AcroForm, Writing
>    Affects Versions: 1.7.0
>         Environment: JavaEE 1.6 project developed under Window system, will deploy to Unix Weblogic server
>            Reporter: Joe Lee
>            Assignee: Maruan Sahyoun
>             Fix For: 2.0.0
>
>
> Use a template PDF file to write value into different fields (type of PDTextbox, PDCheckbox, PDChoiceField). The PDTextbox displays either very large font or not show anything. If click into the field, it displays correctly. Click outside the field, it reverts back to the wrong display. The same logic of code works well with iText library. The code similar to:
>             
>             PDFTemplate = PDDocument.load("myTemplate.pdf");
>             PDDocumentCatalog docCatalog = PDFTemplate.getDocumentCatalog();
>             PDAcroForm acroForm = docCatalog.getAcroForm();
>             :
>             try { PDField pdField = acroForm.getField(field);
>                    if (pdField != null) pdField.setValue(value);
>             } catch(...){}
>             :



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org