Hello Vasco,
Thanks for your feedback.
You want to combine multiple documents into single file and print it, right?
If so, please refer to the following code.
- Code: Select all
String[] files = new String[] { "Sample1.pdf", "Sample2.pdf", "Sample3.pdf" };
using (Stream stream = new MemoryStream())
{
//Merge multiple pdf files to a single file
PdfDocumentBase doc = PdfDocument.MergeFiles(files);
//PdfDocumentBase doc = PdfDocument.MergeFiles(streams);
doc.Save(stream);
//Print pdf file
PdfDocument printDoc = new PdfDocument();
printDoc.LoadFromStream(stream);
//Some printing settings
.......
printDoc.Print();
}
If it is not what you want, could you please describe in detail the desired behaviour? Thanks.
Sincerely,
Amy
E-iceblue support team