Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Adobe watermarks using C# & DLL

Posted on 2014-01-20
1
Medium Priority
?
627 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 44

Accepted Solution

by:
Karl Heinz Kremer earned 1500 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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
Introduction to Processes

596 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