• Resolved amamule

    (@amamule)


    Hello dinamiko,

    Just a small question and I know its on my end with some of the security plugins I use and caching being used. In the pdf some pictures display but most of them don’t. My question is if you see an easy fix to display all or maybe a way to force display none. I know the /wp-content/upload/ in my case is replaced with /file/ so maybe a fix in the index.php but I am no php expert of any kind mostly ruby, coffee script and python. Thanks for the help dinamiko.

    amarulebook

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author dinamiko

    (@dinamiko)

    Hi amamule,

    I did a quick test adding two of your images to the plugin demo and the pdf generation is ok, so there is no problem with the images (file corrupted, special characters in file name…)

    try to hide these image in the PDF using this shortcode:
    http://wp.dinamiko.com/demos/dkpdf/doc/dkpdf-remove-shortcode/

    try it and tell me,

    Best.

    Thread Starter amamule

    (@amamule)

    I tried your suggestion [dkpdf-remove] but I do use a shortcode for the images that make them display like a carousel when clicked. If you go back to that link you’ll see it breaks the image shortcode but does remove them from the pdf. Any ideas would be helpful but I am guessing do away with the image shortcode and display the images in more plain html. Thanks again Emili

    Plugin Author dinamiko

    (@dinamiko)

    Hi amamule,

    maybe doing a template customization will help you:
    http://wp.dinamiko.com/demos/dkpdf/doc/how-to-use-dk-pdf-templates-in-your-theme/

    once you have the template copied in your theme you can get whatever data from WordPress database in the template, like you do in theme templates.
    I created a tutorial for encouraging users with little level of PHP and WordPress being able to do it:
    http://www.dinamiko.com/dk-pdf-template-customization-woocommerce-tutorial/

    Thanks

    Thread Starter amamule

    (@amamule)

    Found a band-aid fix since I am horrible at php. Since there are not many pics on the website I changed the /wp-content/upload/ to /file/ in the pictures src and now they show up in the pdfs but some have huge one/two page gaps but that I believe is sizing on my side which I will fix later. My only suggestion is the conflict I had using [dkpdf-remove] to hide my image shortcode ended up breaking it. Thanks again Emili!

    P.S. I bought your DK PDF Generator plugin to use in the future and to show my support to a helpful plugin author which is hard to find WP world.

    Plugin Author dinamiko

    (@dinamiko)

    Hi amamule,

    thank you very much, I really appreciate it 🙂

    about [dkpdf-remove] may only works for normal content not for shortcodes,
    maybe you can try to remove shortcodes, follow this documentation:
    http://wp.dinamiko.com/demos/dkpdf/doc/remove-shortcodes-in-pdf/
    you can add these code in your theme functions.php

    Thanks

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

The topic ‘picture problem’ is closed to new replies.