Watermark PDF for first page only | Community
Skip to main content
Level 2
July 20, 2021
Solved

Watermark PDF for first page only

  • July 20, 2021
  • 1 reply
  • 2341 views

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.
Best answer by Pulkit_Jain_

@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>

 

 

1 reply

Pulkit_Jain_
Adobe Employee
Pulkit_Jain_Adobe EmployeeAccepted solution
Adobe Employee
July 21, 2021

@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>

 

 

Kosta_Prokopiu1
Adobe Employee
Adobe Employee
July 21, 2021

@1942085 error happened - cannot delete comment