Questions tagged [pdf]

The Portable Document Format (PDF) is a file format used to present documents in a manner independent of application software, hardware, and operating systems.

Filter by
Sorted by
Tagged with
20
votes
7answers
28k views

How do I export my WordPress blog as a book? [closed]

I want to export some or all of the posts of a blog into a format that makes sense to a publisher (traditional or self-publisher(e.g.: Lulu.com)) (MS Word, RTF, PDF, epub, something else). What tools ...
4
votes
1answer
10k views

How to create thumbnails for PDF uploads?

I'm developing a website that needs to allow users, within Gravity Forms, to submit a PDF file and have a JPG thumbnail created of the first page of the PDF that is then displayed in the created post. ...
4
votes
1answer
3k views

Is it possible to create an “export to PDF” option?

I have a custom post-type "model", and I want to be able to export certain values (eg Name, Height, Shoe Size, etc) and a set number of images from the gallery, from each Model to a PDF. Ultimately, ...
4
votes
2answers
19k views

Convert Wordpress pages to PDF

Just like I customize the CSS print for a page, I want to be able to convert the page to PDF. Many plugins I tried just display main content of the page or post without design; just plain text. I ...
3
votes
2answers
13k views

Attach pdf file to custom post type

I am trying to attach a pdf file to a custom post type. I have found this snippet at wpsnipp.com. The code does the trick, but only for posts. I have a custom post type named 'events' and I can't ...
3
votes
3answers
3k views

Where do the favicons for Media Files come from

I have uploaded some PDFs to the Media Library. I cannot find a way to set the browser favicon for the PDF media files. Where does WordPress get the favicon from? Is there anyway to control the PDF ...
2
votes
1answer
624 views

Is There A WordPress Plugin That Produces PDFs of Posts Locally?

Most of the WordPress PDF plugins out there use services like Joliprint and Print Friendly to convert posts to PDFs. Is there a plugin that does this locally utilizing the power of PHP (and/or ...
2
votes
2answers
4k views

Export a blog(not mine) as a PDF document

Is it possible to export the posts of a blog as a PDF? There is a blog with a couple of hundred posts that I'd like to read on my ereader, so I was wondering whether I could extract those posts into ...
2
votes
1answer
667 views

PDF Image in content

Since 4.7, Wordpress generates images representing the first page of any PDF that is uploaded. https://make.wordpress.org/core/2016/11/15/enhanced-pdf-support-4-7/ This is useful when choosng what to ...
2
votes
1answer
130 views

Restrict PDF links

How can I restrict only the PDF files that I uploaded through FTP, I copied the link of each PDF file and created buttons in WooCommerce, I can Restrict the Page/Post but not the PDF. I want users to ...
2
votes
1answer
878 views

how do i embed the pdf gallery in wordpress post

I want to show the epaper of newspaper. Is there a way that i can embed a gallery of pdf in post just like the gallery of images
1
vote
2answers
2k views

Force PDF download from custom menu?

I added a link to a PDF in my custom navigation menu. Is there a way to force it to download instead of open?
1
vote
1answer
291 views

How does the media library determine if a PDF file has preview images?

When PDF preview images are available, how does the Media Library determine that it needs to display them? Does it check for a '_wp_attachment_metadata' record in the postmeta table? And where in ...
1
vote
1answer
4k views

Attaching a pdf to Contact Form 7 e-mail via functions.php [closed]

I'm trying to attach pdf files to an e-mail manually and I did some research on the topic and found this code: add_action('wpcf7_before_send_mail','send_pdf'); function send_pdf( $cf7 ) { $id = ...
1
vote
1answer
3k views

List and show uploaded pdf files dynamically

I want to show all the PDFs for a specific WordPress page. I exactly want that the PDF documents will upload from the admin panel and I want to show all the PDFs in a page in the front-end dynamically....
1
vote
1answer
1k views

Make page tab link to pdf

I'm sure this is ridiculously simple, and I'm just missing something very basic. I have a CV as a pdf. I'd like to have the tab that says CV open up that CV as a pdf. I do not want to embed it as a ...
1
vote
1answer
122 views

How do you use WP slugs for PDF files / media?

I have hundreds of PDFs that are linked throughout my site, and these PDFs all have a unique document number and revisions. e.g. 902367 version I What I would like to do is have a defined slug for ...
1
vote
2answers
1k views

pdf (25MB) - how to display and enable download?

I have tried to upload it simply through the media library ,but it didnt display correctly (very low resolution) and some users couldnt even see it (just an empty space) ,so I used an iframe tag in a ...
1
vote
1answer
1k views

Displaying BLOB PDF File

I have some pdf files that are stored in the wordpress database as a blob and I need to display these files. The files are not linked to any posts directly. The code I have currently is: <div ...
1
vote
2answers
266 views

PDF file upload issue

I am using a plugin custom contact form where i have kept a file upload field at the front end. But when i try to upload a pdf file then neither tmp_name nor type property of $_FILES is being set. ...
1
vote
2answers
191 views

How to do string attachment with wp_mail

I'm using a gift card plugin for my woocommerce shop and I would like to add a generated pdf file to allow customers to download the gift card as a pdf. The idea is to use TCpdf or Fpdf to generate ...
1
vote
1answer
135 views

SSL certificate verify failed

I have a gift voucher plugin for wordpress that creates a PDF after a user has finished filling in a form and sends it to the users email. This plugin uses the fpdf library to create the pdf. It ...
1
vote
2answers
28 views

Client PDF Upload (Catalogue) - Automatically update link to PDF

I've built a custom WP theme. In the footer is a button to "download catalogue". The catalogue is a PDF created by the client which is periodically updated. I'm looking for some pointers on a good ...
1
vote
2answers
671 views

Password Protecting Media

Is it possible to password protect a PDF for visitors to our website (not users)? We have uploaded a PDF to our media and created a link to it on a page, but we would like to password protect just ...
1
vote
0answers
49 views

Find file url in post content and add it to media library

I'm using the Postie plugin to receive an email to create a post. In that email there will be link(s) to a pdf. I'm using wp_extract_urls and code from this post to try to add the pdf to the media ...
1
vote
0answers
464 views

PhantomJS with wordpress

I know it sounds basic but I'd really appreciate some help/guidence on how to use phantomjs on my wordpress project. I'm using Windows 8.1 and local host with xampp for now. I've downloaded phantomjs ...
1
vote
0answers
148 views

WordPress Codex or equivlent for Kindle use?

Is there a mobi/epub version of the Codex that I can use with an e-reader?
1
vote
2answers
15k views

Embed interactive pdf

I have interactive pdf documents that I need to put on a wordpress site. Visitors need to be able to fill these in and print them out to sign and post. They do not need to be emailed or saved to the ...
1
vote
1answer
2k views

automatic PDF invoice with FPDF in PHP (creating Plugin)

I hope someone can help me. What I would like to achieve: I would like to create an automatic PDF invoice, as soon as an order has taken place and download it to a folder. It DOES NOT have to be ...
0
votes
2answers
1k views

Print profile details as PDF or from modal window

I have been able to use the Advance Custom Fields plugin to create more fields I need for every new user to our site. What we need though, is that once someone has registered, they still need to be ...
0
votes
2answers
1k views

Permalink for PDF of article

I'm trying to learn if this is possible, and how I might go about implementing it. Our site is a scientific journal, and our published articles follow this permalink structure: http://ehponline.org/&...
0
votes
2answers
1k views

A link (not in the post) to download a specific PDF file

I want to add a button (or rather, a link formatted to look like a button) in the utilities area somewhere above the main navigation menu of a WordPress-based business site (that is, not in the body ...
0
votes
1answer
85 views

Path in dev server works; same path in prod server is broken

on my development wordpress server (using Desktop Server's "ServerPress"), one my pages has a list of pdfs; each tag has this path: /wp-content/themes/accessgroup/docs/thePDF.pdf. When I upload my ...
0
votes
1answer
3k views

Is there a plugin for uploading files such as PDF files?

I want to put my lecturers for my students as PDF files in my wordpress, is it possible?
0
votes
2answers
1k views

Warning : tempnam() [<a href='function.tempnam'>function.tempnam</a>]: SAFE MODE Restriction in effect

When generating PDF with dompdf I am having this problem in pdf file when viewing file in notepad Warning : tempnam() [function.tempnam]: SAFE MODE Restriction in effect. The script whose uid ...
0
votes
2answers
670 views

How to build a PDF repository in WordPress

I'm seeking advice on the best way to construct a PDF repository. Basically, there will be an uploader in the administrator section and in the front end. The user should be allowed to add tags to the ...
0
votes
1answer
18 views

Create template for just a print

I have custom post which prints some content in tabbed table, where only selected tab is visible. Now, if print is selected, I would like to print contents of all the tabs. The problem is, that some ...
0
votes
1answer
387 views

Change meta data of pdf file

I've noticed recently that pdf files provided by client have got indexed with weird and random title tags when searched for in google (site:mysite.com/path-to-file.pdf). Now I've tried to change it ...
0
votes
2answers
625 views

Add Watermark to PDF's of logged in user in WordPress upon upload to media library [closed]

How can I add a watermark to my PDFs that are uploaded via the media library of the logged in WordPress User when viewing and printing the pdf. I have tried utilizing plugins but they are all limited ...
0
votes
1answer
32 views

Add pdf to a website

I'm building a website containing a lot of pdf files, i added those files with add media button when creating a page, my question is when i open that page, does it mean in my navigator that i charged ...
0
votes
2answers
958 views

How can I make an attachment page for pdf uploads?

I have an attachment page for post images, so that when I click on the thumbnail (on the front end) it takes the user to the attachment page for that image, how would I do the same for pdf files, so ...
0
votes
2answers
79 views

How do I fit a function inside an opening and closing do_shortcode

How do I fit a function inside an opening and closing shortcode. I have this function that displays the post's pdf attachment url $file= get_post_meta( $post->ID, 'teacher-resume-upload' ); if ( ...
0
votes
2answers
34 views

Using a .pdf file as a page in wordpress

I'd like to create a link on my wordpress site to a .pdf that I have already created. Ideally create mywebsite.com/filename.pdf or mywebsite.com/foldername/filename.pdf I do not need a link or a ...
0
votes
1answer
463 views

Private pdf files

I would like to give access some private pdf files to only logged in users. I have this in my htaccess: RewriteCond %{REQUEST_FILENAME} ^.*(pdf)$ RewriteCond %{HTTP_COOKIE} !^.*wordpress_logged_in.*$...
0
votes
1answer
1k views

wp_mail issue with sending PDF

I have a problem with wp_mail and sending a PDF. The code below occasionally works and when it does, you can only see the message content within the iPhone, and not Yahoo or Gmail. function ...
0
votes
1answer
1k views

TCPDF get_post_meta outside the loop

I want to be able to export a html page to PDF. I downloaded TCPDF (mainly because it allows me save High resolution images and shrinks the filesize.) The TCPDF folder is in my theme folder. If a ...
0
votes
2answers
977 views

Embed PDF into wordpress

is there's a way to show a PDF file inside Post in wordpress ? i used tag but if someone have Internet Download Manager , Dialog will appear to Download the PDF file if visitor click cancel they ...
0
votes
1answer
3k views

Upload PDF and other files from the Front-End

I am trying to create a medical website, where logged-in doctors can actually upload pdfs and other files (such as jpg) from the front-end in posts. Then, after reloading the page, the uploaded files ...
0
votes
1answer
1k views

Will wp_get_attachment_metadata display PDF metadata (eg: keyword, author, description)?

I used this technique to display attached PDF metadata on a page. It shows the title and path but not info like keyword, author, and description. Can Wordpress access all the properties uploaded with ...
0
votes
4answers
779 views

Pdf visualiser embedded into wordpress website

I would like to insert a Pdf visualizer to read my wp articles. So I can print go through pages like the one in www.scribd.com Is there any plugin for that? I tried "Google Doc Embedder" plugin but I ...