We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Convert HTML as loaded string to PDF using C# and Aspose.PDF failing in release 21.10.1 -Throwing loading exception

Hi!
I am currently trying to convert Html Loaded from a String into pdf page using Aspose.pdf & C# and getting this error under the document creation phase >>
var options = new HtmlLoadOptions(null) { PageInfo = CreatePageInfo(landscape) };
var doc = new Document(memoryStream, options);
“The document is not completely loaded. Please wait for ‘complete’ state aspose pdf”. This is however same exact code that was running fine up to release v21.06.0 but for some reasons and after this release hasn’t been working at all . Have you somehow produced any breaking changes to Html converter functionality recently in Aspose.pdf releases? Why the latest release 21.10.01 no longer working with my code ?

@Clals87

Can you please share your sample HTML document along with complete runnable code snippet that is able to reproduce the same error that you are facing? We will test the scenario in our environment and address it accordingly.