Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events

Assembler not getting the blankpage if combined with multiple xdps

Avatar

Level 2

Hi,

we are trying to append different .xdp's witht he assembler service to get the resultant .pdf

Main xdp :docin.xdp

2nd .xdp : doci2n.xdp

there are multiple xdp's that would be combined together with the ddx,

the main xdp (pdf from the main .xdp) should always end with an even page, i have a blank page that fires up when the pdf ends with an odd number , when tested just the main xdp with the assembler service it works fine (it ends with even page)

but when other xdp's are sent with the main xdp in the assembler, the assembler prints the .pdf from the second .xdp on the even page (which is supposed to be blank- with the incorporated logic in the main .xdp), is there a way that the .pdf from main xdp (docin.xdp) can end with even pages and the .pdf from other .xdp(doci2n.xdp) can start on an odd page.

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

  <PDF result="result3.pdf">

    <XDP>

      <XDP source="docin.xdp"/>

      <XDPContent insertionPoint="header" source="Header.xdp"/>

        <XDP source="doci2n.xdp"/>

      <XFAData source="data.xml"/>

    </XDP>

  </PDF>

</DDX>

1 Reply

Avatar

Level 5

If you have not already gotten past this, add a BlankPage element after each Source element with forceEven = 'true' - forceEven will only add a page if the source has an odd number of page images.

See the DDX reference doc for all the options.

HTH - Mark

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

  <DDXProcessorSetting name="checkpoint" value="1500"/>

  <PDF result="mergedPDF" save="Full">

    <PDF source="docPDF"/>

    <BlankPage forceEven="true">

      <Watermark>

        <StyledText>

          <p>This page intentionally left blank</p>

        </StyledText>

      </Watermark>

    </BlankPage>

    <PDF source="docPDFEnglish"/>

    <BlankPage forceEven="true">

      <Watermark>

        <StyledText>

          <p>This page intentionally left blank</p>

        </StyledText>

      </Watermark>

    </BlankPage>

  </PDF>

  <?ddx-source-hint name="docPDF"?>

  <?ddx-source-hint name="docPDFEnglish"?>

</DDX>