Loading...
 
Skip to main content

History: mPDF

Preview of version: 74

mPDF

Overview

mPDF is a PHP class which generates PDF files from UTF-8 encoded HTML. It is based on FPDF and HTML2FPDF, with a number of enhancements. mPDF was written by Ian Back and is released under the GNU GPL v2 licence. mPDF is manually installable in Tiki since Tiki15. Since Tiki18 you can install mPDF with the new Packages feature from the Tiki admin panel in a few clicks.

 PDF Output of Tiki content with 'mPDF'

All Free / Libre / Open Source PDF generation solutions were analyzed and mPDF was selected as the overall best solution for deep integration in Tiki. The main reasons are:

  1. Vast feature set: The mpdfmanual.pdf (8 megs download) is over 600 pages!
  2. It's written in PHP (like Tiki) so it eases deployment, facilitates integration and makes it easier for the Tiki community to contribute.
  3. The approach is to convert HTML to PDF (other approaches would have been more complex / less suitable for the Tiki context)
  4. Strong multilingual support: Some of the other good solutions didn't support all languages. And thus, it would have forced us to have a second solution for these languages, which would have fragmented the efforts.


Since the GNU GPL v2 licence is not compatible with Tiki's LGPL licence, we cannot ship mPDF with the source code as part of Tiki. Integration code has been added to Tiki, and you can install mPDF via Packages in Tiki18.

See also:


Installation

  1. Enable mPDF in Tiki: login to your Tiki and go to example.org/tiki-admin.php?page=print and set the following preference: PDF from URL: mPDF
  2. If mPDF is not installed, you can install mPDF via the Composer Web Installer

Image

Configuration

mPDF works well with Tiki out-of-the-box even on average shared hosting. There are many options at tiki-admin.php?page=print, most of which can be overridden page by page via PluginPDF
Image

If you are programmer, you may want to look in */mpdf/config.php for additional configuration options.


Collection of References on doc.tiki.org

  • Print general info about printing
  • PDF general overview about PDF creation in Tiki
  • mPDF create PDFs from Tiki content (advanced library that works even on shared hosting). Recommended for Tiki18+
  • PluginPDF alter default settings of mPDF per wiki page
  • PluginPDFPageBreak add a page break for PDFs created with mPDF
  • PluginMediaPlayer display PDF file from file gallery
  • PDF.js viewer PDF.js from Mozilla
  • ViewerJS: a script to view PDFs and ODFs, which bundles WebODF
  • PluginArchiveBuilder Generate a zip file, including PDFs from wiki pages
  • WeasyPrint A PDF generation option in Python
  • wkhtmltopdf create PDFs from Tiki content (needs root installation)
  • dompdf once used for PDF print of slideshows

History

Advanced
Information Version
Josue Zirimwabagabo 82
Josue Zirimwabagabo 81
Josue Zirimwabagabo 80
Marc Laporte Put URL higher on page 79
Torsten Fabricius 78
Torsten Fabricius 77
Philippe Cloutier Overview: more exact introduction (16->15.2) 76
Marc Laporte 75
Marc Laporte 74
Marc Laporte 73
Marc Laporte 72
Marc Laporte 71
Marc Laporte 70
Marc Laporte 69
Marc Laporte 68
Marc Laporte Now that things we done cleanly in 18.x, we don't need the manual (and confusing) documentation 67
Marc Laporte Tiki17 is no longer supported 66
Marc Laporte Tiki 17 is no longer supported. Interesting info moved to 18.x section 65
Marc Laporte Use Tiki18 64
Marc Laporte Just use Tiki18 63
Marc Laporte 62
Marc Laporte 61
Marc Laporte 60
Marc Laporte That domain expired 59
Torsten Fabricius 58
Torsten Fabricius 57
Torsten Fabricius 56
Torsten Fabricius 55
Torsten Fabricius 54
Torsten Fabricius 53
Torsten Fabricius added Related 52
Marc Laporte 51
Marc Laporte 50
Torsten Fabricius 49
Torsten Fabricius should be halfway nice and readable now (again) 48
Torsten Fabricius ty better using BOX inside TABS 47
Torsten Fabricius test format 46
Torsten Fabricius needed to change formattimg for that TABS and maketoc fit together 45
Torsten Fabricius allocated all installation hints to one place, using the TABS plugin 44
Marc Laporte 43
Torsten Fabricius demoted my just added headline by one level for the sake of consistency 42
Torsten Fabricius added Tiki version destiction on top of "Installation" ... maybe Tabs ... the mpf improvement with Tiki 17 makes a HUGE difference!! Thx guys!!! 41
Marc Laporte 40
Marc Laporte 39
Marc Laporte 38
Marc Laporte Distinct, simpler instructions for Tiki17 37
Marc Laporte Edit restored by rescue script 2017-04-24T18:09:12+00:00 36
Xavier de Pedro Edit restored by rescue script 2017-04-24T18:09:12+00:00 35
Xavier de Pedro Edit restored by rescue script 2017-04-24T18:09:12+00:00 34
Xavier de Pedro Edit restored by rescue script 2017-04-24T18:09:12+00:00 33
  • «
  • 1 (current)
  • 2