Overlay one PDF or PS file on top of another PDF

Question: I have two PDF or postscript files (I can work with either one). What I want to do is merge each page on top of the other so that page1 of document A will be combined with page 1 of document B to produce page 1 of the output document. This isn't something I necessarily want need to do programmatically, although that would be helpful. Is there any solution one VeryPDF?

Answer: According to your needs, maybe you can try to convert PS file to PDF and then  overlay PDF. For converting PS to PDF, software Postscript to PDF Converter can help you do that. For overlaying PDF, software VeryPDF PDF Toolbox Command Line  can do a perfect job. Both of the two software is free trial and command line version software, even if you need to do those job programmatically, you can also make it. Please check more information of those software on homepage, in the following part, let us check how to use this software.

For converting PS to PDF

  • Download Postscript to PDF Converter Command Line. When downloading finishes, please extract it to some folder then open MS Dos Windows and call it.
  • Here is the Usage for your reference: ps2pdf.exe [options] [Options] <PS file> [PDF file]
  • When converting ps to PDF, please refer to the following command line templates:
  • ps2pdf.exe -firstpage 1 -lastpage 20 C:\input.ps C:\output.pdf
    ps2pdf.exe -subject "subject" C:\in.ps C:\out.pdf
    ps2pdf.exe -producer "producer" C:\in.ps C:\out.pdf
    ps2pdf.exe -creator "creator" C:\in.ps C:\out.pdf
    Please check related parameters and more on homepage, as here I can not list all of them.

For overlaying PDF from one to another

  • Please download PDF Toolbox Command Line. And call this software by the same way with the first one.
  • There are three versions of this software: Mac, Linux and Windows. Please download the proper version according to your needs.
  • Here is the usage of this software: pdftoolbox <input files> [options] <-outfile output >
  • When you need to overlay PDF, please refer to the following command line templates.
    pdftoolbox sample_in1.pdf -overlay sample_fillform.pdf -outfile "_overlay_out.pdf"
    pdftoolbox sample_in2.pdf -muloverlay sample_fillform.pdf -outfile "_muloverlay_out.pdf"
  • pdftoolbox "sample_fillform.pdf" -mulunderlay sample_in2.pdf -outfile "_mulunderlay_out.pdf"
    Related Parameters:
    -underlay    : apply the first page of the background PDF to the background of the single input PDF.
    -mulunderlay : apply each page of the background PDF to the background of the corresponding page of the single input PDF.
    -overlay     : use the first page of the background PDF as a watermark and put it over the input PDF.
    -muloverlay  : put each page of the background PDF over the corresponding page of the input PDF.

    Now let us check overlay PDF effect from the following snapshots. During the using, if you have any question, please contact us as soon as possible.

    input PDF
                                             This is from the input PDF.

    output PDF file
                   This is from output PDF.

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Related Posts

This entry was posted in PDF Toolbox Command Line and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *


Verify Code   If you cannot see the CheckCode image,please refresh the page again!