Is it possible to merge PDF doc into the current page?

PdfDocument.Merge(doc, new Stream[] {pdf1, pdf2}) appends pdf2 on new page.

Is it possible to draw pdf2 on the last pdf1 page at 'Y' position specified ?


1 Reply

SV Surya Venkatesan Syncfusion Team November 16, 2021 01:08 PM UTC

Hi Mr Andrey, 
 
Thank you for contacting Syncfusion support. 
 
Essential PDF supports merging multiple PDF documents from stream. You can merge the multiple PDF document using Merge method of PdfDocumentBase class, by specifying the path of the documents in a string array. We have attached the sample to merge the PDF documents for your reference. Please try it on your end and let us know the result. 
 
 
Note: PdfDocumentBase.Merge method helps to merge the two PDF’s. That mean first PDF followed by second PDF and so on. And we can’t able to draw the second PDF on specific Y position in the first PDF document. 
 
if you want to draw the one PDF page on another PDF document, we recommend you to use the PdfTemplate class API. Kindly refer the below links to get more details, 
 
If the above details not meet your requirement, kindly revert us with the more details, whether Y position means the end of the PDF document or specific location and how you want to merge the PDF documents. So, that will be helpful for us to provide the better solution at the earliest. 
 
Regards, 
Surya V 


Loader.
Up arrow icon