Skip to content Skip to sidebar Skip to footer

Can Abcpdf Create A Pdf From A Page Created With Javascript?

A visitor to my website can click on a 'Print Preview' button. Javascript code opens a Window and using document.writelin() will create a html page that displays dynamic content (b

Solution 1:

I think you should be able to. There are some settings in the c# which will help.

You need to set the

doc.HtmlOptions.UseScript = true; 

this will enable javascript to run.

it's probably worth setting the timeout to give it more time to finish loading

doc.HtmlOptions.Timeout = 10000;

and i've always had better results with the gecko rendering engine

doc.HtmlOptions.Engine = EngineType.Gecko;

Post a Comment for "Can Abcpdf Create A Pdf From A Page Created With Javascript?"