[
https://issues.apache.org/jira/browse/PDFBOX-45?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16807473#comment-16807473
]
Hari Selvarajan edited comment on PDFBOX-45 at 4/2/19 7:38 AM:
---------------------------------------------------------------
Here's a test program that will fill-in an XFA rights-enabled form with data in
an XML file. The XML must match the structure of the XFA <datasets> packet, and
should not contain the XML prolog (since the XDP package in the XFA form
already has the XML prolog present).
Note that this will only work with a patched COSWriter. I've attached PDFBox
and FontBox jars built from trunk, with the patch applied to COSWriter.java.
I've tested this with two fairly complex XFA forms and found it to work, but
I'd be grateful if others could test it as well.
Finally, I'd be happy to take a shot at modifying
_PDDocument.saveIncremental()_ to pass a list of updated objects to COSWriter,
but I'm unsure how to do that and I'd be grateful for any advice.
[^pdfbox-3.0.0-SNAPSHOT.jar]
^[^fontbox-3.0.0-SNAPSHOT.jar]^
[^XFAFormFiller.java]
was (Author: hselvarajan):
Here's a test program that will fill-in an XFA rights-enabled form with data in
an XML file. The XML must match the structure of the XFA <datasets> packet, and
should not contain the XML prolog (since the XDP package in the XFA form
already has the XML prolog present).
Note that this will only work with a patched COSWriter. I've attached PDFBox
and FontBox jars built from trunk, with the patch applied to COSWriter.java.
I've tested this with two fairly complex XFA forms and found it to work, but
I'd be grateful if others could test it as well.
Finally, I'd be happy to take a shot at modifying
_PDDocument.saveIncremental()_ to pass a list of updated objects to COSWriter,
but I'm unsure how to do that and I'd be happy for any advice.
[^pdfbox-3.0.0-SNAPSHOT.jar]
^[^fontbox-3.0.0-SNAPSHOT.jar]^
[^XFAFormFiller.java]
> Support incremental save
> ------------------------
>
> Key: PDFBOX-45
> URL: https://issues.apache.org/jira/browse/PDFBOX-45
> Project: PDFBox
> Issue Type: New Feature
> Components: Writing
> Fix For: 3.0.0 PDFBox
>
> Attachments: XFAFormFiller.java, fontbox-3.0.0-SNAPSHOT.jar,
> fontbox-3.0.0-SNAPSHOT.jar, pdfbox-3.0.0-SNAPSHOT.jar
>
>
> [imported from SourceForge]
> http://sourceforge.net/tracker/index.php?group_id=78314&atid=552835&aid=1157431
> Originally submitted by purplish_cat on 2005-03-05 12:28.
> After opening a PDF file and changing objects out of it,
> allow to save the changes incrementally to the same file
> instead of creating a completely new file.
> [comment on SourceForge]
> Originally sent by benlitchfield.
> Logged In: YES
> user_id=601708
> See forum thread at
> https://sourceforge.net/forum/message.php?msg_id=3032112
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]