Expand my Community achievements bar.

SOLVED

watermarking pdf

Avatar

Level 4

Hi all,

We are able to watermark the pdf using text content eg:

<?xml version="1.0" encoding="UTF-8"?>
<DDX xmlns="http://ns.adobe.com/DDX/1.0/">
<PDF result="result.pdf">
<PDF source="test.pdf"/>
<Watermark rotation="45" opacity="25%">
<StyledText><p font-size="72pt">Draft</p></StyledText>
</Watermark>
</PDF>
</DDX>

But when I try to add logos I am not able to do it, I found an example in DDX adding graphcis.

This was taken from the DDX examples.

<PDF result="doc2">
<PageContent appears="Behind" alternateText="This is highly Adobe Confidential.">
<StyledText><p><This is highly <graphic source="AdobeConfLogo.pdf"/>.</p></StyledText>
</PageContent>
<PDF source="doc1"/>
</PDF>

----------------

<graphic source="AdobeConfLogo.pdf"/>

Where should I need to place this "AdobeConfLogo.pdf" for adding in watermark.

Please advice.

Shaji

1 Accepted Solution

Avatar

Correct answer by
Level 8

Strange.

The first shot is shows the doc1 mapping.  The second shows the waterlogo mapping.   Both variables are of type "document"

I've also attached the DDX file so you can see how the mappings fit into the PDF source attributes

process1.png

process2.png

View solution in original post

10 Replies

Avatar

Level 8


The Source reference can be considered an identifier instead of an actual file name.   You would read the image file into a Document variable and then use the InvokeDDX property sheet to map the document variable into the specified source entry.

Avatar

Level 8

The source attribute can be thought of as a reference id rather than the file name.  You can load the image into a document object and then use the invokeDDX operation to map the image document to the source attribute.

Avatar

Level 4

Hi Hodmi,

Can you please provide me a sample, if you have any .lca file.

I will place the logo.pdf in a location.

When I place the pdfs in Input, it should apply the logo.pdf watermark.

How do I give the path in DDX.

Please advice.

Shaji

Avatar

Level 4

Hi Hodmi,

Sorry for the late response.

I just downloaded the .lca file, when I tried to import it in live cycle it shows an error.

Path missing, please see the screen shot.

Please advice.

Shaji

Avatar

Level 8

huh, weird.  I don't have that file in my temp.

Try this one:

Avatar

Level 4

Hi Hodmi,

Thanks for the .lca file I will check and get back to you if there is any issue.

Shaji

Avatar

Level 4

HI  Homi,

The same issue, it refering the c:\windows -- path for the DDX.

Can you just have a screen shot of the DDX coding and process.

Shaji

Avatar

Correct answer by
Level 8

Strange.

The first shot is shows the doc1 mapping.  The second shows the waterlogo mapping.   Both variables are of type "document"

I've also attached the DDX file so you can see how the mappings fit into the PDF source attributes

process1.png

process2.png

Avatar

Level 4

Hi Hodmi,

Thank you so much for the support.

I will start a new process using this screen shot.

Thanks

Shaji