Skip navigation
Currently Being Moderated

Using DDX to assemble an XFA Form from several xdp files

Feb 13, 2012 4:59 AM

Hi all,

 

I have a number of forms that I need to merge with data and assemble into one XFA-based PDF.

 

Currently I use the following ddx:

 

<DDX xmlns="http://ns.adobe.com/DDX/1.0/">

    <PDF result="ContainerPDF">

         <PDF source="file:///C:\Dispatcher\Forms\form0001.xdp"/>

            <XFAData>

                    <My Data XML>

                         ...

                    </My Data XML>

            </XFAData>

         <NoForms/>

     </PDF>

         <PDF source="file:///C:\Dispatcher\Forms\form0002.xdp"/>

            <XFAData>

                    <My Data XML2>

                         ...

                    </My Data XML2>

            </XFAData>

         <NoForms/>

     </PDF>

   </PDF>

</DDX>

 

This works, but obviously gives me a NON-XFA Form - I have tried taking out the <NoForms> tag but this gives me an error saying that the "baseDocument cannot be assembled because it is an XFA-based form".

 

What do I need to change (the xdp?, the ddx or something else?) to get out an XFA-based form from Assembler.

 

Thanks in advance

 

Kim Christensen

Dafolo A/S

 
Replies
  • Currently Being Moderated
    Feb 21, 2012 8:54 AM   in reply to kc@dafolo.dk

    Did you see this?

    http://forums.adobe.com/message/1361643#1361643

     

    For an XFA-based document, assembly of multiple documents is permitted only if the base document is a static XFA document and none of the other documents have XFA forms or Acrobat forms. A dynamic XFA document cannot be assembled with any other documents. If any of these conditions are violated, an exception will be thrown.
    In addition to assembly, static XFA documents have the following restrictions:
    •  You can disassemble a static XFA document, but the result documents are not XFA documents.

    •  Using the PageOverlay or PageUnderlay elements throws an exception.

    •  Attempting to change the page size or rotation of a document or to transform the page contents throws an exception.

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 28, 2012 2:51 PM   in reply to kc@dafolo.dk

    Perhaps this example can work for you:

         

    <DDX xmlns="http://ns.adobe.com/DDX/1.0/">

      <PDF result="intermediate_result.pdf" format="XDP">

        <PDF source="static.pdf"/>

      </PDF>

      <PDF result="final_result.pdf">

        <PDF source="intermediate_result.pdf" baseDocument="true"/>

        <PDF source="nonXFAForm.pdf"/>

      </PDF>

      <?ddx-source-hint name="static.pdf"?>

      <?ddx-source-hint name="nonXFAForm.pdf"?>

    </DDX>

                      

     

     

    This code shows how to assemble a static XFA-based PDF form with a non-interactive document

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points