Im building a big pdf out of multiple sources including other PDFs, which are retrieved via API in the form of a byte array. Using Generator.Pdf.Import(streamreader) seems like it is built for that, but it is giving me a blank section every time.
Here is my code
MemoryStream mstream = newMemoryStream(pdfByteArray); Pdf pdf = newPdf();
pdf.Import(newStreamReader(mstream)); Section section = newSection(pdf);
Thanks for contacting support and sorry for the delayed response.
Aspose.Pdf.Generator namespace only provides the feature to create PDF document from scratch and it does not offer the feature to load/use existing PDF files. In case you need to use the contents from PDF file, please try using Aspose.Pdf.Document object. Aspose.Pdf.Document object has an overload constructor to load contents from Stream object (you can instantiate Stream object from Byte Array) and concatenate the contents. For further information, please visit
Aspose.Pdf provides the feature to create as well as manipulate existing PDF files. So as per your requirement, you can also concatenate PDF files using this API. For further information, please visit Concatenate PDF Files