I am looking for a JavaScript or PHP plugin/library to convert a beautifully designed website (using CSS) to PDF file.
To clarify further, I need to convert the HTML-CSS output on the webpage to PDF file. I found some interesting plugins related to JavaScript like jsPDF but it only converts HTML to PDF, ignoring CSS. Which is not what I want.
Some points:
- The generated PDF file should have output of both HTML and CSS.
- Should work on both Mac and Windows.
- Should work on latest version of Chrome and Firefox.
PS: The elements are being added dynamically using JavaScript. Suppose a scenario where there are lot of different styled sections. User can add or remove those styled sections, and later he/she can press on a button "create as PDF".
js pdf screenshot
? For instance, this looks helpful ... stackoverflow.com/questions/5621907/… of course, I have only grazed here, and not verified that it is is PDF and not PNG or JPEG, which is why this is a comment, and not an answer. But surely you are not inventing an entirely new wheel?