Print a webpage server side

Jean-Baptiste

Well-known member
Hello,

This question i not related to xenforo.

Is there a way to print a webpage (as firefox or chrome does), in pdf, but server side ? Because browsers are printing a page exactly as it's shown up to the visitor, with complex CSS stuff etc...

Best regards.
 
Hello,

This question i not related to xenforo.

Is there a way to print a webpage (as firefox or chrome does), in pdf, but server side ? Because browsers are printing a page exactly as it's shown up to the visitor, with complex CSS stuff etc...

Best regards.

You can grab the page source. save it as html then user wkhtmltopdf to save the contents as PDF.

https://code.google.com/p/wkhtmltopdf/
 
You'll have to ask in the google groups about that but i've used it to generate a 14-18 pages PDF's with, styles, css, google maps and images. it worked great.
 
Top Bottom