• Resolved thePixelPixie

    (@yourbusybee)


    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

    (@fkrauthan)

    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

    (@yourbusybee)

    I’m sorry…*where* do I paste in the URLs that I want to use? That’s where I’m confused.

    Plugin Author fkrauthan

    (@fkrauthan)

    If you take a look at https://www.ads-software.com/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.