collective.sendaspdf (2.3.1)
- Homepage of collective.sendaspdf: http://pypi.python.org/pypi/collective.sendaspdf
- collective.sendaspdf repository: http://github.com/vincent-psarga/collective.sendaspdf
collective.sendaspdf is an open source product for Plone that allows downloading the page seen by the user as a PDF file. It also provide a form to send the page by e-mail (a screenshot of the current
page in a PDF format being joined to the e-mail).
It relies on two products to generate the PDF files:
- xhtml2pdf: http://www.xhtml2pdf.com/
- wkhtmltopdf: http://code.google.com/p/wkhtmltopdf/
The site manager can easily chose which solution he prefers for the generation.
Configuring
Go to the Plone control panel. You will find a 'Send as PDF' link that sends you to the products configuration page.
This page proposes a few settings:
- the tool used to render the PDF files.
- the directory where the PDF files are stored.
- the sentence used as salt when hashing the user's emails (this hash is used to know which files a user can access)
- the name used in the mail for the PDF file.
- a default title/body for the mails.
For wkhtmltopdf user, two extra options are available:
- always use the print CSS to render the PDF.
- use the print CSS for a given set of objects.
xhtml2pdf always use the print CSS.