pdfbox-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Lehmkühler (JIRA) <j...@apache.org>
Subject [jira] [Commented] (PDFBOX-1574) ImportFDF fails to do anything
Date Sat, 01 Nov 2014 09:26:34 GMT

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

Andreas Lehmkühler commented on PDFBOX-1574:
--------------------------------------------

After solving PDFBOX-2468 the import of the FDF works fine. In contrast to the 1.8-branch
I've got an exception when copying the fdf values to the acro from:
{code}
Exception in thread "main" java.lang.IllegalStateException
	at org.apache.pdfbox.pdmodel.interactive.annotation.PDAppearanceEntry.getAppearanceStream(PDAppearanceEntry.java:84)
	at org.apache.pdfbox.pdmodel.interactive.form.PDAppearanceString.setAppearanceValue(PDAppearanceString.java:239)
	at org.apache.pdfbox.util.appearance.AppearanceGenerator.generateFieldAppearances(AppearanceGenerator.java:72)
	at org.apache.pdfbox.pdmodel.interactive.form.PDField.updateFieldAppearances(PDField.java:136)
	at org.apache.pdfbox.pdmodel.interactive.form.PDTextField.setValue(PDTextField.java:97)
	at org.apache.pdfbox.pdmodel.interactive.form.PDFieldTreeNode.importFDF(PDFieldTreeNode.java:230)
	at org.apache.pdfbox.pdmodel.interactive.form.PDAcroForm.importFDF(PDAcroForm.java:121)
	at org.apache.pdfbox.tools.ImportFDF.importFDF(ImportFDF.java:58)
	at org.apache.pdfbox.tools.ImportFDF.importFDF(ImportFDF.java:96)
	at org.apache.pdfbox.tools.ImportFDF.main(ImportFDF.java:76)
{code}
Looks like an issue with the new appearance generator.

> ImportFDF fails to do anything
> ------------------------------
>
>                 Key: PDFBOX-1574
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1574
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Utilities
>    Affects Versions: 1.8.7, 2.0.0
>         Environment: Windows 7, Acrobat XI Pro, Eclipse 4.2.1
>            Reporter: Gilad Denneboom
>              Labels: FDF
>             Fix For: 1.8.8, 2.0.0
>
>         Attachments: 1.pdf, 1_data.fdf, 2.pdf, log.txt
>
>
> I created a dead-simple PDF with form fields in Acrobat and generated an FDF file from
it.
> Tried to run ImportFDF on these files and the resulting file is totally blank.
> Attached are the input files (1.pdf, 1_data.fdf), the result file (2.pdf) and the warnings
ImportFDF generated.



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

Mime
View raw message