Ready to get started?Download WordPress


PDF24 Article To PDF
[resolved] Create PDF from separate template? (4 posts)

  1. jennybeaumont
    Posted 1 year ago #


    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.


  2. pdf24
    Plugin Author

    Posted 1 year ago #

    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:

  3. berchman
    Posted 10 months ago #

    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?

  4. jennybeaumont
    Posted 10 months ago #

    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!


Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.