You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2019/02/04 16:52:00 UTC

[jira] [Commented] (PDFBOX-3111) Replicate Acrobat behavior when merging PDFs with interactive forms

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

Tilman Hausherr commented on PDFBOX-3111:
-----------------------------------------

What we could do to get this started: create a method that transforms a terminal field that is its own widget into a field that has a widget kid. This itself would be two parts, i.e. create an "only" field object, and create an "only" widget object, and replace that one in the appropriate page.

If we had that, a user could then just add the widget from the second file to the field of the first file. This might help for use cases like in PDFBOX-4454, where the fields are known. A user would have to modify acroFormJoinFieldsMode() for his own purpose in a copy of PDFMergerUtility.

I suspect this will work for text fields, but not for radio buttons.

> 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
>            Priority: Major
>         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: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org