I am having an issue getting the page count of a PDF file. I am running GdPic 7.1.
int pdfID = this.gdImaging.PdfReaderLoadFromStream(stream);
try { return this.gdImaging.PdfReaderGetPageCount(pdfID); } // Exception thrown here
finally { this.gdImaging.PdfReaderCloseDocument(pdfID); }
The stream is coming from a WebResponse object. I have used a similar method to count Tiff pages (using the same data retrieval through the WebResponse) with no issue.
Could you please advise on this issue?
