WP Post to PDF
Alter the number and size of Images (5 posts)

  1. Jaabie
    Posted 3 years ago #

    This is the first (many tired) PDF plugins I have got to work.

    THANK YOU ! It is simple and easy to use, (it would be great to add a feature for adding text to footer, but i found the tread which explained the work around).

    I have a photoblog and I would like the PDF to add 2 photos per page,
    at present it only adds one photo per page.

    ...is there anything i can do to fix this issue

    for example http://shutterliving.com/gangnam-style/


  2. Jaabie
    Posted 3 years ago #

    in fact the example i gave does not seem to work it gives an error code.

    http://shutterliving.com/gangnam-style/ (any ideas why the error code)

    however this one shows my original problem of having one photo per page.


    Any help VERY welcome.

  3. Lewis Rosenthal
    Posted 3 years ago #


    I think what you might want to check out is TCPDF's setImageScale directive. This is set to a default of 1.25 in <plugin dir>/tcpdf/config/tcpdf_config.php via the variable "PDF_IMAGE_SCALE_RATIO" which is then referenced in wp-post-to-pdf.php. You could override it in either place. Try 1.0 as the scaling ratio top see if that gets two images on a page.


    PS - Per my other thread, I've made some adjustments to the settings page for this plugin. Your request might be another good idea to add to the list (just a simple dialog box to input the scaling factor, and if non-zero, use that instead of the default in tcpdf_config.php, otherwise, fall back).


  4. Jaabie
    Posted 3 years ago #


    Thank you so much for your response i will take a look on monday and let you know how i do.


  5. Lewis Rosenthal
    Posted 3 years ago #

    Surely, Jamie. My pleasure.

    To make things a bit easier, I've added an option to the admin page to allow setting the scaling factor. This way, you can test various values. Caution: the scaling factor is indeed that: a factor. This means that it is the second part of a ratio, with the "1:" omitted. Thus, a scaling factor of 1.25 (the default) is really an image ratio of 1:1.25 of pdf:original. Setting a scaling factor of 2 implies 1:2, or 50% of original size. Counter-intuitive, I know. I'll do better in a subsequent release (or Neerav may; this is still his plugin; I've just hacked at it a little bit).

    Anyway, more details are available in http://wordpress.org/support/topic/contributed-update-available , including download links.



Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Post to PDF
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.