How can I change the page title of PDFs opened from a WordPress link which use the browser’s viewer?
How can I change the page title of PDFs opened from a WordPress link which use the browser’s viewer?
How can I change the page title of PDFs opened from a WordPress link which use the browser’s viewer?
Updating Media Library PDF’s in bulk
(Only on Firefox) Why links to pdfs on my website ask me whether I want to save file?
You can use the plugin vanilla-pdf-embed. If the PDF is in your WordPress media library, it will be embedded with the default settings in all the posts where it is written. If isn’t in the media library then use the [pdf]…[/pdf] shorttag: [pdf]http://domain.com/2012-04/item-1335086631.pdf[/pdf]
I used a site called blogbooker.com once to pdf my whole site….. it worked pretty well
With help from a dev at WordPress Questions I got this solved. In wp-content/plugins/cforms/cforms.php we added require_once(dirname(__FILE__) . ‘/html2pdf/html2pdf.class.php’); which loaded all the necessary data from the folder html2pdf which has all the files based on code from html2pdf.fr Further in the same file after $newcontent .= substr($content,$last); we have code to pdfy the code: … Read more
This can be a very complicated area to get involved in .. because Your users can press Ctrl P in their browser and many have Send To PDF already. And this is better than many PDF plugins as the user is ‘printing to PDF’ the screen they are looking at PDF plugins can require a … Read more
TCPDF and permalinks
Seems as though I was attempting to perform this PDF creation too late in the lifecycle of the page. After adding this snippet to an action binding to init, it works perfectly.
get_bloginfo(‘template_directory’) returns a URI and I believe glob works with paths so try: $dir = get_theme_root() . “/documents/*”; foreach(glob($dir) as $file) { echo $file; }