WordPress.org

Forums

PDF24 Article To PDF
[resolved] Display Post Title Just Once (3 posts)

  1. morollian
    Member
    Posted 1 year ago #

    Hello!

    I've tried to use only some parts of my posts to be printed in the PDF document. I've used the code in my template file as I understood when reading the pluggin documentation:

    <?php pdf24Plugin_begin(); ?>
     Some content I want to display in the PDF
     <?php pdf24Plugin_end(); ?>
     Some content I don't waant in the PDF
     <?php pdf24Plugin_begin(); ?>
     Some more content that I want in the PDF
     <?php pdf24Plugin_end(); ?>
     <?php pdf24Plugin_link(); ?>

    It is working, but for each of the diferent parts I add to de PDF, the article title Is displayed. I guess this is happenig because the plugin understands every begin-end as a diferent entry.

    I would like the title to be displayed just once, on top of the document, and then just add the content I want.

    Is there any placeholder I can use in the "Custom document template" so I can delete {title} from "Custom document entry template"?

    Thanks a lot!

    http://wordpress.org/plugins/pdf24-post-to-pdf/

  2. pdf24
    Member
    Plugin Author

    Posted 1 year ago #

    I think this is currently not possible. There is no break element to break the begin/end. Each begin generates a new element with the title.

    There is also no title placeholder in the Custom document template context because this belongs to an element. Think that we have to implement a breakBegin and breakEnd call, that would work. I've added this point to the TODO list.

  3. morollian
    Member
    Posted 1 year ago #

    Tanks for your help and for this great plugin!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • PDF24 Article To PDF
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic