Producing high-quality documents with Plone

33 %
67 %
Information about Producing high-quality documents with Plone

Published on October 16, 2007

Author: ajung



Explains how to generated RTF, PDF, ODT, DOCX and WML from Plone contgent

Producing high-quality office documents with Plone Plone Conference 2007, Naples, Italy Andreas Jung ZOPYX Ltd. & Co KG D-72070 Tübingen, Germany,

About me working w/ Zope since 1999 Zope 2 release manager Co-founder and 2nd chairman German Zope User Group (DZUG) Author of various software for Zope/Plone: TextIndexNG 1-3, PloneCollectorNG, SQLAlchemyDA, zopyx.convert, z3c.sqlalchemy CEO of ZOPYX Ltd. & Co. KG focused on e-publishing solutions (Python, Zope, Plone) - SmartPrintNG

Plone has a poor export story for office formats - SmartPrintNG

Available solutions for PDF htmldoc-based solutions: Plone2PDF htmldoc is fast but it sucks: no CSS support, poor PDF quality Reportlab-based solutions fast, good quality, not straight-forward - SmartPrintNG

No out-of-the-box solution for Plone available: for generating PDF and other office formats (Word, RTF, Open-Office) stylesheet support configurable templates and content aggregation - SmartPrintNG

SmartPrintNG exports Plone content to PDF, ODT, WML, RTF, DOCX per content-type configurable content-aggregation templates and styles works out-of-the-box with any content-type highly configurable and customizable - SmartPrintNG

A quick demo... - SmartPrintNG

A quick look under the hood of SmartPrintNG - SmartPrintNG

A cross-format+platform solution Build on top of XSL-FO technology XSL-FO: Extensible Stylesheet Language- Formatting Objects a W3C recommendation consider it as a XML-ish typesetting system similiar to TEX much nicer output; supports hyphenation - SmartPrintNG

XSL-FO - SmartPrintNG

Historical background XSL-FO based approach in use for the Haufe iDesk plattform iDesk: Zope 2-based cross-plattform framework for content-retrieval applications in use since 2005 deployed to more than 150.000 customers (means: 150.000 customers running Zope on their Windows desktop) - SmartPrintNG

XSL-FO wants XML, but we have only HTML! - SmartPrintNG

All hail css2xslfo Input: XML/CSS2 or XHTML/CSS Output: XSL-FO document Java-based the „transformer“ - SmartPrintNG

From XSL-FO to PDF & friends - SmartPrintNG

XSL-FO processors (the „formatters“) a XSL-FO processor converts a XSL-FO document to some output format XINC ( Output format: PDF XFC ( Output formats: RTF, DOCX, WML, ODT - SmartPrintNG

XSL-FO processors (2) XFC and XINC: Java-based -> cross-plattform „it just works“ [tm] commercial :-( but worth their money other converter are even more expensive about 500-600 Euro/CPU core/server - SmartPrintNG

HTML-Fixer HTML-Tidy HTML aggregation adapter HTML css2xslfo (Java) XSL-FO xer manipulator Template/ XINC (java) XFC (Java) CSS chooser Template Document renderer (PDF, RTF, ODT, DOCX) SmartPrintNG zopyx.convert - SmartPrintNG

Content-type specific configuration ZCML: <smartprintng:resourceDirectory interfaces=quot;Products.ATContentTypes.interface.interfaces.IATDocumentquot; directory=quot;documentquot; /> Filesystem: > ls -la document -rw------- 1 ajung users 540 Sep 5 18:53 Big.css -rw------- 1 ajung users 515 Sep 5 18:52 StandardStylesheet.css -rw------- 1 ajung users 820 Sep 5 18:50 -rw------- 1 ajung users 617 Sep 5 17:34 default.fo_css - SmartPrintNG

SmartPrintNG - more features configurable header & footer regions within HTML support for counters (e.g. page counters) conditional output for left and right pages multi-column support hyphenation support - SmartPrintNG

Image support supports images inside Plone and external images converted internally to PNG open issues: images resolution selection fitting images into a fixed layout - SmartPrintNG

zopyx.convert encapsulates the complete XSL-FO conversion logic wraps css2xslfo, XINC and XFC inside a Python Package Input: HTML Output: PDF, RTF, ODT, DOCX, WML available as egg - use it a non-Zope environment - SmartPrintNG - SmartPrintNG - SmartPrintNG - SmartPrintNG

(Free) alternatives? Apache FOP processor: old FOP 0.4 sucked like hell new FOP 0.9.X sucks less, moving slowly only PDF support Open-Office (server mode) not stable enough another fat dependency - SmartPrintNG

SmartPrintNG Licensing Free for non-commercial use educational institutions NGOs charity organiziations OSS projects commercial license in preparation for commercial usage (for buying an OEM license) - SmartPrintNG

Add a comment

Related pages

Python, Plone, Electronic Publishing Consulting ... - ZOPYX

Our single-source multi-channel publishing solution Produce & Publish is a highly capable tool for producing high-quality PDF documents as well as for ...
Read more

Speakers — Site -

Speakers Speakers Session Speaker Target Audience; Antipatterns, Patterns, and Rules of ... Producing high-quality documents with Plone ...
Read more

Videos Vorträge Andreas Jung - Python, Plone, Electronic ...

Videos Vorträge Andreas Jung ... consuming business for producing high-quality documents ... high-quality PDF documents and print ...
Read more

European Agency for Safety and Health at Work (OSHA ...

European Agency for Safety and ... producing high-quality PDF documents. OSHA manages their content within the Plone CMS and generates updated PDF ...
Read more

Why is it important to produce high quality and attractive ...

It is not always important to produce high quality or ... see and well ,by producing high ... important to produce high quality documents?
Read more

Guidelines for Producing High Quality Photographs for U.S ...

Guidelines for Producing High Quality Photographs for U.S. Travel Documents - for ... producing a suitable image file.
Read more

Top Quality Documents - Solutions for Quality Documentation

Top Quality Documents is a specialised pharmaceutical consultancy which provides a quality review service ... to help them deliver high quality ...
Read more

Unit 8 - Design and produce documents

Unit Number and Title: Unit 8: Design and produce documents Level: Level 3 Credit value: 7 ... 2.1 Give reasons for producing high quality
Read more