Skip to main content
October 14, 2019
Question

Merge an overlay onto every page of a pdf

  • October 14, 2019
  • 3 replies
  • 1592 views

I know this has to have been answered somewhere, but I can't find it. 

I'm creating a PDF of printed invoices that normally print on pre-printed paper. I'd like to be able to create a PDF of a blank invoice and overlay that onto the PDF file of invoices printed from the program that uses the preprinted invoice paper. I'd like to be able to have a macro do that from a vbs script if possible.

 

Running on Windows Server 2012.

This topic has been closed for replies.

3 replies

Inspiring
October 14, 2019

There is an option to on the Print UI to print only the form field content.

Inspiring
October 14, 2019

VBS is a Microsoft procuct and does not work wihtin a PDF. PDFs use a variation JavaScript designed for PDFs.

 

You can use the template object to overlay pages in a PDF..

October 14, 2019
What I want is to be able to script the process of creating a new PDF document with the overlay(template) merged onto the original. I can use Javascript if that's what's required.
try67
Community Expert
Community Expert
October 14, 2019

You can do it manually using the Add Background command, or by using JavaScript, which can probably be called using VBA.

October 14, 2019
Thanks. I'm going to try that!
Participating Frequently
August 27, 2022

Here is a detailed explanation of what worked for me, should others happen upon this page.