使用Aspose pdf文档类时出现“找不到startxref”的异常。
byte[] docbytes = null;
using (WebClient webClient = new WebClient())
{
docBytes = webClient.DownloadData(filePath);
}
using (MemoryStream stream = new MemoryStream())
{
stream.Write(docBytes, 0, (int)docBytes.Length);
Aspose.pdf.Document document = new Aspose.pdf.Document(stream);
//This lines gives error "Startxref not found
}
”
如何解决?