I am searching for some utility/library (free source) for pdf creation.
The requirement is to get the contents of current displayed page and convert it to pdf.
The language is PHP.
The user scenerio would be
1. User hits a link which does some computation and provides him/her results in the browser as a html page.
2. The HTML page has a button, which says "Download as PDF"
3. Once user clicks it, the contents of the page gets converted to PDF and user gets the dialog for saving it.
The requirement is not to save any temporary document (the generated html or pdf) on server side.
I could get the utilities which can convert if html page path is given, but none of them were useful for above scenerio (as it would require to save temporary html file).
Can anyone guide or point me to such code snippet/library?
(I thought to open a new thread in "Looking For" for "Code Snippets". If many people can see such thread as a help, we can open it.)