WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Jaabie
    Member
    Posted 2 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/

    http://wordpress.org/extend/plugins/wp-post-to-pdf/

  2. Jaabie
    Member
    Posted 2 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.

    http://shutterliving.com/president-francois-hollande/

    Any help VERY welcome.

  3. Lewis Rosenthal
    Member
    Posted 2 years ago #

    Hi...

    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.

    HTH

    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).

    Cheers

  4. Jaabie
    Member
    Posted 2 years ago #

    Lewis,

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

    Jamie

  5. Lewis Rosenthal
    Member
    Posted 2 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.

    Cheers,

    Lewis

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.