pdfbox-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joe Lee (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PDFBOX-1419) PDField.setValue is not behave correctly
Date Mon, 12 Nov 2012 15:49:12 GMT

    [ https://issues.apache.org/jira/browse/PDFBOX-1419?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13495351#comment-13495351

Joe Lee commented on PDFBOX-1419:

Will May,
Could you possibly apply the patch to the latest version of the PDFbox?  I checked the version
1.8.0 source code and your patch is not there. I applied your patch to Version 1.7.1, it turned
out one of the PDTextbox field content is displayed upside down (not only the text position
is wrong.) Any help would be greatly appreciated.
> PDField.setValue is not behave correctly
> ----------------------------------------
>                 Key: PDFBOX-1419
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1419
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Writing
>    Affects Versions: 1.7.0
>         Environment: JavaEE 1.6 project developed under Window system, will deploy to
Unix Weblogic server
>            Reporter: Joe Lee
> 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 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

View raw message