Skip to content

Produce books with Plone and export them in a high quality PDF.

Notifications You must be signed in to change notification settings

4teamwork/ftw.book

Repository files navigation

ftw.book

This package provides content types for creating a book which can be exported as PDF.

Features

  • Provides a content type "Book" which defines the root of a book.
  • Provides a content type "Chapter" for creating the structure of a book. Chapters are nestable.
  • Content is added to chapters using simplelayout blocks.
  • Provides an action for exporting the book or a single chapter recursively as PDF.
  • Provides LaTeX representations for the default simplelayout blocks.
  • Adds fields for injecting LaTeX code to every content type within a book using schemaextender.
  • Provides a "Reader" view which displays the book on one page for a enjoyable reading experience.
  • Provides simplalayout "Table" block for enter tabular data using a datagrid widget which generates HTML table representation which also convertable into a PDF.

Requirements

Usage

  • Add ftw.book to your buildout configuration:
[instance]
eggs +=
    ftw.book
  • Install the generic import profile.
  • Install a LaTeX distribution, see ftw.pdfgenerator install instructions.

Compatibility

Runs with Plone 4.3 and 5.1.

Development / tests

For running the full PDF generation tests ImageMagick is required for diffing the PDFs.

Since we need to re-compile the resources after each change, there is a watcher implemented started with yarn watch recompiling after each change.

Uninstall

This package provides an uninstall Generic Setup profile, however, it will not uninstall the package dependencies. Make sure to uninstall the dependencies if you no longer use them.

Links

Copyright

This package is copyright by 4teamwork.

ftw.book is licensed under GNU General Public License, version 2.