{"id":19706945,"url":"https://github.com/fkrauthan/wp-mpdf","last_synced_at":"2025-04-29T16:33:43.856Z","repository":{"id":3884797,"uuid":"4971796","full_name":"fkrauthan/wp-mpdf","owner":"fkrauthan","description":"Print WordPress posts as PDF. Optional with Geshi highlighting.","archived":false,"fork":false,"pushed_at":"2024-05-25T22:45:27.000Z","size":40368,"stargazers_count":56,"open_issues_count":0,"forks_count":22,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-05T18:12:26.241Z","etag":null,"topics":["mpdf","pdf-support","php","wordpress-plugin","wp-mpdf"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fkrauthan.png","metadata":{"files":{"readme":"readme.md","changelog":"changelog.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2012-07-10T09:27:25.000Z","updated_at":"2024-10-09T18:58:25.000Z","dependencies_parsed_at":"2024-02-05T22:51:13.769Z","dependency_job_id":null,"html_url":"https://github.com/fkrauthan/wp-mpdf","commit_stats":null,"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fkrauthan%2Fwp-mpdf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fkrauthan%2Fwp-mpdf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fkrauthan%2Fwp-mpdf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fkrauthan%2Fwp-mpdf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fkrauthan","download_url":"https://codeload.github.com/fkrauthan/wp-mpdf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251540562,"owners_count":21605930,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mpdf","pdf-support","php","wordpress-plugin","wp-mpdf"],"created_at":"2024-11-11T21:37:31.341Z","updated_at":"2025-04-29T16:33:38.838Z","avatar_url":"https://github.com/fkrauthan.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wp-mpdf #\n\n**Contributors:** fkrauthan  \n**Donate link:** [fkrauthan.ca](https://fkrauthan.ca)  \n**Wordpress plugin page:** [wordpress.org/plugins/wp-mpdf/](https://wordpress.org/plugins/wp-mpdf/)  \n**Tags:** print, printer, wp-mpdf, pdf, mpdf  \n**Requires at least:** 2.9  \n**Tested up to:** 6.5.3\n**Stable tag:** 3.9\n\nPrint Wordpress posts as PDF. Optional with Geshi highlighting.\n\n## Description ##\n\nPrint 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.  \n\n\n## Changelog ##\n\n### 3.9 ###\n* Added `mpdfbutton` shortcode to print the PDF button\n* Fixed a php warning\n\n### 3.8.3 ###\n* Fixed deployment of `3.8.2`\n\n### 3.8.2 ###\n* Downgraded psr/log to hopefully fix some runtime errors\n\n### 3.8.1 ###\n* Fixed deployment of `3.8`\n\n### 3.8 ###\n* Updated mpdf version\n* Removed a file from geshi that could be abused\n\n### 3.7.1 ###\n* Added missing files to plugin\n\n### 3.7 ###\n* Updated mpdf to version 8\n* Added `mpdf_adjust_settings` filter to allow overwriting any mpdf settings\n\n### 3.6.1 ###\n* Fixed release tag to prevent install issues\n\n### 3.6 ###\n* Removed manual cron job and used wp-cron instead for cache population (as per wordpress guidelines)\n* Removed PHP 4 support (don't think anyone is running that anymore)\n\n### 3.5.2 ###\n* Added some small security improvements for the admin page\n* Fixed a PHP notice when \"allow to print all pages\" is disabled (thanks to grandeljay)\n\n### 3.5.1 ###\n* Added some small security fixes to the admin page\n\n### 3.5 ###\n* Added support to change page format inside template (thanks to conlaccento)\n\n### 3.4 ###\n* Made codebase PHP 7.3 compatible (thanks to nopticon)\n* Fixed issues with newer wordpress versions (thanks to nopticon)\n\n### 3.3 ###\n* Fixed some small bugs\n* Updated mpdf to version 6\n* Updated geshi to latest version\n* Made plugin compatible with PHP 7\n\n### Earlier versions ###\n\nFor the changelog of earlier versions, please refer to the separate [changelog.md](./changelog.md) file.\n\n\n## Installation ##\n\n1. Upload the whole plugin folder to your `/wp-content/plugins/` folder.\n1. Set write permission (777) to the plugin dir folder =\u003e `/wp-content/plugins/wp-mpdf/cache`\n1. Go to the plugins page and activate the plugin.\n1. Add to your template \"`\u003c?php if(function_exists('mpdf_pdfbutton')) mpdf_pdfbutton(); ?\u003e`\" as a small button or \"`\u003c?php if(function_exists('mpdf_pdfbutton')) mpdf_pdfbutton(false, 'my link', 'my login text'); ?\u003e`\" as a textlink. The second text specifies the text which should displayed if you have checked \"needs login\" and a user isn't loggend in. (if you wish to open the pdf print in a new tab you may pass \"true\" for the first parameter)\n1. 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.\n1. Place your templates into `/wp-content/wp-mpdf-themes`\n\nThe mpdf_pdfbutton function signature: `function mpdf_pdfbutton($opennewtab=false, $buttontext = '', $logintext = 'Login!', $print_button = true, $nofollow = false, $options = array())`\n\nThe options array supports 'pdf_lock_image' =\u003e '/my/image/path/relative/to/wordpress/route' and 'pdf_image' =\u003e '/my/image/path/relative/to/wordpress/route' to overwrite which icon should be used.\n\n\n## License ##\n\nThis file is part of wp-mpdf.\n\n**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.\n\n\nwp-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.\n\nYou should have received a copy of the GNU General Public License along with wp-mpdf. If not, see [www.gnu.org/licenses/](http://www.gnu.org/licenses/).\n\n\n## Publish to wordpress ##\n\n### Setup svn ###\n\nYou need to install the subversion client on your local system\n\n### Commit changes to git ###\n\nMake sure that all your changes are committed to the repository. The deployment script will stop in case there are uncommitted changes to prevent any mistakes.\n\n\n### Publish new version ###\n\nYou just need to execute the `release.sh` script. It will take care of some basic validation, and the full publish process.\n\n\t./release.sh\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffkrauthan%2Fwp-mpdf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffkrauthan%2Fwp-mpdf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffkrauthan%2Fwp-mpdf/lists"}