Solved

Adobe watermarks using C# & DLL

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
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…
In this video, we show how to convert an image-only PDF file into a PDF Searchable Image file, that is, a file with both the image (typically from scanning) and text, which is created in an automated fashion with Optical Character Recognition (OCR) …

867 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

24 Experts available now in Live!

Get 1:1 Help Now