Expand my Community achievements bar.

SOLVED

Two watermark applying in PDF

Avatar

Level 2

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

 

1 Accepted Solution

Avatar

Correct answer by
Employee

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>

View solution in original post

3 Replies

Avatar

Correct answer by
Employee

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>

Avatar

Level 2
Hi Kosta_Prokopiu1: Thank you for the response, I will try this method and let you know if I get the result.

Avatar

Level 2

Hi Kosta_Prokopiu1: The above DDX works fine.

There is a updation got to change it as graphic. When they try to add comments in acrobat ready, this watermark getting selected.

I have outlines the content and created as pdf.

Try to use <graphic> element with path, but it showing error path not found, please advice.

=======

<DDX xmlns="http://ns.adobe.com/DDX/1.0/">
<PDF result="transient" return="false">
<Watermark opacity="10%" verticalOffset="347pt">
<StyledText>
<p><graphic source="D:/Asset/proof.pdf"/></p>
</StyledText>
</Watermark>
<PDF source="Doc1"/>
</PDF>

<PDF result="outDoc">
<Watermark opacity="10%" verticalOffset="-347pt" replaceExisting="false">
<StyledText>
<p><graphic source="D:/Asset/proof.pdf"/></p>
</StyledText>
</Watermark>
<PDF source="transient"/>
</PDF>
</DDX>

=======

Shaji