is it possible to open pdf file, add an image then close the file using vba?

We have several pdf files that reside on our server that need to be opened up, have an image added to page 2 and page 3(same location on page) then closed. I would prefer to have a script to do this because it would obviously be faster than having our clerical staff open every file individually, add the image, close the file and open up the next etc...

Any help would be greatly appreciated!

Ted Best

1 Answer

The short answer is "no", at least not in a way that works in all cases.

You can add a a button using VBA that uses an image as it's button face, and you can then in a second step flatten the document so that the the button gets converted to a "regular" image. This will not work if you have other interactive elements in your document, because the flattening will flatten those too (as long as they are on the same page). Also, you need to make sure that your image is available as a PDF document (only PDF pages can be used as button face images).

If you want to use a 3rd party PDF library, things get easier (but also more expensive because you have to license more software).

Karl Heinz Kremer
PDF Acrobatics Without a Net
PDF Software Development, Training and More...

Karl Heinz Kremer   

Please specify a reason: