• Resolved georg77

    (@georg77)


    Thanks so much for creating this plugin, it looks very promising!
    I got one issue though: is it possible to echo out content instead of concatenating it to $pdf_output? I created a template file with the following code which resulted in a blank pdf:

    ob_start();
    echo '<div>Generate your content</div>';
    $html = ob_get_contents();
    ob_end_clean();

    Rewriting our scripts would lead to a lot of duplicate code, so being able to echo out content would be fantastic.

    Thanks again and kind regards,
    Georg

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

    (@fkrauthan)

    No it should work. But you have to save the result in $pdf_output in your template. Just copy the default template and replace the $pdf_output section with your ob_start() etc.

Viewing 1 replies (of 1 total)
  • The topic ‘echo content in template’ is closed to new replies.