You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "hui xu (JIRA)" <ji...@apache.org> on 2015/04/11 03:26:15 UTC
[jira] [Updated] (PDFBOX-2755) Can't save the change to pdf file
[ https://issues.apache.org/jira/browse/PDFBOX-2755?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
hui xu updated PDFBOX-2755:
---------------------------
Attachment: formtestOK.pdf
formtestFailed.pdf
formtestFailed.pdf is created by adobe livecycle designer, it's failed to save the change unless 2 lines code added.
formtestOK.pdf (I download online, guess it's source on acroForm), it can save the change successfully.
test arguments:
"formtestFailed.pdf" "DCSS-0373[0].Page_1[0].DCSS_0373_APPLICANT_NAME[0]" "joe smith"
"formtestOK.pdf" "TSP301[0].personal_information[0].name[0].last[0]" "joe smith"
> Can't save the change to pdf file
> ---------------------------------
>
> Key: PDFBOX-2755
> URL: https://issues.apache.org/jira/browse/PDFBOX-2755
> Project: PDFBox
> Issue Type: Bug
> Components: AcroForm
> Affects Versions: 1.8.9
> Reporter: hui xu
> Priority: Critical
> Attachments: formtestFailed.pdf, formtestOK.pdf
>
>
> Ran SetField.java in package org.apache.pdfbox.examples.fdf, the field value is changed but can not been saved in pdf file.
> I added 2 more lines code:
> List<PDField> newList = new ArrayList<PDField>();
> .................................
> acroForm.setFields(newList);
> The pdf was saved with the change. But reload the saved pdf file and try to reset some values, it throws NullPointerException, the file can't getFields().
--
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