WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. jennybeaumont
    Member
    Posted 1 year ago #

    Hi,

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

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

  2. pdf24
    Member
    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:
    pdf24Plugin_formSubmit(get_the_ID())

  3. berchman
    Member
    Posted 9 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?
    Thanks,
    Bert

  4. jennybeaumont
    Member
    Posted 9 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!

    best,
    -jennyb

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.