Solved

Adobe watermarks using C# & DLL

Posted on 2014-01-20
1
597 Views
Last Modified: 2014-04-03
I've managed to automate the watermarking of PDF documents i.e in c# i've hooked into an the adobe dll, and calling an Adobe menu action that applies a specific watermark to all pages. The code and automation of watermarking works well, but the watermarking only works if the PC its running on is not locked or in sceen saver mode. It seems the PDF has to be active (not necessarily focused) to apply the watermark.

Also the watermark cannot be applied as a background process. Does anyone know a way of applying PDF watermarks even if the PC is locked/screen saver running etc or know any background methods?

Many thanks
0
Comment
Question by:Seven0fNine
1 Comment
 
LVL 44

Accepted Solution

by:
Karl Heinz Kremer earned 500 total points
ID: 39797271
Using the Acrobat API is basically remote controlling Acrobat. The EULA you've accepted when you installed Acrobat does not permit the use of Acrobat on a server or in a server-like environment. Running it in the background would certainly qualify as a server-like environment.

As you've noticed, in addition to legal restrictions, there are also technical limitations as to what you can do with the Acrobat API.

This means that Acrobat is not an option for you. I would look into 3rd party PDF libraries and frameworks. For C#, I would very likely use ABCPDF (http://www.websupergoo.com/abcpdf-1.htm). My second choice would be the .NET version of  iText (http://itextpdf.com)

With these libraries, you can create any type of application, and you are not limited to the Acrobat EULA.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Save json data from URL using SSIS 1 31
$_GET call between URL 3 45
Selenium and Xpath 4 35
.Net remove carriage returns, line feeds and tabbs 5 15
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
In this third video of the Xpdf series, we discuss and demonstrate the PDFtoText utility, which converts PDF files into plain text files. Download and install the software.: You may have already downloaded and installed the Xpdf tools while watching…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question