WordPress.org

Ready to get started?Download WordPress

Forums

WP Post to PDF Enhanced
Content Not Appearing (10 posts)

  1. slaterino
    Member
    Posted 4 months ago #

    Hey,
    For some reason images and text are not appearing when creating PDFs. This is especially strange as the plugin was working fine on my local server and during all the testing I did but now that I have uploaded it to a remote server it is not working.

    You can see my test remote server here: http://thgcreative.co.uk/yeti/?wall=ebay-market-size

    Does anyone know why this is not working? At the moment the PDFs are appearing as blank.

    Thanks in advance!
    Russ

    https://wordpress.org/plugins/wp-post-to-pdf-enhanced/

  2. Lewis Rosenthal
    Member
    Plugin Author

    Posted 3 months ago #

    Hi, Russ...

    Well, your plain text pages render fine, judging from this post. However, your full size jpgs seem to be an issue.

    In the admin area, what is your image scaling ratio? I have a hunch that TCPDF is erring on the safe side for such large images, and just not rendering them. Perhaps reducing the scaling factor might help.

    Are you using anything which might restrict access to the uploads directory for reading? This same symptom can be observed when we can't access the image for inclusion in the PDF.

    Finally, you might want to try the latest trunk build. Be sure to read the cautions and directions here, if you'd like to give it a go. It provides much more flexibility in terms of margins and page sizes, and each of these issues plays a role in fitting a large image on the virtual page.

    Cheers

    Lewis

  3. DikkieDick
    Member
    Posted 3 months ago #

    I have the same problem as Russ. A post with a bunch of images and in the on PDF only one shows up. If I use other plugins all images show up, but then there are other strange things...

    Downloaded the development-version and still the same.

    URL: http://blog.dickpluim.com/hardlopen/een-onvergetelijke-maar-loodzware-marathon-in-jeruzalem/

    Thanx in advance.

  4. esmi
    Forum Moderator
    Posted 3 months ago #

    @DikkieDick: If you require assistance then, as per the Forum Welcome, please post your own topic.

  5. Lewis Rosenthal
    Member
    Plugin Author

    Posted 3 months ago #

    The first step in troubleshooting large (read: wide) images not being rendered is to (using the development version, at this point) try setting landscape orientation. You might also try a different theme (as a test), such as Twenty Twelve, which seems to automatically constrain larger images, even when passing them to the plugin.

    There are still some image types which we don't render. The development version has a mechanism for this, but currently only for SVG images (we swap in placeholder text). PNG and JPG should render properly, assuming we can access the image files and that the theme automatically constrains them within the content margins.

    Please try the above suggestions first, then if still not satisfied with the result, consider adjusting the image scaling ratio (which defaults to 1.75) downward in small increments (or for testing, in one large increment) to see if overall image scaling might be a better solution for your site's theme.

    If still no improvement (or if not enough), then please open a support request for a specific example page, and be sure to list the image sizes, file types, and theme being used.

    Cheers

    Lewis

  6. slaterino
    Member
    Posted 3 months ago #

    Hi Lewis,
    Thanks so much for your help last week. I have only had the chance to work on the site the last couple of days but have unfortunately been unable to find an answer.

    I continued with the official release and tried different orientations and image scale ratios but the results were the same. Then I tried the development release and again tried different orientations and image scale ratios. Unfortunately this seemed to make it worse and now no PDF is generated at all. See example: http://thgcreative.co.uk/yeti/?wall=sxsw-test.

    Do you know why this is?

    Sorry for being a pain with these problems. It's just that my local test version of WP Post to PDF works so well that I'm desperate to have it working on the main server too.

    Thanks,
    Russ

  7. Lewis Rosenthal
    Member
    Plugin Author

    Posted 3 months ago #

    So sorry for the delay in my response, Russ. Just getting back to development stuff following the close of tax season here in the States...

    Could you kindly go into the settings for the plugin, open each section, and ensure that all fields which are not checkboxes have something in them? Fill in any missing ones (and please let me know which ones were empty; what has been holding up my next release is a better upgrade procedure, adding a number of these new options), and then - even if you have not had to fill in anything, please save the settings and then try the pdf again.

    I have a sticky topic in the forum regarding steps to installing the development version. please review that, too. It appears to me that we're not handing off an essential parameter to TCPDF, which then gives up and doesn't render anything (GIGO).

    Cheers

    Lewis

  8. slaterino
    Member
    Posted 3 months ago #

    Hey Lewis,
    Thanks for the update. I've followed your instructions but unfortunately it's still not working. It'd be great to get it all sorted ASAP as I need to hand this over to my client soon and this would be a great feature to have.

    In regards to the development installations instructions, I've gone through that process again to install the development version.

    I've also tried adding a value into each of the input fields which previously contained nothing. These were:
    Include/Exclude
    Include/Exclude from Cache
    Custom CSS
    Custom Bullet Image File
    Custom Footer (Text Field)
    Footer Cell Border

    I also noticed that after uninstalling and reinstalling the Development Version the Orientation field was unselected, so that neither Portrait or Orientation were selected.

    Unfortunately I'm still getting a blank page when I try to create a PDF, as per http://thgcreative.co.uk/yeti/?wall=sxsw-test.

    Please let me know once you have some solutions.

    Thanks,
    Russ

  9. slaterino
    Member
    Posted 3 months ago #

    Hey Lewis,
    At the moment I'm trying to see if there's a chance this could be a server-related problem. To know more I would need to know whether the plugin has any callbacks to the server possibly over port 80? Something like "curl yourwebsite.com".

    If you could let me know I might be able to find out whether it's a server-related issue.

    Cheers,
    Russ

  10. Lewis Rosenthal
    Member
    Plugin Author

    Posted 2 months ago #

    So sorry for missing your follow-up, Russ, and for not checking in here for so long...

    Essentially, we pull the content from the database using the WP API. The content will have references to the image files, and depending upon how these are referenced, the images will either be pulled via url or from the filesystem. There are some known issues with relative paths (search the support threads). I know that things were apparently working in your test setup but not on the live server.

    Standard plugin troubleshooting steps apply (disable other plugins, switch to a default theme, and see what happens). We still routinely run into other plugins which make it more difficult for us to get the data to render the pdf.

    Cheers

    Lewis

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.