[
https://issues.apache.org/jira/browse/PDFBOX-3111?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16823950#comment-16823950
]
Stephane edited comment on PDFBOX-3111 at 4/23/19 11:36 AM:
------------------------------------------------------------
Hi,
I didn't try the last SNAPSHOT but could you tell me if the form merger works
when fields contain children fields ?
(pdfbox 2.0.15 dosen't work in this case).
For instance, here a sample of XFDF I have :
{code:xml}
<?xml version="1.0" encoding="UTF-8"?>
<xfdf xml:space="preserve" xmlns="http://ns.adobe.com/xfdf/">
<f href="pdf1.pdf"/>
<ids modified="49526c030ec21b4f9e381725ac70bb25"
original="49526c030ec21b4f9e381725ac70bb25"/>
<fields>
<field name="Form1">
<field name="Field_A">
<value/>
</field>
<field name="Field_B">
<value/>
</field>
</field>
</fields>
</xfdf>
{code}
and for the second pdf :
{code:xml}
<?xml version="1.0" encoding="UTF-8"?>
<xfdf xml:space="preserve" xmlns="http://ns.adobe.com/xfdf/">
<f href="pdf2.pdf"/>
<ids modified="49526c030ec21b4f9e381725ac70bb25"
original="49526c030ec21b4f9e381725ac70bb25"/>
<fields>
<field name="Form2">
<field name="Field_A">
<value/>
</field>
<field name="Field_B">
<value/>
</field>
</field>
</fields>
</xfdf>
{code}
The root fields of each form have a different name.
Thank you.
was (Author: stondini):
Hi,
I didn't try the last SNAPSHOT but could you tell me if the form merger works
when fields contain children fields ?
(pdfbox 2.0.15 dosen't work in this case).
For instance, here a sample of XFDF I have :
{code:xml}
<?xml version="1.0" encoding="UTF-8"?>
<xfdf xml:space="preserve" xmlns="http://ns.adobe.com/xfdf/">
<f href="pdf1.pdf"/>
<ids modified="49526c030ec21b4f9e381725ac70bb25"
original="49526c030ec21b4f9e381725ac70bb25"/>
<fields>
<field name="Form1">
<field name="Field_A">
<value/>
</field>
<field name="Field_B">
<value/>
</field>
</field>
</fields>
</xfdf>
{code}
and for the second pdf :
{code:xml}
<?xml version="1.0" encoding="UTF-8"?>
<xfdf xml:space="preserve" xmlns="http://ns.adobe.com/xfdf/">
<f href="pdf1.pdf"/>
<ids modified="49526c030ec21b4f9e381725ac70bb25"
original="49526c030ec21b4f9e381725ac70bb25"/>
<fields>
<field name="Form2">
<field name="Field_A">
<value/>
</field>
<field name="Field_B">
<value/>
</field>
</field>
</fields>
</xfdf>
{code}
On the root fields have a different name.
Thank you.
> Replicate Acrobat behavior when merging PDFs with interactive forms
> -------------------------------------------------------------------
>
> Key: PDFBOX-3111
> URL: https://issues.apache.org/jira/browse/PDFBOX-3111
> Project: PDFBox
> Issue Type: New Feature
> Components: AcroForm
> Affects Versions: 1.8.10, 2.0.0
> Reporter: Maruan Sahyoun
> Assignee: Maruan Sahyoun
> Priority: Major
> Fix For: 2.0.16, 3.0.0 PDFBox
>
> Attachments: proof.pdf
>
>
> When PDFs containing interactive forms are merged using Acrobat, fields with
> the same name are merged into one. That's different to the current behavior
> of PDFBox which renames to be merged fields so they have a unique name (see
> PDFBOX-3094).
> In addition Acrobat supports merging documents with interactive forms into
> collections when keeping the existing (duplicate) fields is required.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]