2 Replies Latest reply on Sep 28, 2012 2:51 PM by azathoth_

    Using DDX to assemble an XFA Form from several xdp files

    kc@dafolo.dk Level 1

      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

        • 1. Re: Using DDX to assemble an XFA Form from several xdp files
          g5spark Level 1

          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.

          • 2. Re: Using DDX to assemble an XFA Form from several xdp files
            azathoth_ Level 1

            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