You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Ernst Eibensteiner (JIRA)" <ji...@apache.org> on 2011/09/02 17:33:10 UTC
[jira] [Commented] (PDFBOX-1100) PDFMerger: Empty form fields
[ https://issues.apache.org/jira/browse/PDFBOX-1100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13096049#comment-13096049 ]
Ernst Eibensteiner commented on PDFBOX-1100:
--------------------------------------------
I created a short test program for that case:
PDDocument pdf = PDDocument.load("C:\\tmp\\a.pdf");
PDDocumentCatalog docCatalog = pdf.getDocumentCatalog();
PDAcroForm acroForm = docCatalog.getAcroForm();
List<PDField> list = acroForm.getFields();
Iterator<PDField> it = list.iterator();
while (it.hasNext()) {
PDField field = it.next();
System.out.println("FQ Name: "+field.getFullyQualifiedName());
System.out.println("Value: "+field.getValue());
}
Output shows:
=============
FQ Name: Testfeld
Value: null
FQ Name: Testfeld2
Value: null
So it seems that "field.getValue()" does not work correctly or does not get the latest value from the form field.
> PDFMerger: Empty form fields
> ----------------------------
>
> Key: PDFBOX-1100
> URL: https://issues.apache.org/jira/browse/PDFBOX-1100
> Project: PDFBox
> Issue Type: Bug
> Components: Utilities
> Affects Versions: 1.6.0
> Environment: Windows 2008 R2
> Reporter: Gerhard Temper
> Attachments: a.pdf, b.pdf, c.pdf
>
>
> Merging two PDFs with form fields results in a PDF with empty fields.
> The issue seems to be similar to https://issues.apache.org/jira/browse/PDFBOX-1031, but in my case i see the fields but not the value in the fields.
> I use the following command to merge the PDFs:
> java -classpath pdfbox-app-1.6.0.jar org.apache.pdfbox.PDFMerger a.pdf b.pdf c.pdf
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira