Overlaying 2 PDFs with Javascript?

Forum for the PDF-XChange Editor - Free and Licensed Versions

Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

Post Reply
jbaylis
User
Posts: 2
Joined: Fri Aug 18, 2017 2:25 pm

Overlaying 2 PDFs with Javascript?

Post by jbaylis »

Hi all,
I have been asked to merge a footer-PDF with hundreds of PDF documents. Interactively, I can do this with Document->Add Image (choosing either as stamp annotation or page content), but I wondering if there a code snippet with Javascript that can help automate this task? Is there a way of using an external pdf file as input for addAnnot ( type: "Stamp", ...) or another way to overlay the footer-PDF programmatically?

Regards,
James
Willy Van Nuffel
User
Posts: 2347
Joined: Wed Jan 18, 2006 12:10 pm

Re: Overlaying 2 PDFs with Javascript?

Post by Willy Van Nuffel »

Do you know about PDF-XChange PDF-Tools ?
https://www.pdf-xchange.com/product/pdf-tools

The "Overlay PDF" option must be able to do the job automatically, and this for multiple files at once, in one run.
More information about this: via the on-line manual: https://help.pdf-xchange.com/pdfxt6 ... pdf_t.html

You can free download and install PDF-Tools, and test if this works for you.

Just be aware that publicity stamps will be add to the resulting PDFs in case you do not (yet) have a license key for PDF-Tools.

Best regards.
jbaylis
User
Posts: 2
Joined: Fri Aug 18, 2017 2:25 pm

Re: Overlaying 2 PDFs with Javascript?

Post by jbaylis »

Perfect! I was able to configure the tool and within 5 minutes I could run in on the command line:

PDFXTools.exe /RunTool:showprog=no;showrep=no overlayDoc example.pdf
User avatar
Will - Tracker Supp
Site Admin
Posts: 6815
Joined: Mon Oct 15, 2012 9:21 pm
Location: London, UK
Contact:

Re: Overlaying 2 PDFs with Javascript?

Post by Will - Tracker Supp »

Thanks Willy!

jbaylis - Do you have everything that you need now?
If posting files to this forum, you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded.
Thank you.

Best regards

Will Travaglini
Tracker Support (Europe)
Tracker Software Products Ltd.
http://www.tracker-software.com
Post Reply