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
1answer
14 views

how to embed another site's pdf file in wordpress without downloading it?

I would like to embed another website's pdf in my Wordpress but without downloading that file, is that possible?
0
votes
1answer
46 views

Call to undefined function wp_generate_attachment_metadata()

In content-attachment.php I have: /* preview for PDFs*/ if ('' === $ai) { wp_generate_attachment_metadata( $the_ID, wp_upload_dir() ); } And it throws this error: Fatal error: Call to undefined ...
0
votes
0answers
15 views

open menu link (PDF) in new tab not download

I have a specific requirements where the menu item has link to the PDF. My needs are to open the PDF on the click of the menu item in new window. I have checked the option of open link in new tab in ...
0
votes
0answers
9 views

All posts in TCPDF

I need use TCPDF for my site and then get all posts with images, content, titles in PDF document, i have code: function output_pdf() { $posts = get_posts( 'posts_per_page=-1' ); ...
0
votes
0answers
7 views

Using PDF's Title as the Title in the Wordpress Media Library

I have a folder of PDFs created in Adobe Acrobat. Each of those has a title set in the document's properties. Most importantly is the title, which needs to go the Title Field when I upload to the ...
0
votes
0answers
7 views

Thrive Apprentice and certificate generation

Im working on a website with wordpress and im trying to make a course in Thrive Themes that after completion sends an email to the user with an automatically generated pdf certificate that proves they ...
1
vote
0answers
37 views

Building Wordpress Plugin Using FPDF - How do you get post content from currently viewed post?

I am using FPDF to build a plugin in wordpress that will add a button on each post(documentation) that gives the user the ability to export it as a styled pdf from the post without having to maintain ...
0
votes
0answers
37 views

Add PDF to ACF image field from file url

I am basically looping some fields from a gravity form entries. I using this function below to pass a file url into $filename and convert the file into a media library item, and then attaching that ...
0
votes
2answers
1k views

Embed PDF into wordpress

Is there a way to show a PDF file inside Post in Wordpress? I used the tag but if someone has Internet Download Manager the Dialog will appear to Download the PDF file and then if they click cancel ...
1
vote
2answers
591 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
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
0answers
20 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
22 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
115 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
52 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
24 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
76 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
11 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,...
5
votes
4answers
5k 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 ...
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
21 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
28 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
17 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
72 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
19 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
22 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
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 ...
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
2answers
691 views

How can I allow users (subscribers) to download selected posts into a single PDF? (RESOLVED)

I currently have a members area for subscribers. I have already setup the ability for users to 'favourite' posts and add them to custom folders of their choice. Once they have added some posts to a ...
0
votes
1answer
110 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
115 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
143 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
1answer
294 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
277 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. ...
0
votes
0answers
13 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
336 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
316 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
772 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
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
107 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
2answers
2k 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
1answer
405 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, ...
1
vote
1answer
545 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
33 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 ...
3
votes
2answers
15k 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 ...
0
votes
2answers
1k 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 ...