This Forum is for the use of Software Developers requiring help and assistance for Tracker Software's PDF-Tools SDK of Library DLL functions(only) - Please use the PDF-XChange Drivers API SDK Forum for assistance with all PDF Print Driver related topics.
I’m using Microsoft Access (VBA) to print a set of reports to individual PDF files, merge them into one single file, add an outline, add a version watermark to all pages, and add a watermark to each page as page numbers.
Everything works fine except for adding watermarks to each page. When trying to add a watermark to a page range, Access takes a catastrophic error and crashes.
I’m using the latest SDK Pro build (v.3.6102) and I have no problems with placing text using the following code:
I created a very simple Access 2000 database that seems to replicate the problem. There is a simple form with 2 buttons, one will add a watermark to all pages (works fine) and the other will try to put a page number watermark on page 3 (crashes Access). I think all you will need to do is change the paths to the input PDF file and the output file path.
I also tested the code in Visual Basic 6 and it generates a similar error. I’ve attached a JPG of the Access and VB error.