Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

Creating a PDF section using a byte array

$
0
0
Hello,

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 = new MemoryStream(pdfByteArray);                        Pdf pdf = new Pdf();                        pdf.Import(new StreamReader(mstream));                        Section section = new Section(pdf);
finalPdf.Sections.Insert(finalPdf.Sections.Count, section);

it is blank,  so perhaps this is not the proper way of doing it?
the documentation is light on this subject,  
http://www.aspose.com/docs/display/pdfnet/Import+Overload_1
so I hope you can help.

Viewing all articles
Browse latest Browse all 3131

Trending Articles