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

All pages are null when instantiating new Document

$
0
0
I am saving an Aspose.Words document as a PDF bytes and later, reading the PDF's bytes into a MemoryStream so a new Aspose Document() object can be instantiated. However, when I instantiate the Document using the constructor that accepts a Stream, it instantiates the Document with three pages in the Document.Pages property, but all three pages are null.

//get bytes from file/ database location

using(var stream = new MemoryStream(bytes))
 var document = new Document(stream, false); 
 }


How do we get the pages to not be null?

Viewing all articles
Browse latest Browse all 3131

Trending Articles