• Hi developers,

    First of all, great plugin. I’ve tried several plugins and none came even close to what this one can do.

    So far I however have two issues. I couldn’t find the answer in this forum.

    1. I am writing very very long posts. Printing them into pages, will result in a 10 page document at least. I would like to have some sort of page control. E.g. divide the post into chapters that are printed on individual pages. Is this possible? I found “wpptopdf_break” but that doesn’t do anything.

    2. Each post has an highlighted image. Whatever i try, i can’t get the images to be shown. When i use the same image as e.g. a logo they are shown.

    Thanks in advance.

    Regards,

    Dave

    https://www.ads-software.com/plugins/wp-post-to-pdf-enhanced/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Lewis Rosenthal

    (@lewisr)

    Thanks for your kind words, Dave!

    The wpptopdf_break shortcode is not working at all for you? That’s odd. Which version of the plugin are you using?

    While not currently implemented, it should be possible to trigger a new page event based upon content (just thinking aloud, so I may be grasping). I’m thinking that an option could be added to trigger a new page on every <h2> or every <h3> tag, however, the shortcode should work (we should always honor our shortcode, even if the option is unset in the admin area to process shortcodes from other plugins). This might be a regression.

    Images: What types of images are these and are you using another plugin to display them? The main image problems are related to alignment, but we also have issues with some formats. Can you give me a link to the site?

    Cheers

    Lewis

    Thread Starter Accountteam

    (@accountteam)

    Hi Lewis,

    Thank you for your reply, really appreciated!

    I have to admit I’m pretty new to WP. Perhaps I am not using the shortcode as it should. What I simply do is add [wpptopdf_break] and [/wpptopdf_break] in the content of the post. The result is that WP and the PDF both show the shortcode as general text. I also tried the HTML field.
    I am currently working with the lastest version of the plugin and WP. Both were updated last week.
    Your idea about triggering a new page on an H2 is appreciated. I know PHP well, so if I can’t get the shortcode to work, i’ll code it.

    About the images, they are in JPG format, saved for web using Photoshop CS4. The site is not online yet (running local), but as soon as it is, i’ll send you the link and the image.

    Thanks in advance!

    Dave

    Plugin Author Lewis Rosenthal

    (@lewisr)

    Sorry for the late follow-up, Dave…

    The proper shortcode (surrounded in square brackets, of course) is:

    wpptopdfenh_break

    and it is self-closing, so there is no closing shortcode required. Simply place the one shortcode where you’d like the page to break, and the code should be replaced by (expanded to):

    $content = '<tcpdf method="AddPage"></tcpdf>';

    in the data passed to TCPDF.

    Cheers

    Lewis

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Divide output into pages’ is closed to new replies.