Two watermark applying in PDF

Avatar

Avatar

Shaji_KGL

Avatar

Shaji_KGL

Shaji_KGL

04-03-2021

Hi Team,

We need to apply two watermark one at top and bottom. "Proof Only".

Already we are doing for single watermark, here is the DDX.

=======

<DDX xmlns="http://ns.adobe.com/DDX/1.0/">
<PDF result="doc2.pdf" save="Full">
<Watermark opacity="10%" verticalOffset="347pt">
<StyledText>
<p font-family="Times New Roman" font-size="74pt" font-weight="bold" color="black">Proof Only</p>
</StyledText>
</Watermark>
<PDF source="doc1.source"/>
</PDF>
<?ddx-source-hint name="doc1.source"?>
</DDX>

===========

For second watermark I tried repeated the <watermark> its not allowing. 

Sample PDF below 

 

ShajiCapture.PNG

 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Kosta_Prokopiu1

Employee

Avatar

Kosta_Prokopiu1

Employee

Kosta_Prokopiu1
Employee

04-03-2021

You need to use transient results to apply another watermark on the same page:

<DDX xmlns="http://ns.adobe.com/DDX/1.0/">
  <PDF result="transient" return="false">
    <Watermark opacity="10%" verticalOffset="347pt">
      <StyledText>
        <p font-family="Times New Roman" font-size="74pt" font-weight="bold" color="black">Proof Only</p>
      </StyledText>
    </Watermark>
  <PDF source="Doc1"/>
</PDF>

<PDF result="outDoc">
  <Watermark opacity="10%" verticalOffset="-347pt" replaceExisting="false">
    <StyledText>
      <p font-family="Times New Roman" font-size="74pt" font-weight="bold" color="black">Proof Only2</p>
    </StyledText>
  </Watermark>
  <PDF source="transient"/>
</PDF>
</DDX>

Answers (0)