Most of us know about the free web2pdf service offered by pdfonline but today I found http://www.freepdfconvert.com out smarts PDFonline’s service in the sense it can be easily integrated into any web page with out letting the user as if we really use http://www.freepdfconvert.com. In their web site they have a form to key in the URL of the web page which will be converted to PDF on the fly and the form looks like the one below
I said we can easily integrate this into any web application but how? the real magic is behind the URL of the controller page and query string params they use for conversion, it is pretty open and not documented. They are using the the target URL as (for easy readable I split the params)
I didn’t explore much except just two things in the param i.e. cUrl and outputmode.
cURL = Specify the target webpage
outputmode = link / stream
If you specify as “link”, then the generated pdf file rendered as hyperlink and we need to manually click for downloading the pdf but if we specify as “stream” then it will show up the download dialog window.
The output mode is the prime factor in this free service which made the PDFOnline’s service to lower rank. The quality of the generated PDF document is also really good.
I will post a simple web app using this tool soon.