Unnecessary printing not only means unnecessary cost of paper and inks, but also avoidable environmental impact on producing and shipping these supplies. Reducing printing can make a small but a significant impact. Take action to help reduce paper waste – make your blog “unprintable”.
“Unprintable Blog” inserts code in every page that prevents that page from being printed out via the browsers print function. Instead only blank pages are printed, optionally containing a note to not print the page but to use the pdf download instead in order to save the environment. As alternative to printing, WordPress posts can be downloaded as automatically generated (unprintable) pdf files with optional syntax highlighting.
The plugin is based on the wp-mpdf plugin by Florian Krauthan. It uses the PHP libs Geshi and Mpdf and parts from the WordPress plugins wp_syntax and contuttoPDF.
“Unprintable Blog” 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.
“Unprintable Blog” 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 “Unprintable Blog”. If not, see http://www.gnu.org/licenses/.
- Upload the whole plugin folder to your /wp-content/plugins/ folder.
- Set write permission (777) to the plugin dir folders => unprintable-blog/cache AND unprintable-blog/mdpf/graph_cache
- Go to the plugins page and activate the plugin.
- Add to your template “<?php if(function_exists(‘gcp_pdf_pdfbutton’)) gcp_pdf_pdfbutton(); ?>” as a small button or “<?php if(function_exists(‘gcp_pdf_pdfbutton’)) gcp_pdf_pdfbutton(‘my link’, ‘my login text’); ?>” 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)
Contributors & Developers
“Unprintable Blog” is open source software. The following people have contributed to this plugin.Contributors
- Initial release