I'm using the following code to merge list of PDF documents.
Questions:
1> What would be the version of the final merged pdf?
2>Can we set the PDF version of final merged pdf?
public void Merge(IList input, Stream output) { using (Aspose.Pdf.Document finalPdf = new Aspose.Pdf.Document()) { foreach (Stream s in input) { using (Aspose.Pdf.Document doc = new Aspose.Pdf.Document(s)) { finalPdf.Pages.Add(doc.Pages); } }
Can you please also answer the first question? Which version Aspose will use by default when it concatenate PDFs? In above code, if the source PDFs are of different version then what would be merged PDFs version
Thanks for your inquiry. Please note according to concatenation code, we are copying pages from other documents to Parent PDF document (finalPdf). API will preserve the version of Parent PDF document for concatenated PDF.
Please feel free to contact us for any further assistance.