Linux 软件免费装

wp-mpdf

开发者 fkrauthan
更新时间 2024年5月26日 06:53
捐献地址: 去捐款
PHP版本: 2.9 及以上
WordPress版本: 6.5.3

标签

pdf print printer mpdf wp-mpdf

下载

1.6 2.3.8 2.4 3.7 3.8.1 3.8.2 3.8.3 3.9 1.0 1.1 1.2 1.3 1.4 1.5 1.7 1.8 1.9 3.7.1 3.8 2.3.1 2.0 2.0.1 2.0.2 2.1 2.1.1 2.10.0 2.11.0 2.2 2.3 2.3.2 2.3.3 2.3.4 2.3.5 2.3.6 2.3.7 2.4.1 2.4.2 2.4.4 2.4.5 2.5 2.7 2.8 2.9 2.9.1 2.9.2 2.9.3 3.0 3.0.1 3.1 3.1.1 3.1.2 3.1.3 3.2 3.2.1 3.2.2 3.3 3.5 3.5.1 2.4.3 2.9.4 3.4 3.5.2 3.6 1.9.1 3.6.1 2.6

详情介绍:

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

安装:

  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'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.

更新日志:

3.9 3.8.3 3.8.2 3.8.1 3.8 3.7.1 3.7 3.6.1 3.6 3.5.2 3.5.1 3.5 3.4 3.3 Earlier versions For the changelog of earlier versions, please refer to the separate changelog.txt file.