Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

Alternate document pages by orientation using DDX ?

Avatar

Level 4

Hi,

Is it possible to alternate document pages by orientation using ddx?

For example I wish to apply landscape pages one kind of watermark and other to portrait pages.

Any ideas how to implement it?

Thanks, Yan

0 Replies

Avatar

Level 10

Do you mean you wish to apply a specific watermark to landscape pages and a different watermark to portrait pages?

If you know which source documents are landscape and which are portrait, you could apply a specific watermark as follows:

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

    <PDF result="outDoc">

        <PDF source="inDoc1">

        <Watermark fitToPage="true" opacity="25%" rotation="45">

            <StyledText><p><b>Portrait!!</b></p></StyledText>       

        </Watermark>

    </PDF>

        <PDF source="inDoc2">

        <Watermark fitToPage="true" opacity="25%" rotation="-45">

            <StyledText><p><b>Landscape!!</b></p></StyledText>       

        </Watermark>

    </PDF>

    </PDF>

</DDX>

In this example, inDoc1 is portrait and inDoc2 is landscape. The result is attached.

Steve

Avatar

Level 4

I have one source page, in which part of the pages are in portrait landscape and other are landscape.

There is no specific order and it changes from document to document.

The problem is that a watermark is not a text but another document so I have to fit watermark document orientation to target page orientation.

How I can alter between different orientations in this document?

Yan.

Avatar

Level 2

Can somebody of Adobe staff rule out the possibility to apply alternating watermarks for landscape and portrait pages in documents?