Title: Replace PDF link image?
Last modified: October 4, 2016

---

# Replace PDF link image?

 *  Resolved [thePixelPixie](https://wordpress.org/support/users/yourbusybee/)
 * (@yourbusybee)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/replace-pdf-link-image/)
 * First off, THANK YOU THANK YOU!!! Your plugin is exactly what I was looking for,
   allowing me to create a custom PDF template for my custom post type using Advanced
   Custom Fields. You rock!
 * So, the only issue I’m having is figuring out how to replace the default PDF 
   image link. What am I missing here? I see “The mpdf_pdfbutton function signature”
   in the Installation instructions, and below that “The options array supports ‘
   pdf_lock_image’ => ‘/my/image/path/relative/to/wordpress/route’ and ‘pdf_image’
   => ‘/my/image/path/relative/to/wordpress/route’ to overwrite which icon should
   be used.”, but I just don’t understand what I’m supposed to do here.
 * Thanks in advance for the assistance.
 * ~Laura

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [fkrauthan](https://wordpress.org/support/users/fkrauthan/)
 * (@fkrauthan)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/replace-pdf-link-image/#post-8252087)
 * Hi Laura,
 * You just paste in the urls to the images you want to use. The pdf_lock_image 
   is the PDF icon that is displayed when the pdf export for that article requires
   an authenticated user and the user is not authenticated. pdf_image is the image
   that is displayed as the regular pdf download link.
 *  Thread Starter [thePixelPixie](https://wordpress.org/support/users/yourbusybee/)
 * (@yourbusybee)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/replace-pdf-link-image/#post-8256263)
 * I’m sorry…*where* do I paste in the URLs that I want to use? That’s where I’m
   confused.
 *  Plugin Author [fkrauthan](https://wordpress.org/support/users/fkrauthan/)
 * (@fkrauthan)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/replace-pdf-link-image/#post-8397394)
 * If you take a look at [https://wordpress.org/plugins/wp-mpdf/installation/](https://wordpress.org/plugins/wp-mpdf/installation/)
   it explains it at the bottom. You have somewhere in your template the following
   code:
 * `<?php if(function_exists('mpdf_pdfbutton')) mpdf_pdfbutton(); ?>`
 * If you now wanna change the images you need to do something like this:
 * `<?php if(function_exists('mpdf_pdfbutton')) mpdf_pdfbutton(false, '', 'Login!',
   true, false, array('pdf_image' => 'YOUR PDF IMAGE PATH')); ?>`

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Replace PDF link image?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-mpdf.svg)
 * [wp-mpdf](https://wordpress.org/plugins/wp-mpdf/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-mpdf/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-mpdf/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-mpdf/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-mpdf/reviews/)

## Tags

 * [image](https://wordpress.org/support/topic-tag/image/)
 * [link](https://wordpress.org/support/topic-tag/link/)
 * [pdf](https://wordpress.org/support/topic-tag/pdf/)

 * 3 replies
 * 2 participants
 * Last reply from: [fkrauthan](https://wordpress.org/support/users/fkrauthan/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/replace-pdf-link-image/#post-8397394)
 * Status: resolved