Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session

What is the output if we assemble two interactive forms?

Avatar

Level 7

Hi,

If i assemble/merge two interactive forms what will be the resultant form.

Will it be interactive or flatten forms?

I am expecting to get interactive form.

if it yeilds non-interactive form then let me know why it would give non-interactive form, How can i merge two interactive forms to get interactive form.

plz help

Regards

Sunil Gupta

3 Replies

Avatar

Former Community Member

It will give an interactive form, but you must specify a base document (this is the one that wil have all its structure used for the new doc). I am assuming that you are using version 9 of Assembler.

Paul

Avatar

Level 7

pguerett

What do you mean by base document?

How do i define an interactive document as base document?

is it correct that the first document will be called base document in ddx

ddx,

<PDF result="doc3.pdf" ><!--output document; intractive-->
     <PDF source="doc1.pdf"/> <!--Base document; intractive-->
     <PDF source="doc2.pdf"/>
</PDF>

Regards

Sunil Gupta

Avatar

Former Community Member

It used to be that the 1st document was always the base document .....now you can add an attribute to indicate which one will be the base document.

Here is an excerpt from teh DDX specification:

baseDocument attribute

When assembling multiple PDF documents, one PDF document is the “base” document. The

baseDocument’s (and only the baseDocument’s) document properties, XFA data, document level

JavaScripts, and viewer preferences are carried over to the result <PDF> document. The baseDocument

may be thought of as providing the initial structure for the resulting PDF document.

A baseDocument is always required, even if marked ‘required=”false”’

.

Documents that are not the baseDocument only contribute pages, document components (eg bookmarks,

links, file attachments), page labels, page content, and page properties to the resulting document.

For document-level components, like file attachments, they are only included from a document once, even

if the document is specified multiple times.

baseDocument Identification

To determine which source PDF is the baseDocument, the

first of the following conditions to be true

identifies the baseDocument :

1. A source <PDF> which contains a baseDocument attribute with a value of “true” (the default is

“false”). In the following example, doc2 is the baseDocument:

<PDF result=”doc3”>

<PDF source=”doc1” />

<PDF source=”doc2” baseDocument=”true” />

</PDF>

2. The source <PDF> whose source attribute value is identical to the result <PDF>’s result attribute. In the

following example, doc2 is the baseDocument:

<PDF result=”doc2”>

<PDF source=”doc1” />

<PDF source=”doc2” />

</PDF>

3. The first source <PDF>. In following example, doc1 is the baseDocument:

<PDF result=”doc3”>

<PDF source=”doc1” />

<PDF source=”doc2” />

</PDF>

If more than one source element has baseDocument attribute set to “true” an error is returned.