Solved

Adobe watermarks using C# & DLL

Posted on 2014-01-20
1
570 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
Sometimes we receive PDF files that are in the wrong orientation. They may be sideways or even upside down. This most commonly happens with scanned or faxed documents. It is possible to rotate the view of these PDFs with the free Adobe Reader produc…

760 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now