Support » Plugin: E2Pdf - Export To Pdf Tool for WordPress » How redirect a blog post directly to a pdf

  • Resolved mengeco

    (@mengeco)


    Hello,
    does this plugin make it possible to redirect a blog post directly to a pdf instead of the developed article?
    Thanks

Viewing 1 replies (of 1 total)
  • Plugin Author Oleksandr

    (@oleksandrz)

    Hi,

    If you need to output post content to PDF there are 3 ways to accomplish the task:

    1 option:

    • You can wrap content which must be rendered to PDF with [e2pdf-content key=”page1″]Some Content Here[/e2pdf-content] inside posts/pages – where “page1” is your custom key.
    • Use [e2pdf-content key=”page1″] inside “E2Pdf” Template to output text on needed position/element of “E2Pdf” Template.

    2 option:

    • Use custom meta fields for each “post” with predefined content.
    • Use [meta key=”fieldkey”] shortcode inside “E2Pdf” Template to output data.

    3 option:

    • Use [post_content] shortcode inside “e2pdf-html” element. It will output full post content but its support limited as not all “html” tags supported and if you need to split text between pages – it can be splitted only by wrapped “html” tags inside content like <div>,<p>, etc…
    • To split content between pages it will be need to create another “e2pdf-html” element and set “Parent” property to the ID of first “e2pdf-html” block. This will work only if each wrapped with html content will not be bigger of “e2pdf-html” block or full post content length will be less.

    With 1 and 2 way you will be able to have full control what you need to render and on which positions of PDF and have predictable result. Unused “elements” or “pages” inside PDF will be possible to hide via “Actions” and “Conditions”.

    In all cases “E2Pdf” Template must be connected to “WordPress” extension with “Posts” item. You can find more supported shortcodes for WordPress Extension at https://e2pdf.com/extensions/wordpress.

    We remain at your service.

    • This reply was modified 3 months, 1 week ago by  Oleksandr.
    • This reply was modified 3 months, 1 week ago by  Oleksandr.
    • This reply was modified 3 months, 1 week ago by  Oleksandr.
    • This reply was modified 3 months, 1 week ago by  Oleksandr.
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.