Categories: graphics,printingStatus: STABLEComponent logo
Author: Ulrich TellewxWidgets supported ports: wxMSW, wxGTK, wxMac
Current maintainer: Ulrich TellewxWidgets supported versions: 2.8, 2.9
Latest version: 0.9.4Build system: Bakefile-based
Programming language: C++Samples provided: 30
External dependencies: noneDocumentation: doxygen

Description: wxPdfDocument allows wxWidgets applications to generate PDF documents. The code is a port of FPDF - a free PHP class for generating PDF files - to C++ using the wxWidgets library. Several add-on PHP scripts found on the FPDF web site are incorporated into wxPdfDocument. Embedding of PNG, JPEG, GIF and WMF images is supported. In addition to the 14 standard Adobe fonts it is possible to use other Type1 or TrueType fonts - with or without embedding them into the generated document. In Unicode build CJK fonts are supported, too. Graphics primitives allow the creation of simple drawings. !!! IMPORTANT NOTICE !!! Starting with version 0.9.5 (December 2015) further development of this component moved to GitHub (https://github.com/utelle/wxpdfdoc).

Links for wxPdfDocument:

Important notice


Starting with version 0.9.5 (December 2015) further development of this component moved to GitHub.


August 2013

Version 0.9.4 of wxPdfDocument has been released and is available for download.

This is mainly a bug fixing release.

A package with precompiled Windows binaries for the wxPdfDocument utilities MakeFont and ShowFont has been added to the file release section wxPdfDocument Add-Ons. The file release provides additional tools, fonts and applications which may be of interest to users of wxPdfDocument.

Currently the following add-ons are provided for use with wxPdfDocument:

  1. wxpdfdoc-utilities-1.2.zip - Precompiled Windows binaries for the wxPdfDocument utilities MakeFont and ShowFont
  2. wxpdfdoc-dejavu-2.12.zip - Preprocessed DejaVu Unicode fonts version 2.12
  3. wxpdfdoc-ttf2ufm.zip - A modfied version of the utility TTF2UFM which allows to generate AFM and UFM files from TrueType or OpenType font files as needed for the wxPdfDocument utility MakeFont. A Windows executable is included.

NOTE: The AFM files generated by the modified version of TTF2UFM are only usable with the MakeFont utility included in wxPdfDocument version 0.8.5 and above.



The doxygen-generated documentation for this component is available online here. Please let me know if you think something is missing.

To get an impression what can be done with this component take a look at the sample documents generated with wxPdfDocument:

Known bugs


Information about known bugs is now placed on a separate page.

To submit a bug report please look at wxCode support page.

Future enhancements


Enhancements planned for the next versions:

To submit a feature request please look at wxPdfDocument issues page.

Supporting further development


If you find wxPdfDocument useful and would like to support the further development of this wxWidgets component, you may make a donation by clicking on the button on the left.