• Resolved alexshao

    (@alexshao)


    Hi there,

    So when I click the print button, it shows the html code of the frontend content not the content itself.

    The page I need help with: [log in to see the link]

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

    (@bestwebsoft)

    You can try to use “Full Page PDF” option. In this case the plugin will mirror what is shown on screen.

    If “Full Page PDF” option is disabled 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 custom PHP code.” checkbox in the “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 https://support.bestwebsoft.com/hc/en-us/articles/205454653

Viewing 1 replies (of 1 total)

The topic ‘Show the code not the frontend content’ is closed to new replies.