How can I save a webpage as pdf using Prawn

51 views
Skip to first unread message

hareend r u

unread,
Dec 22, 2015, 8:43:41 AM12/22/15
to Prawn
Hello,

how can i save a webpage (https://www.testserver.com/print.html?PrintType=E2BOutput) as pdf using PRAWN...


please anybody help me....


Thanks 
Hareend

Evan Sharp

unread,
Dec 22, 2015, 9:43:32 AM12/22/15
to prawn...@googlegroups.com
Prawn is meant for building up new PDF files, not converting a website
to a PDF. You may want to check out something like phantomjs to do a
screen capture.
> --
> You received this message because you are subscribed to the Google Groups "Prawn" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to prawn-ruby+...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.


--
Evan Sharp

J. Edward Ellis

unread,
Dec 22, 2015, 10:30:02 AM12/22/15
to prawn...@googlegroups.com
You want wkhtmltopdf. This command line tool does exactly what you want.

J. Edward Ellis
Sent from my iPhone
Reply all
Reply to author
Forward
0 new messages