Link to home
Start Free TrialLog in
Avatar of Monroe406
Monroe406

asked on

Save contents of TWebBrowser to PDF

Any recommendations on how to go about creating a PDF file using the contents of a TWebBrowser component?
Avatar of Sinisa Vuk
Sinisa Vuk
Flag of Croatia image

Although you can go with htm2pdf tool (open source), think that better would be using some free print-to-pdf tool like doPdf, Foxit Reader, ....Works like you want to print from twebbrowser component ....
Avatar of Monroe406
Monroe406

ASKER

The only problem with a Print-to-PDF tool is, as a developer trying to distribute my app for commercial purposes, I would need a Print-to-PDF tool that didn't require a huge licensing fee.

The problem with the htm2pdf tool is that it doesn't support CSS and if my memory serves me correctly, the PBear THtmlView could not handle Hebrew Unicode characters properly.
then you need something "solid" - probably commercial product like Foxit pdf sdk
hi Folks, I'm faced with a similar problem, please see EE=SSRS Save Report to Named PDF and path

Also using TWebBrowser to render SSRS reports from may application, it's magic. Want to write the rendered report, say"Purchase Order" to a job folder. To be attached to an email to the vendor. Having everthing working accept the File write pdf.
BTW Monroe406, Had an Austrailian consultant write some code for this. Had a little trouble with it in 64Bit. Like to revisit this very soon, so keep in touch. There has to be an elegant way to do this... Greg
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.