在aspose pdf文档类上找不到startxref

时间:2018-10-19 18:45:50

标签: c# aspose.pdf

使用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
}

如何解决?

0 个答案:

没有答案