Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6696911
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:23:50+00:00 2026-05-26T06:23:50+00:00

I have two PDF-files. Both have the same geometry and the same amount of

  • 0

I have two PDF-files. Both have the same geometry and the same amount of pages. I would like to merge them, such that one file is the background and one file is the foreground. I tried pdftk with the background option:

pdftk bg.pdf background fg.pdf output out.pdf

But pdftk just uses the first page of the bg.pdf as a watermark for all pages. I would like to do it in Java (for example with the iText library) or with a bash command. Any suggestions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T06:23:51+00:00Added an answer on May 26, 2026 at 6:23 am

    you need to use one of latest build of pdftk

    pdftk 1.43 or pdftk 1.44

    these builds have a new switch multistamp

    http://www.pdflabs.com/docs/pdftk-man-page/#dest-op-multistamp

    Same as the stamp operation, but applies each page of the stamp PDF to the corresponding page of the input PDF. If the input PDF has more pages than the stamp PDF, then the final stamp page is repeated across these remaining pages in the input PDF.

    otherwise, if you are unable to build pdftk 1.43 or 1.44 from sources, you can use

    Pdf Transformer

    http://sourceforge.net/projects/pdf-transformer/

    java -jar ./pdf-transformer-0.4.0.jar <INPUT_FILE_NAME1>  <INPUT_FILE_NAME2> <OUTPUT_FILE_NAME> merge -j
    

    to overlay two pdf files

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have several A4 PDF documents which I would like (two into one) glue
I have two PNGs that I am trying to combine into a PDF using
Let's say I have two PDF templates created with Adobe Acrobat, which are both
I have two files. I want to create pdf with these two files. does
I have a bunch of PDF files that came from scanned documents. The files
i have a page where there are two links to pdf files. the first
I'm using iTextSharp to generate some PDF files. I have two tables which have
Have two folders with approx. 150 java property files. In a shell script, how
I have two applications written in Java that communicate with each other using XML
I have a pdf which contains 'UniCNS-UCS2-H' font, I tried both pdfbox and pdfrenderer,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.