We have a Word document that we are converting to PDF using Aspose Words. This particular document is giving an error when opened with Adobe Reader. It is fine when opened with Foxit Reader and a couple of others. The error from Adobe is:
There was an error processing a page. There was an error reading this document.
We have several thousand other documents that are converted fine, but the attached document is giving us problems.
We have version 11.3.0.0 of Aspose words and are setting the following:
doc = New Aspose.Words.Document(WordStream) Dim pdfOptions AsNew Aspose.Words.Saving.PdfSaveOptions
pdfOptions.HeadingsOutlineLevels = 3
pdfOptions.ExpandedOutlineLevels = 1
pdfOptions.Compliance = Aspose.Words.Saving.PdfCompliance.Pdf15
Thanks for your inquiry. Could you please attach your input Word document here for testing? I will investigate the issue on my side and provide you more information.
Thanks for your inquiry. Perhaps, you’re using an older version of Aspose.Words; as with Aspose.Words v11.8.0, I was unable to reproduce this problem on my side. I would suggest you please upgrade to the latest version of Aspose.Words i.e. v11.8.0 and let us know how it goes on your side. I hope, this will help.
Moreover, I have attached the output PDF file that is generated on my side here for your reference.
We have been trying to upgrade to the latest version for most of this week. We did not receive our licence renewal notice and had to chase up a new licence as we got an expiry message when we installed V11.8.
Now that we have the new licence file we are having exceptions being thrown :
"Cannot find black listed licenses resource. Please report this error to Aspose.""Cannot find black listed licenses resource. Please report this error to Aspose."
I have not un-installed the older versions as we need them for other projects until we get this one sorted out.
The error was generated by the same code as we have been using only difference was that the old licence file was replaced with the new one (it resides in the same folder as the application DLL) and the new version DLL’s were referenced (and placed in the appropriate folder).
If we run with the old licence file and the new DLL’s we get a message saying that we are not licenced. When the licence files are replaced we get the current problem.
Thanks for your inquiry. We have just released Aspose.Words v11.9.0, I would suggest you please upgrade to the latest version which will resolve your licencing problems. You can download it from the following link:
I was unable to reproduce this problem on my side. I would suggest you please upgrade to the latest version of Aspose.Words i.e. v11.8.0 and let us know how it goes on your side. I hope, this will help.
Awais,
We have upgraded to Version 11.9 and we are still having issues with opening the PDF File with Adobe. Other programs (Foxit) are OK with the document, but Adobe is getting upset.
I have attached both the input and output documents.
Thanks for your inquiry and sorry for the delayed response.
While using the latest version of Aspose.Words i.e. 11.9.0, I have rendered your ‘GIS Enquiry System User Guide(2).DOCX’ to Pdf format; I then opened the produced Pdf with Adobe Acrobat X version 10.2.0 and Foxit Reader v5.1 and was unable to observe any such problem on my side. It seems the attached ‘Document.pdf’ was first produced using Aspose.Words v11.3.0 and then modified by another third party control iTextSharp 5.1.3. Could you please also double check if you are using the latest version (11.9.0)? You can dynamically check if you’re referencing the correct DLL by using the following code snippet:
Console.WriteLine("Aspose.Words Version Number: " + assemblyName.Version.ToString());
}
Moreover, I have attached the Pdf file that is produced on my side using Aspose.Words v11.9.0 here for your reference. If we can help you with anything else, please feel free to ask.