Watermark PDF for first page only | Community
Skip to main content
Level 2
Jul 20, 2021 1:40 PM UTC
Solved

Watermark PDF for first page only

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Pulkit_Jain_
Pulkit_Jain_Accepted solution
Employee
Jul 21, 2021 5:45 AM UTC

@shaji_kgl 

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>

 

 

7 replies

Pulkit_Jain_
Pulkit_Jain_Accepted solution
Employee
Jul 21, 2021 5:45 AM UTC

@shaji_kgl 

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>

 

 

Translate
Kosta_Prokopiu1
Employee
Jul 21, 2021 7:11 AM UTC

@1942085 error happened - cannot delete comment

Translate