Inserting post content into imported PDF

WordPress
September 01, 2019 11:49:55
ginowhitaker
Topics: 1
Messages: 6
Is it possible to insert post content into a PDF template?

For instance, I have a 24 page PDF that has 5 areas that need to have HTML tables inserted. I have the tables set up as individual posts. I cannot figure out how to insert the post content into the imported PDF.

I have tried using the post ID shortcode, but when I generate a PDF, only the shortcode appears, not the table content in the post.

Am I going about this the wrong way?
September 01, 2019 12:08:54
E2Pdf
Topics: 7
Messages: 3617
Support
Hi,

To output post content you need to use [post_content] shortcode. If you are using "HTML" object inside Template you need to "Map Field" via "Visual Mapper" ("Right Mouse Click" -> "Map") or insert it manually via "Right Mouse Click" -> "Properties" -> "Value".

P.S. All available standard shortcodes for WordPress extension you can find at our "Documents" page here.

We remain at your service.

We would really appreciate your feedback at WordPress.org!
September 01, 2019 12:19:03
ginowhitaker
Topics: 1
Messages: 6
Thanks...I still don't understand how to map to a specific post. I mapped to [post_content], but still all I see is the shortcode. How do I specify the post ID? I don't see any syntax reference in the documentation.

Attached is what I see, and the PDF output
September 01, 2019 12:32:23
E2Pdf
Topics: 7
Messages: 3617
Support
You can use [e2pdf-download id="1"], where 1 is the ID of E2Pdf Template on page type which was connected to E2Pdf Template. It will use post content of page where this shortcode inserted, if post type will match.

You can also set post id "strict" to use it on any page. Shortcode will be:
[e2pdf-download id="1" dataset="2"], where 1 is the ID of E2Pdf Template and 2 is the Post ID.

From "Admin Dashboard" you can export data to PDF via "E2Pdf" -> "Export". Choose needed "E2Pdf Template", Choose "Dataset" and click "Export".

We would really appreciate your feedback at WordPress.org!
September 01, 2019 12:41:07
ginowhitaker
Topics: 1
Messages: 6
I think I understand. What about if I have multiple posts that need to be inserted into the PDF on different pages?

For example
Post ID 1 to be inserted into page 5 of the imported pdf
Post ID 2 to be inserted into page 15 of the imported pdf
etc.
September 01, 2019 12:56:17
E2Pdf
Topics: 7
Messages: 3617
Support
You can use [post_content id="2"] as shortcode, where 2 is the custom post id. It must fit your needs. It's not yet under documentation page as it's under testing dev stage.

We would really appreciate your feedback at WordPress.org!
September 01, 2019 13:47:41
ginowhitaker
Topics: 1
Messages: 6
Thanks. I will give this a try.
September 01, 2019 14:55:14
ginowhitaker
Topics: 1
Messages: 6
That didn't work. I guess I'm trying to do something outside of what this plugin is meant to do.
September 01, 2019 18:31:18
E2Pdf
Topics: 7
Messages: 3617
Support
Here is just some fast video example with WordPress extension usage to understand the logic.


We would really appreciate your feedback at WordPress.org!
September 01, 2019 19:56:57
ginowhitaker
Topics: 1
Messages: 6
Thank you! Now I understand how it can work!
Get News and Updates
Our monthly newsletter keeps you in the loop, so you'll always be up to date with the latest news and updates about E2Pdf.
* You can update your email subscription preferences here.
All trademarks, service marks, trade names, product names, and logos appearing on this website are the property of their respective owners. The use of trademarks such as Formidable Forms®, Forminator Forms®, Gravity Forms®, JetFormBuilder®, WordPress®, WooCommerce®, WPForms® and others is solely for identification purposes (nominative use) and does not imply any affiliation, sponsorship, or endorsement by the respective trademark holders.
© 2017 - 2026, https://e2pdf.com

We use cookies to collect and analyse information on site performance and usage, to provide social media features and to enhance and customise content and advertisements. By clicking "Accept Selected", you consent to use of selected cookies according to our Cookie Policy.