Loading...
 
Skip to main content

Online Publishing House - Output formats

Which way(s) should we go for the Online Publishing House, in terms of going from Tiki content to a consumable format:


mPDF is the selected PDF to HTML output tool. Also, an integration has been added with PhantomJS for Browser automation, including converting some JavaScript-generated content into static content for use by mPDF for printing.

The research below is kept for posterity.




For background info, see: How to Produce a BookQuestion

This will also be useful for Business Plans. Let's review some potential options

Booki which became Booktype


Booki uses: WYSIWYG HTML -> ObjaviQuestion -> PDF, ODT or EPUB.

Objavi takes Booki-zip files from Booki and currently outputs to PDF (web readable, book formatted, and newsprint formatted), ODT, and EPUB.Question

We would do: Wiki syntax (with some relevant logic) -> HTML5 with flat output -> ObjaviQuestion -> PDF, ODT or EPUB.

This is already how Tiki does it with wkhtmltopdf but it's pretty basic.

https://www.openhub.net/p/booktypeQuestion
https://www.openhub.net/p/objaviQuestion
https://github.com/booktype/BookJSQuestion
https://github.com/sourcefabric/Booktype/blob/2.0/README.mdQuestion
http://opensource.com/education/15/3/open-source-book-publishingQuestion

Wikipublisher

http://www.wikipublisher.org/Question
https://www.ohloh.net/p/wikipublisherQuestion

How Wikipublisher seems to do it: Wiki syntax -> LaTeX -> PDF

How we would do it: (Parser needs to be reworked)

  • Wiki syntax (with some relevant logic) -> HTML5
  • Wiki syntax (with some relevant logic) -> wikibook XMLQuestion -> LaTeX -> PDF


Interesting links


This will increase desire for a WYSIWYG editor which maintains wiki syntax.
How can we produce an EPUB or a .odt in this process?

Miktex

Pressbooks

PressBooks is a book-making tool that outputs as: epub, print-ready PDF, HTML, and InDesign-ready XML. Built on WordPress.


They also use (used?) Wikipublisher


And more recently are supporting mPDF
https://github.com/pressbooks/pressbooks/search?q=mpdf&type=Issues&utf8=%E2%9C%93Question

WeasyPrint

WeasyPrint is a visual rendering engine for HTML and CSS that can export to PDF.


Book creator and PediaPress

Rather than trying to fetch all pages selected for printing (curent tiki-print) have a look at MediaWiki's http://en.wikipedia.org/wiki/Special:Book which uses http://en.wikipedia.org/wiki/TeX (only for math)
Some technical descriptions on how MediaWiki's book creator works and which problems may occur: http://en.wikipedia.org/wiki/Help:Books/for_experts

export format: PDF or ODF or ZIMQuestion
http://en.wikipedia.org/wiki/Help:Books/Frequently_Asked_QuestionsQuestion

WikiBooks HTML output

All options on packagist

Using Apache FOP

dompdf


mPDF

http://mpdf1.com/Question

Zend_Pdf

  • "The Zend_Pdf component is a PDF (Portable Document Format) manipulation engine. It can load, create, modify and save documents. Thus it can help any PHP application dynamically create PDF documents by modifying existing documents or generating new ones from scratch."

TCPDF


Mozilla2PS

HTML2FPDF

There seems to be three with the same name:

Horde PDF library

http://www.horde.org/libraries/Horde_PdfQuestion

wkhtmltopdf


node-wkhtmltopdf

https://www.openhub.net/p/node-wkhtmltopdfQuestion

node-html-pdf

https://github.com/marcbachmann/node-html-pdfQuestion

pdfmake

Docverter

Convert plain text documents written in HTML, Markdown, or LaTeX to PDF, Docx, RTF or ePub with a simple HTTP API.

Chrome

We could do like this too:
https://github.com/hakimel/reveal.js#pdf-exportQuestion

HTML5 and PhantomJS

http://we-love-php.blogspot.de/2012/12/create-pdf-invoices-with-html5-and-phantomjs.htmlQuestion

eZ Components - Document

PDF using Flash

HPDF

MarMatMak

Publican

https://www.openhub.net/p/publicanQuestion

Flying Saucer

  • Uses iText

iText

ReportLab

In Python
https://www.openhub.net/p/reportlabQuestion
http://www.reportlab.com/opensource/Question

xhtml2pdf

  • In Python

https://github.com/xhtml2pdf/xhtml2pdfQuestion

speedata Publisher

Output to ODF

GrabzIT

Epub

AsciiDoc

AsciiDoc is a text document format for writing notes, documentation, articles, books, ebooks, slideshows, web pages, man pages and blogs. AsciiDoc files can be translated to many formats including HTML, PDF, EPUB, man page.

AsciiDoc is highly configurable: both the AsciiDoc source file syntax and the backend output markups (which can be almost any type of SGML/XML markup) can be customized and extended by the user.

https://plus.google.com/114112334290393746697/posts/CdXJt6hVn5AQuestion


See also: Wiki Parser Revamp

Sphinx

http://www.sphinx-doc.org/Question
http://readthedocs.org/projects/sphinx/downloads/pdf/stable/Question

jsPDF

An idea for mobile devices

See Online Publishing House - Mobile app

Related links
Show PHP error messages