Articles of pdf

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 user clicks on a link in a certain page the current page should be saved as a […]

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.*$ [NC] RewriteRule . – [R=403,L] But I want to restrict access only documents .pdf with name starts with “private_”. Example: private_document1.pdf and private_document2.pdf only have to be accessible […]

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 post or any interaction with the site as it is, I just want to upload a .pdf to my domain and have a url […]

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 ( $file) { foreach ( $file as $attachment_id ) { $full_size = wp_get_attachment_url( $attachment_id ); printf( ‘%s’, $full_size); } } How would I fit the above […]

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 files. So I guess I need: Front-end uploader Backend-uploader Custom-post type? Security to check the PDF files and […]

Warning : tempnam() : 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 is 10210 is not allowed to access /tmp owned by uid 0 in /var/www/vhosts/www.mysite.com/httpdocs/wp-content/themes/mysite/dompdf/include/image_cache.cls.php on line 105 Warning: file_put_contents() [function.file-put-contents]: Filename cannot be empty […]

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?

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 installation to my production server, and I click on one of these links to view a pdf, I get WordPress’s default 404 page. The path to the file […]

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 of a post or page). The purpose of the link is to enable the website visitors to download […]

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 those files ( my site will be super slow ) ? or the pdf file will […]