Inserting post content into imported PDF

WordPress
1 September, 2019 04: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?
1 September, 2019 05:08:54
E2Pdf
Support
Topics: 7
Messages: 3163
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!
1 September, 2019 05: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
1 September, 2019 05:32:23
E2Pdf
Support
Topics: 7
Messages: 3163
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!
1 September, 2019 05: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.
1 September, 2019 05:56:17
E2Pdf
Support
Topics: 7
Messages: 3163
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!
1 September, 2019 06:47:41
ginowhitaker
Topics: 1
Messages: 6
Thanks. I will give this a try.
1 September, 2019 07: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.
1 September, 2019 11:31:18
E2Pdf
Support
Topics: 7
Messages: 3163
Here is just some fast video example with WordPress extension usage to understand the logic.


We would really appreciate your feedback at WordPress.org!
1 September, 2019 12:56:57
ginowhitaker
Topics: 1
Messages: 6
Thank you! Now I understand how it can work!