Winnovative Html To Pdf Converter Serial
Winnovative HTML to PDF Converter has full support for HTML tags and CSS, SVG, page breaks control with CSS styles, repeating HTML table header on each PDF page, live URLs and internal links in PDF, automatically generated bookmarks, HTML in the headers and footers.
I'm trying to convert an aspx page to a PDF using the Winnovative HTML to PDF converter, but before the page is converted, I want some javascript to be run. I know the javascript works as I've tested the standalone aspx page without converting it to a PDF. However, when it is converted, it appears that the javascript hasn't been run. I have read the FAQs on the Winnovative website (http://www.winnovative-software.com/FAQ.aspx) and as a result I've added the following to my code to ensure javascript can be allowed to run:
Adding this code still didn't work so I tried commenting out my main javascript and testing a very simple bit of javascript to see if that works. The javascript I tried was simply:
The element with a class of 'items' surrounds everything on the page. When I generated the PDF again, all the contents had disappeared as expected. This means that javascript is running.
I then wondered if maybe the PDF is being generated before my javascript has had a chance to run so that's why the effects can't be seen. I found in the Winnovative website's FAQs that the PDF converter has a ConversionDelay property which can be used to specify an additional period of time in seconds to wait for asynchronous content to be loaded before starting PDF rendering. So I added the following:
Even after this delay, my javascript still does not run. Can anyone please offer any guidance? Thanks.
CurtHtml File To Pdf Converter Online
LeahLeah2 Answers
I found that another product from winnovative 'EVO HTML to PDF Converter for .NET' does a good javascript execution, it works also with jquery.
Here is the test page:http://www.evopdf.com/evopdfdemo/default.aspx and I tried the conversion successfully with these jQuery rendered pages:
jQuery Accordion (the tabs are correctly rendered)
jQuery pagination (the pages numbers created by jquery are visible)
In this two examples the winnovative html to pdf conversion fails.
Winnovative Software
EDIT: It seems that the EVO library has problem on relative scripts include not starting with '/'
If you need to link an external script you have three options:
Add a script reference using the Absolute Path like
• Parsons, SA 2010-04-01 Full Text Available Indoor Environmental Health (IEH) is a comprehensive term that includes the effects of quantity of air, light and noise in a space and the physical, physiological and psychological aspects from colours, aesthetics, services, outdoor climate. • Seppaenen, O. Blazo. (ed.) (Helsinki Univ.
Insert the script inside the original page using the <script> tag
Use a relative path with '/' like
One workaround for this problem would be to save the page source after JavaScript has run on a browser, and then pass that HTML file to the converter.
You can install the Web Developer Toolbar for Firefox and use the View Source -> View Generated Source feature to get the HTML of the page in its current state, and then save that to a file.
BoffinbraiNBoffinbraiN