Hi All,
I searched in the DDXRef.pdf for watermarking for first page, but unable to find, there were "none", "oddpage", and "evenpage" is available.
Could someone advise with example of DDX, which can apply watermarking for first page of the PDF.
Either in <Header> or <Watermark> or <Background>.
Shaji
Solved! Go to Solution.
Views
Replies
Total Likes
Watermarking and page content consider an alternation attribute ONLY in a DDX i.e apply to all pages or to alternating pages (all odd or even pages) in a source document.
You may add a blank page with a watermark as the first page OR use the first page as a separate input doc with the watermark applied to the same.
<PDF result="out.pdf">
<BlankPage forceEven="true">
<Watermark>
<StyledText font-family="Helvetica" font-size="14">
<p>This is for testing purpose</p>
</StyledText>
</Watermark>
</BlankPage>
<PDF source="Input1.pdf"/>
<PDF source="Input2.pdf"/>
</PDF>
OR
<PDF result="out.pdf">
<PDF source="FirstPage.pdf"/>
<Watermark>
<StyledText font-family="Helvetica" font-size="14">
<p>This is for testing purpose</p>
</StyledText>
</Watermark>
<PDF source="Input1.pdf"/>
<PDF source="Input2.pdf"/>
</PDF>
Watermarking and page content consider an alternation attribute ONLY in a DDX i.e apply to all pages or to alternating pages (all odd or even pages) in a source document.
You may add a blank page with a watermark as the first page OR use the first page as a separate input doc with the watermark applied to the same.
<PDF result="out.pdf">
<BlankPage forceEven="true">
<Watermark>
<StyledText font-family="Helvetica" font-size="14">
<p>This is for testing purpose</p>
</StyledText>
</Watermark>
</BlankPage>
<PDF source="Input1.pdf"/>
<PDF source="Input2.pdf"/>
</PDF>
OR
<PDF result="out.pdf">
<PDF source="FirstPage.pdf"/>
<Watermark>
<StyledText font-family="Helvetica" font-size="14">
<p>This is for testing purpose</p>
</StyledText>
</Watermark>
<PDF source="Input1.pdf"/>
<PDF source="Input2.pdf"/>
</PDF>
@-- error happened - cannot delete comment
Views
Replies
Total Likes
@Shaji_KGL, Pulkit gave you a good example if you have several documents and the first page comes as an individual PDF. If your document is in one PDF with multiple pages you could try this here:
<DDX xmlns="http://ns.adobe.com/DDX/1.0/">
<PDF result="outDoc">
<PDF source="input" pages="1">
<Watermark rotation="45" opacity="60%">
<StyledText color="red" font-size="72pt"><p>Adopted!</p></StyledText>
</Watermark>
</PDF>
<PDF source="input" pages="2-last"/>
</PDF>
</DDX>
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies