Skip to main content

PDF export of Plone content based on the weasyprint library.

Project description

https://github.com/plone/plone.pdfexport/actions/workflows/plone-package.yml/badge.svg Coveralls Latest Version Egg Status https://img.shields.io/pypi/pyversions/plone.pdfexport.svg?style=plastic:alt:Supported-PythonVersions License

plone.pdfexport

Provides PDF export functionality for Plone content.

Features

  • Exports Documents, Event, News items and other custom content.

  • Can be customized via CSS in the PDF Export control panel.

  • Long tables which will be rendered on more than one page, will have the thead repeated on every page.

  • One can use Plone body tag CSS classes to define CSS rules for specific Plone content.

This add-on is based on the great WeasyPrint library.

Translations

This product has been translated into

  • english

  • german

Installation

Install plone.pdfexport by adding it to your buildout:

[buildout]

...

eggs =
    plone.pdfexport

and then running bin/buildout

Usage

After installing the add-on you can call the “aspdf” view on any Plone content.

http://localhost:8080/Plone/news/aspdf

for testing, you can add the GET parameter “html=1” to see the HTML version before it get rendered into a PDF.

http://localhost:8080/Plone/news/aspdf?html=1

Authors

This add-on was build by Derico [MrTango].

Contribute

Support

If you are having issues, please let us know.

License

The project is licensed under the GPLv2.

Contributors

Changelog

1.0a1 (2021-07-13)

  • Initial release. [MrTango]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

plone.pdfexport-1.0a1.tar.gz (19.3 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page