Skip to main content
Participant
March 25, 2024
Question

ADOBE ACROBAT Merged PDF issue

  • March 25, 2024
  • 1 reply
  • 316 views

Im merging few PDFs which are same PDFs with 4 fields in each in a pyhon code adn downloading the merged PDF.
Example :

PDF 1:

name - ash

age -31

branch - 1

code -1

 

PDF 2:

name-tgtg

age - 54

branch-6

code-9

 

Above are the fields and values in each PDF.
When I merge the two PDFs in python code and dowload the PDF, Im getting the following in the merged PDF

name - ash

age -31

branch - 1

code -1

name - ash

age -31

branch - 1

code -1
The two PDFs are merging but when i open in the acrobat reader, im having same field values for the second PDF also same as the first PDF.
When I try to open the merged PDF in firefox browser, there is no issue all the fields are different.
Any suggestions why this is happening

?

This topic has been closed for replies.

1 reply

Thom Parker
Community Expert
Community Expert
March 25, 2024

In a single PDF, Fields with the same name have the same value. You'll need to flatten the PDFs before merging if you want the field data to be displayed properly.  

 

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often