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
0
votes
0answers
13 views

ACF Flexible in TCPDF

So, i need to display Flexible content in TCPDF, i have my Flexible content fields: if( have_rows('levels') ): while ( have_rows('levels') ) : the_row(); if( get_row_layout() == '...
0
votes
0answers
18 views

Display the full content of a post in the search result page

For my website, I want the users to search for their pdf reports (using their report ID, which will be the same as the name of the file), i.e., the user has to enter the exact report ID to get their ...
0
votes
0answers
16 views

How to display the full content of a post in the search result page?

For my website, I want the users to search for their pdf reports (using their report ID, which will be the same as the name of the file), i.e., the user has to enter the exact report ID to get their ...
0
votes
0answers
18 views

Generate pdf from woocommerce order

I would like to make a simple shop where client orders a product with some variations. From this variations (or any other custom field) I Would like to generate a pdf document which would be sent not ...
1
vote
2answers
109 views

Force documents to appear in Featured Image dialogue

Having a perplexing issue... ...for a custom post-type called 'Resources' I used the 'Featured Image' or 'thumbnail' function within WordPress to allow users to attach documents to 'Resources'. The ...
0
votes
0answers
30 views

Oembed support for private Google Drive previews

I have a wordpress intranet for my company where I want to insert previews (i.e. iframes) of some of the company's private PDF files that are stored in Google Drive. So I don't want those files to be ...
0
votes
0answers
17 views

Where are uploaded PDF files stored?

Recently, the website of the company I work for moved to a new site so the same domain name now points to a new site made with webflow. We've lost access to the old wordpress site via the web address ...
0
votes
0answers
18 views

(Only on Firefox) Why links to pdfs on my website ask me whether I want to save file?

The two pages of my website can be found here: https://www.lightfigures.com/metaphysical-diaries/ https://www.lightfigures.com/spiritual-diaries/ For some reason, and only on Mozilla Firefox (not ...
0
votes
0answers
51 views

Using FPDF/FPDI within aplugin function

Does anybody have any experience using FPDF/FPDI with a wordpress plugin/function. I am hoping someone might be aware of some tutorials available to help me get my head around it. A quick Google ...
0
votes
0answers
10 views

Bulk import of PDF documents to posts

Converting a clients site from static HTML to Wordpress. They have hundreds of PDF files. I would like to automatically import them as posts. I found the PDF2Post plugin, which obviously sounds ideal,...
0
votes
0answers
18 views

generate PDF from member information

I'm building a website with membership and I would like to generate a pdf using user information such as name and email and to make it downloadable in his member space. I've seen that there are some ...
0
votes
1answer
27 views

Attach and retrive multiple pdf files to post or page

I need to create two sections that will respectively contains only some pdf to downloads. I've never used pdf inside a wordpress websites, my question is how I can display them or in any case had a ...
1
vote
0answers
15 views

How to display PDF in a new tab instead of downloading? [closed]

I'd like to open some external PDF files in a new tab instead of downloading them. Here you can see the problem : https://quantum-genomics.com/en/investors/annual-information/ Thx for your help ;)
0
votes
0answers
55 views

Generate PDF form on click a button

I developed a WordPress website that has a game developed by unity, and once the player finished the game he got a result button once he clicked the button I need some API to create a database record ...
0
votes
0answers
18 views

Searching content in a PDF file

I would like to add the ability to search the content in pdf files by site visitors. I would like to make it easier for visitors to search so that they don't have to use the CTRL + F keyboard shortcut....
1
vote
1answer
18 views

Is It Possible to Upload Certain Attachment Files To A Remote Server

My Situation I'm developing a book-store WordPress website where you can purchase and download books in PDF format. I don't want to use the local space for file storage (the host provider offers ...
0
votes
0answers
23 views

Wordpress5.2.3: Better File Download Plugin validation issue

I am using Better File Download plugin for uploading a PDF file from the Admin panel. The issue is it allows all file type which listed in wp_get_mime_types() function. I want to give a validation ...
0
votes
1answer
90 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
102 views

TCPDF only exports .pdf when user is administrator

Context I use TCPDF for PDF generation hooked to admin-post. The admin-post-action handling function retrieves an object from database according to query parameters, requires a template.php and ...
0
votes
0answers
123 views

Why embedded PDF documents sometimes failed to load on my website

My WordPress site Reload on every hour, and sometimes some of the PDF documents (random) don't load. All embedded PDF's are only one sided. Why is this happening? UPDATE: This happen only on Chrome ...
0
votes
0answers
12 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
215 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 ...
1
vote
2answers
532 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
302 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
297 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
1answer
721 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
104 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
367 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
2k 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
503 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
32 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 ...
2
votes
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
979 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
797 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
745 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
443 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
185 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
38 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
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 ...
0
votes
2answers
1k 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
107 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
3answers
1k 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
46 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
5k 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
203 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
685 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
106 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
538 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
1k 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 ...