Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Alternate document pages by orientation using DDX ?

Avatar

Former Community Member

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

4 Replies

Avatar

Former Community Member

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

Former Community Member

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

Facing the same challenge. Is this possible?

Avatar

Level 2

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