Support » Plugin: PDF & Print by BestWebSoft » how to include contents from shortcodes

  • Resolved adilsweet


    dear best web softs, i’m trying to download the PDFs of my posts and pages my posts have the table of contents which is provided by TOC+, on the other hand, i’m trying to download the copy of a page which has a table which is displayed using TablePress shortcode, when i get the copy any of my posts, it shows everything which i’ve written in body section but the table of contents is not exported. and when i download the page which has a table, i receive a blank file because the page contains only a shortcode. i’ve read the read me file which says plugin can export contents from body but on the other hand, it’s clearly stated that we can export the data which is displayed by shortcodes. please solve this conflict

    • This topic was modified 1 year, 5 months ago by  adilsweet. Reason: email answer
Viewing 1 replies (of 1 total)
  • Plugin Author bestwebsoft



    Thank you for contacting us.

    In order to generate pdf/print version of the page, PDF & Print plugin uses the content that is featured in the body of post/page before it is displayed by the browser (i.e. the data featured in the main block on this post/page in the edit mode).

    Unfortunately, we cannot provide the compatibility with each and every WP plugins, but we made it possible for all user to customize it.
    If you have programming skills, then you will cope with adding the necessary content to be displayed in pdf.
    To add the custom content, please use ‘bwsplgns_get_pdf_print_content’ hook:

    1) Go to the plugin settings page;
    2) Open “Custom code” tab, mark “Activate” checkbox in the “Editing bws-custom-code.php” section;
    3) Add the following code (as example):

    function get_pdf_print_content( $content ) {
        return $content . 'Hello, world';
    add_filter( 'bwsplgns_get_pdf_print_content', 'get_pdf_print_content' );

    For more info see

    If you have any difficulties, you can hire our specialist who will make required changes.
    Please follow the next steps in order to request a paid customization service:
    1) Submit a private request here –
    2) Make sure to include details about required changes.
    3) Our manager will contact you back with estimation (possible questions) and a payment link.
    4) Answer questions (if applicable) or complete the payment.
    5) We will contact you upon payment approvement.
    6) The work will be performed by our specialist.
    7) Usually, it takes about 2 – 4 hours to complete the desired changes after receiving your payment (we start after 100% pre-payment only). However, the time depends on the complexity of this task, the number of desired changes and availability of our team.

    BestWebSoft Support Team

Viewing 1 replies (of 1 total)
  • The topic ‘how to include contents from shortcodes’ is closed to new replies.