This question popped up recently in the Acrobat community.

I have a single page form posted online for people to fill in. It is a monthly budget. They select the month that they are reporting for then fill in the blanks. I often get multiple months/forms emailed to me from an individual at one time which I want to combine into a single pdf document. When I try to combine the files Acrobat generates an error message saying that I cannot combine the forms because the field names are the same, and that I have to use a “portfolio” otherwise is will give all the fields with the same name the same value. Is there an easy way to combine these forms and keep the unique value in each field on each form?? Thank you for your HELP!

When you use the same form field name within your form, it can be a great timesaving feature for recipients. It means they only need to fill in the form field once and any other form fields with the same name will be filled in automatically. Sounds great, until you need to compile all your forms into one file for archiving. So, here are a couple of suggestions to address this workflow – note the second suggestion doesn’t work on PDF forms created using LiveCycle Designer.

And here's how to combine parts of one PDF with another PDF: Open the PDFs you want to combine in Preview. In each document, choose View Thumbnails. You'll see page thumbnails in the sidebar. I have two portrait A4 PDF pages which I want to merge into one landscape A3 PDF page (i.e. Put the two A4 pages side by side and get rid of any gap between them)2 pages are now 1.

The first workaround is to combine the forms into a Portfolio instead of a single PDF file. This will eliminate the issues with data in the individual form fields and is quite easy to do. Just select Combine Files into PDF from the Welcome Screen and add your files – you can even grab folders of completed forms.

Under the Options button, be sure Portfolio is selected as the File Type, click OK, and select Combine Files.

Now, Portfolios are nice but they can be a bit clumsy if all you want to do is page through a bunch of returned forms. The other workaround is to flatten the form fields, so the data doesn’t get all messed up, and then merge into a single file. This done by using the PDF Optimizer that’s part of the Pro. version of Acrobat. The PDF Optimizer is located under File > Save As Other > Optimized PDF (version XI). In Acrobat X Pro., it’s located under File > Save As > Optimized PDF. Select Discard Objects in the left-hand column, check “Flatten form fields”, and click OK.

This will flatten all the form fields in the PDF file so they can no longer be filled out and allow you to combine into a single file. Again, combining can easily be accomplished using the Combine Files dialog. If you have several forms that you need to flatten, you can create an Action (with the Pro. version) to do this.

Tally 10.2 free with crack. If you would like to learn more about form techniques in Acrobat XI check out my session on Adding and Editing Form Fields in Learn Acrobat XI on Udemy.com.

merge_pdfs.py
fromPyPDF2importPdfFileReader, PdfFileWriter
fromPyPDF2.pdfimportPageObject
reader=PdfFileReader(open('invoice.pdf','rb'))
invoice_page=reader.getPage(0)
sup_reader=PdfFileReader(open('supplement.pdf','rb'))
sup_page=sup_reader.getPage(1) # We pick the second page here
translated_page=PageObject.createBlankPage(None, sup_page.mediaBox.getWidth(), sup_page.mediaBox.getHeight())
translated_page.mergeScaledTranslatedPage(sup_page, 1, 0, -400) # -400 is approximate mid-page
translated_page.mergePage(invoice_page)
writer=PdfFileWriter()
writer.addPage(translated_page)
withopen('out.pdf', 'wb') asf:
writer.write(f)

commented Feb 9, 2018

commented Jun 26, 2018

Works fine for me, thanks! (See my fork for a version which merges two PDFs page by page.)

Combining Pdf Pages Into One Document

Combine two pdf pages into one

Combine Two Pdf Pages Into One

commented Mar 25, 2020

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment