niwibe/phantompy — pull request #11 by waliaashish85 (2013-09-26 18:03:23+00:00)
Title: Changes for capturing webpage and rendering it to PDF.

Added functionality to render webpages to PDF. An example to generate PDF with the latest changes is as follows:-

>>> import phantompy as ph
>>> ctx = ph.context.context()
>>> frame = ph.open("https://facebook.com")
>>> frame.set_paper_size({'orientation':'landscape', 'format':'Letter'})
>>> frame.to_pdf('/home/ashish/test.pdf')