How to create and add separator between PDF documents?

We have 1000+ pdf documents that needs to merge and then split them again.The merge process will add a separator page between two pdf documents while merging. So that splitting process will know where to split the document.


These 1000 documents consist of 3 different types. So i need to create 3 different separator (one for each type). The merge process will add appropriate separator while merging depending on the document type.

My question is, how do i create & detect this separator page?

One option i was thinking is to create a PDF page with specific barcode and the splitting process will read the barcode. But this seems like time consuming process because splitting process has to read every page, check if has barcode and if true, then extract the data to check the type.

Is there any other better way to do it?

Hi Laxmikant,


Thanks for contacting support.

In order to accomplish your requirements, you need to add some mark inside PDF to indicate the start of each PDF document. Either you can add barcode and parse each page to identify the BarCode inside it or you may consider adding blank page between two documents and while parsing the document, you can identify blank pages by following the instructions specified over Find whether PDF file contains images or text only.

Or you may consider following the instructions specified over following link on how to Concatenate PDF files and create Table Of Contents. Using this approach, each TOC entry will represent start of new document.

In the event of any further query, please feel free to contact.