Create PDF from rendered web page (HTML and Flash)
I am trying to generate a PDF from a webpage (or series of webpages). The pages feature not only HTML / Javascript, but also Flash images (graphs / diagrams, etc.). I've searched diligently for a library (.NET), but I still have to come up with something that works. (Note: I found a Winnovative solution , but this has a different problem.) The killer for all these apps tends to be a Flash requirement. The library can be FOSS / purchased / etc. - I am open to all proposals at the moment.
Does anyone have any other options? Again, Flash is the cause of most of the problems. Thanks.
a source to share
A possible solution that seems to have worked is the FireShot API . I appreciate the other solutions, but they suffered from many of the same problems I encountered with the original solutions I tried.
Thanks again!
a source to share
If you are so inclined, you can try our EasyPDF SDK tool (disclaimer: I'm on the development team that builds it). An evaluation copy of pdfonline.com is available there. It does not convert SWF files to PDF, but it can capture Flash images embedded in web pages. Some Flash images take longer than other web pages, so if you do decide to give it a try, pay special attention to the WaitTimeAfterPageIsLoaded property, which determines how long to wait for the page to load before converting. The WaitTimeAfterPageIsLoaded property exists on both the HTML transform classes IEPrintJob and IEExtendedPrintJob. As you can see we are fans of long descriptive class names :)
Anyway, I can't tell you with 100% certainty that it will work without knowing more about your webpages, but it's worth a look if you're still looking for something. Greetings
a source to share
There are several free solutions available, each with its own disadvantages. Most of them have very primitive HTML support and will not render Flash content.
Prince XML, while expensive, is probably the best HTML-to-PDF solution, though even it probably doesn't support Flash.
There are also several that use rendering engines from web browsers that can support Flash. Have a look at wkhtmltopdf and wpdf .
a source to share