Title: wp-mpdf
Author: fkrauthan
Published: <strong>Òkúdù 29, 2009</strong>
Last modified: Ọwẹ́wẹ̀  21, 2025

---

Ṣàwárí àwọn plugin

![](https://s.w.org/plugins/geopattern-icon/wp-mpdf.svg)

# wp-mpdf

 Láti ọwọ́ [fkrauthan](https://profiles.wordpress.org/fkrauthan/)

[Ṣe ìgbàsílẹ̀](https://downloads.wordpress.org/plugin/wp-mpdf.3.9.2.zip)

 * [Àwọn àlàyé](https://yor.wordpress.org/plugins/wp-mpdf/#description)
 * [Àwọn àgbéyẹ̀wò](https://yor.wordpress.org/plugins/wp-mpdf/#reviews)
 *  [Ìgbéwọlẹ̀](https://yor.wordpress.org/plugins/wp-mpdf/#installation)
 * [Ìdàgbàsókè](https://yor.wordpress.org/plugins/wp-mpdf/#developers)

 [Ìrànlọ́wọ́](https://wordpress.org/support/plugin/wp-mpdf/)

## Àpèjúwe

Print WordPress posts as PDF. Optional with Geshi highlighting. It also has support
for password protected posts and only logged in users can print post as pdf support.

Note: You can find the development repository at Github: [https://github.com/fkrauthan/wp-mpdf](https://github.com/fkrauthan/wp-mpdf)

### License

This file is part of wp-mpdf.

wp-mpdf is free software: you can redistribute it and/or modify it under the terms
of the GNU General Public License as published by the Free Software Foundation, 
either version 3 of the License, or (at your option) any later version.

wp-mpdf is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with wp-
mpdf. If not, see [http://www.gnu.org/licenses/](http://www.gnu.org/licenses/).

## Ìgbéwọlẹ̀

 1. Upload the whole plugin folder to your /wp-content/plugins/ folder.
 2. Set write permission (777) to the plugin dir folder => /wp-content/plugins/wp-mpdf/
    cache
 3. Go to the plugins page and activate the plugin.
 4. Add to your template
     `php if( function_exists( 'mpdf_pdfbutton' ) ) { mpdf_pdfbutton();}
    or as a small button php if( function_exists( 'mpdf_pdfbutton' ) ) { mpdf_pdfbutton(
    false, 'my link', 'my login text' ); } The second text specifies the text which
    should displayed if you have checked “needs login” and a user isnÌtumọ̀ Yorùbá:’
    t logged in. (if you wish to open the pdf print in a new tab you may pass “true”
    for the first parameter)
 5. You can adjust some options: in your admin interface, click on plugins and then
    on wp-mpdf. For allowing or disabling pdf export you can use the checkbox when 
    creating/editing a post or a page.
 6. Place your templates into /wp-content/wp-mpdf-themes

The mpdf_pdfbutton function signature:
 `php function mpdf_pdfbutton( $opennewtab
= false, $buttontext = '', $logintext = 'Login!', $print_button = true, $nofollow
= false, $options = array() ) The options array supports php 'pdf_lock_image' =>'/
my/image/path/relative/to/wordpress/route' and php 'pdf_image' => '/my/image/path/
relative/to/wordpress/route' to overwrite which icon should be used.

## Àwọn àgbéyẹ̀wò

![](https://secure.gravatar.com/avatar/dc8c396abd988c10c22a9a639f3dfe8b385f9b065df4f2ea0b65e6314e9697a6?
s=60&d=retro&r=g)

### 󠀁[Simply Brilliant!](https://wordpress.org/support/topic/simply-brilliant-98/)󠁿

 [teelanovela](https://profiles.wordpress.org/teelanovela/) Èbìbí 11, 2023

Looks like the plugin isnÌtumọ̀ Yorùbá: ’t under active development for the time
being, but I just wanted to express my gratitude for the fact that it exists in 
its current form. I was just about to program something from scratch when I came
upon this. I love the simplicity of this plugin. No unnecessary API calls. No convoluted
programming. Just pure and simple HTML > PDF. Easy to build upon and extend. 10/
10 would mpdf again!

![](https://secure.gravatar.com/avatar/f926d2f0e37ae5c38a0e74907f09fc55aff13baebb6079fae8d85c081523b6ef?
s=60&d=retro&r=g)

### 󠀁[Very good and flexible](https://wordpress.org/support/topic/very-good-and-flexible-6/)󠁿

 [Tibow](https://profiles.wordpress.org/pyho/) Èrèlé 1, 2023

Thanks for this plugin very functional and flexible with some coding.Best solution
found for WordPress.Please update for WP 6.1 even if it works well as it is. YouÌtumọ̀
Yorùbá: ’re plugin deserve it!

![](https://secure.gravatar.com/avatar/8c1e3399b85cf2e23581aada11d13bad8ccd45b35eacfdf7c5e7215c348807a7?
s=60&d=retro&r=g)

### 󠀁[Best PDF generator i found](https://wordpress.org/support/topic/best-pdf-generator-i-found/)󠁿

 [newslicer](https://profiles.wordpress.org/newslicer/) Igbe 21, 2022

This plugin is amazing. ItÌtumọ̀ Yorùbá: ’s lightweight and powerful at the same
time. The PDFs can be customized within the templates to any needs. After a long
search for a PDF generator i finally found this. Thank you so much for the great
work. ItÌtumọ̀ Yorùbá: ’s perfect.

![](https://secure.gravatar.com/avatar/a84e66606c5fc113f562ee893b795c30a88f634e4ff164a6f741ebd89052ca41?
s=60&d=retro&r=g)

### 󠀁[Wrong review. Sorry.](https://wordpress.org/support/topic/best-practical-page-to-pdf-plugin/)󠁿

 [alainmelsens](https://profiles.wordpress.org/alainmelsens/) Ọ̀pẹ 20, 2020

Wrong review. Sorry.

![](https://secure.gravatar.com/avatar/cab1a009651127a015a2e9ec520b6f3a71d93970e84d09b5f683e4945b5cc42c?
s=60&d=retro&r=g)

### 󠀁[Works nice](https://wordpress.org/support/topic/works-nice-70/)󠁿

 [Joko Ruwhof](https://profiles.wordpress.org/webjoko/) Ọ̀wàrà 15, 2020

Thank you for this nice working plugin. I also really like the cache and download
history functionality.

![](https://secure.gravatar.com/avatar/ea636bdec20ec5e54bb125499ada6bcbf793c264f8c51865f9fdda31b9c548a7?
s=60&d=retro&r=g)

### 󠀁[The best (and only one ?) plugin to create pdf from a post](https://wordpress.org/support/topic/the-best-and-only-one-plugin-to-create-pdf-from-a-post/)󠁿

 [](https://profiles.wordpress.org/sourcelab/) Ṣẹrẹ 16, 2020

Independent of any platform : works perfectly with wordpress 5.3.2! It is extremely
useful for a wordpress scientific publication website CSS customization is a bit
difficult but the results superb (with footnotes, references, custom post type…)

 [ Ka gbogbo àwọn àgbéyẹ̀wò 18 ](https://wordpress.org/support/plugin/wp-mpdf/reviews/)

## Àwọn Olùkópa & Olùgbéejáde

“wp-mpdf” jẹ́ ètò ìṣàmúlò orísun ṣíṣí sílẹ̀. Àwọn ènìyàn wọ̀nyí ti ṣe ìkópa sí plugin
yìí.

Àwọn Olùkópa

 *   [ fkrauthan ](https://profiles.wordpress.org/fkrauthan/)

[Túmọ̀ “wp-mpdf” sí èdè rẹ.](https://translate.wordpress.org/projects/wp-plugins/wp-mpdf)

### Ṣe o nífẹ̀ẹ́ sí ìdàgbàsókè?

[Ṣàwárí koodu](https://plugins.trac.wordpress.org/browser/wp-mpdf/), ṣàyẹ̀wò [ibi ìpamọ́ SVN](https://plugins.svn.wordpress.org/wp-mpdf/),
tàbí ṣe àgbékalẹ̀ sí [àkọsílẹ̀ ìdàgbàsókè](https://plugins.trac.wordpress.org/log/wp-mpdf/)
nípasẹ̀ [RSS](https://plugins.trac.wordpress.org/log/wp-mpdf/?limit=100&mode=stop_on_copy&format=rss).

## Àkọsílẹ̀ àwọn àyípadà

#### 3.9.2

 * Added input sanitation for the mpdfbutton shortcode (thanks to Muhammad Yudha
   Ìtumọ̀ Yorùbá: – DJ for reporting)
 * Updated mpdf version to 8.2.6

#### 3.9.1

 * Updated mpdf version to 8.2.5

#### 3.9

 * Added `mpdfbutton` shortcode to print the PDF button
 * Fixed a php warning

#### 3.8.3

 * Fixed deployment of 3.8.2

#### 3.8.2

 * Downgraded psr/log to hopefully fix some runtime errors

#### 3.8.1

 * Fixed deployment of 3.8

#### 3.8

 * Updated mpdf version
 * Removed a file from geshi that could be abused

#### 3.7.1

 * Added missing files to plugin

#### 3.7

 * Updated mpdf to version 8
 * Added mpdf_adjust_settings filter to allow overwriting any mpdf settings

#### 3.6.1

 * Fixed release tag to prevent install issues

#### 3.6

 * Removed manual cron job and used wp-cron instead for cache population (as per
   wordpress guidelines)
 * Removed PHP 4 support (donÌtumọ̀ Yorùbá: ’t think anyone is running that anymore)

#### Earlier versions

For the changelog of earlier versions, please refer to the separate changelog.txt
file.

## Àkójọpọ̀ Meta

 *  Ẹ̀yà **3.9.2**
 *  Ìgbàgbọ́hùn tó kẹ́yìn **oṣù 10 sẹ́yìn**
 *  Àwọn ìgbéwọlẹ̀ tó ṣiṣẹ́ **1,000+**
 *  Ẹ̀yà WordPress ** 4.0 tàbí ju bẹ́ẹ̀ lọ **
 *  Dánwò dé **6.8.5**
 *  Èdè
 * [English (US)](https://wordpress.org/plugins/wp-mpdf/)
 * Àwọn àmì
 * [mpdf](https://yor.wordpress.org/plugins/tags/mpdf/)[pdf](https://yor.wordpress.org/plugins/tags/pdf/)
   [print](https://yor.wordpress.org/plugins/tags/print/)[printer](https://yor.wordpress.org/plugins/tags/printer/)
 *  [Ìwòye Tó Péye](https://yor.wordpress.org/plugins/wp-mpdf/advanced/)

## Àwọn ìbò

 4.8 lára àwọn ìràwọ̀ 5.

 *  [  17 5-star reviews     ](https://wordpress.org/support/plugin/wp-mpdf/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/wp-mpdf/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/wp-mpdf/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/wp-mpdf/reviews/?filter=2)
 *  [  1 1-star review     ](https://wordpress.org/support/plugin/wp-mpdf/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/wp-mpdf/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/wp-mpdf/reviews/)

## Àwọn Olùkópa

 *   [ fkrauthan ](https://profiles.wordpress.org/fkrauthan/)

## Ìrànlọ́wọ́

Nǹkan wà tí o fẹ́ sọ? Ṣé o nílò ìrànlọ́wọ́?

 [Wo àpéjọ ìrànlọ́wọ́](https://wordpress.org/support/plugin/wp-mpdf/)

## Ṣe ìtọrẹ

Ṣé o fẹ́ ṣe àtìlẹ́yìn fún ìlọsíwájú plugin yìí?

 [ Ṣe ìtọrẹ sí plugin yìí ](https://fkrauthan.ca)