We have created a pdf using aspose. It has the size A6, and contains only one page.
Is it possible to merge/embed this page or its content at the end of another pdf document which has A4 size using aspose?
Thanks for contacting support.
You may simply add page(s) of a PDF document into PageCollection
of another PDF file by calling Document.Pages.Add(...)
method. Please check following code snippet which demonstrate the mentioned feature, offered by the API.
Document pdfDocument1 = new Document(dataDir + "input.pdf");
Document pdfDocument2 = new Document(dataDir + "input2.pdf");
pdfDocument1.Pages.Add(pdfDocument2.Pages);
pdfDocument1.Save(dataDir + "ConcatenatedFile_out.pdf");
In case if you face any issue, please share your sample PDF document(s), so that we can test the scenario in our environment and address it accordingly.