Support » Plugin: PDF24 Article To PDF » Create PDF from separate template?

  • Resolved Jenny Beaumont



    I’m researching plugins to generate PDFs for a scenario where the link would actually trigger content from outside the post itself. Essentially I have a CPT for a product, and would like to generate a document of technical specs for that product. The content would be compiled from a separate template using metadata from custom fields, etc. – basically an “invisible” page within the site.

    What do you think? Doable? So rather than call the postID from single.php, I’d want to call it from my-template.php.

    Thanks for your feedback.

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


    You can use the following code too mark your content which should be added to the PDF file:

    <?php pdf24Plugin_begin(); ?>
    <?php the_content(); ?>
    <?php the_meta(); ?>
    <?php pdf24Plugin_end(); ?>
    <?php pdf24Plugin_form(get_the_ID()); ?>

    And elsewhere in the page add a button to create the PDF file:

    Hi Jenny,
    I wonder if you ever got this to work?
    I am presently looking for exactly this type of solution.
    A PDF dynamically generated off of custom post type data stored in the WordPress database.

    Any luck, tips, or insights?

    Hey Bert,

    I sent you an email on this subject, but the solution is with the TCPDF plugin adaptation (WP Post to PDF). Pretty sure you found the posts exchanged with Lewis on this.

    Hit me up on that forum thread for more info if needed!


Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Create PDF from separate template?’ is closed to new replies.