Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
8 views

PDF Viewer Origin is Different

PDFf POSTER or any other pdf viewer plugin is showing an error saying that the origin is different but the pdf files are hosted on the site itself. ERROR PAGE LINK
0
votes
1answer
18 views

Open Custom Post Type as PDF

I have a custom post type set up using CMB2. I have overriden the standard print template, so when a user wants to print the page it takes the CMB2 fields and organizes them into a specific layout ...
0
votes
0answers
16 views

How to link my plug-in to form parsing PDF plug-in?

I've developed a plug-in with specific (I'm mean non WordPress native) permission system, specific tables, specific tab system (each tab actually has a distinct form given that each has like hundreds ...
0
votes
0answers
15 views

Customized PDF Gift Cards in WooCommerce

I would like to offer gift cards in my WooCommerce shop. Ideally it should look like Amazon: Demo: Amazon Gift Voucher The user should have the possibility to choose a design and adjust it with ...
1
vote
2answers
138 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 ...
0
votes
1answer
100 views

How to upload PDF from Front-End and post automatically?

I have a medical client and they want to upload and post pdf automatically. So I stumbled upon frontend uploader, which allows users to upload and post an image to a blog post. It does however post ...
1
vote
1answer
97 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 ...
0
votes
0answers
266 views

Fatal error: Uncaught Exception: FPDF error: Some data has already been output, can't send PDF file it shows from my xampp server

I have tried to generate pdf through my wordpress plugin in accordance with fpdf library. I also use another library but the same error message ! require_once (plugin_dir_path(__FILE__) . '/fpdf.php')...
0
votes
1answer
259 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
1answer
55 views

How to create multiple pages for PDFs

In my wordpress site, I have multiple PDFs that I need to display in individual pages. I could just create a page for each PDF, but this seems very tedious. The pages will each be very similar, they ...
0
votes
1answer
93 views

How do i create a search option for pdf's only

I need help with a search page. We are a circuit court and use the latest version of WordPress for our website (flcourts18.org). We want the public to be able to search our administrative orders, ...
0
votes
0answers
932 views

Some data has already been output, can't send PDF file - fpdf issue in Wordpress

I encountered a problem with FPDF in wordpress. Actually, I am developing a wordpress plugin where need to generate pdf. As a php application its working fine. But when I converted it to wordpress ...
1
vote
1answer
184 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
2answers
26 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
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
546 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 ...
2
votes
1answer
560 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 ...
1
vote
2answers
635 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 ...
0
votes
1answer
289 views

How to change link of an uploaded file to the media library

My client wants a PDF to be linked from a page with a different link structure. Currently I have it set up so the path to the document is this site.com/wp-content/uploads/date/PDF.pdf What they ...
1
vote
1answer
98 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 ...
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 ...
1
vote
0answers
47 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 ...
0
votes
2answers
807 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
73 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
617 views

Post Title to link to a PDF

I want to link a Post Title to the PDF. I feel my solution is somewhere in wp_get_attachment_url() but I can't figure out how. Also, I'd like my pdf to be located in ../wp-content/uploads/year/month/...
0
votes
2answers
32 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 ...
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 = ...
2
votes
1answer
127 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 ...
0
votes
1answer
434 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
84 views

Password protected uploaded PDF page

I created a custom post-type called "designs" for this case. So I want the client to go to his backend and click "Create new Design", this will open up the create page screen, now I want my client to ...
1
vote
0answers
434 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
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....
0
votes
1answer
854 views

Create Custom Post Type PDF File (Like Media) Then Add Searchable Custom Fields

I want to create a simple website that stores PDF for search. The PDFs do not need to be searchable themselves (I mean, that would work, but there are only three items on each file so using custom ...
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
179 views

Build custom pdf from users choices

I would appreciate a bit of guidance on how we can achieve the following functionality on our Wordpress site: Users click a selection of topics on a checkbox list A custom pdf is created for them ...
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 ...
1
vote
0answers
142 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?
0
votes
1answer
256 views

Extensive search filtering and results->PDF in the front-end

Is it possible to implement the following, and if so, what is the best (or one of) the ways to do so: The setup: A custom post type 'listing' Custom taxonomies: 'artist', 'price', 'location', 'year',...
-1
votes
1answer
516 views

Open all PDF or docx link as iframe

I have posts in my WordPress as a link for pdf like this:- To show Doc place click here :- http://domain.com/2012-04/item-1335086631.pdf I need to convert this link to embed to show file in my site. ...
2
votes
1answer
856 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
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
0answers
514 views

How to embed PDF files inside content without media_send_to_editor?

Goodafternoon, I use the following code to add an iframe around the PDF files that are added to a post in WordPress. The only problem with this feature is that the iframe will be also visible in the ...
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
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
0answers
1k views

Create thumbnail on PDF upload with Gravity Forms

I'm working with some great code that was provided recently to create an image thumbnail from a PDF upload, and I'm now trying to implement this in the functions file so that it can be applied to any ...
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
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 ...
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. ...
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 ...
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 ...