Hi Team
When we pass a PDF stream as byte[] content and LoadFormat as docx it wont throw error. Instead it return incorrect pagecount.
private int GetWordDocumentPageCount(byte[] content, LoadFormat format, string file…...Document WordDocument = new Document(filestream,...Aspose.Words tries to load the document with the specified load format...