summary of the issue : I’m using Aspose.PDF for .net in (.NET 4.5.x version)
in my asp.net web api 2 application to generate PDF document.
In our code there is a segment where we dynamically fill up an HTML page and convert this html content into pdf and we do it for multiple pages. Now the issue is earlier in aspose.pdf 126.96.36.199 version the generation was seamless and without any issues. After i upgraded my version 188.8.131.52 and finally to 184.108.40.206 .In both these versions , the 3rd line of the code segment is giving me error of System,OutofMemory exception. This throws error when more than 4 /5 pages are dynamically created in this manner. Whereas earlier it used to seamlessly work with more than 12 pages.
code segment :
using (Aspose.PDF.Document docXML = new Document(“ComplexTextIndexingPage2Template.pdf”))
Aspose.Pdf.Document doc = new Document(ComplexTextTemplateBlank);
//pdfDocument is a separate pdf document in aspose.pdf where
The details of the error along with exception message and screenshot is attached.
Aspose.docx (167.1 KB)
also the artefacts like the html used for conversion into pdf is attached .asose pdf arefacts issues.zip (18.2 KB)
Please have a look into the issue and check why it is appearing in the 12.8 and 12.9 version while it was properly working in 11.7 version.
Please let me know if any more further details are needed.
also the code screenshot is attached .aspose code snippet.png (43.7 KB)
The error is generated in the 3rd last line of the code in screenshot and also you can see in the word document.
Please see the last page of the document to see the exception message generated