Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Viljami Kuosmanen

    (@zuige)

    Hi, Jeroen

    You need to customise the template to display your custom fields. By default, WP PDF Templates only displays the title, post content and the page URL in the PDF.

    Copy index-pdf.php from the plugin directory to your theme directory and recreate your product page layout in html there. Alternatively, find your product page template file and append -pdf to the name and edit as needed.

    Let me know if you need further assistance.

    Cheers!

    – Antti

    Plugin Author Viljami Kuosmanen

    (@zuige)

    [marked topic as resolved]

    Thread Starter nashua

    (@nashua)

    Hello Antti,

    Thank you for your help, but unfortunately it didn’t solve the problem. I have 3 page’s wich are involved to get this page together. I have entered -pdf behind all of them (i supposed, i have to dublicate the normal and then enter -pdf at 1 of them?)

    But the page is still empty..

    I am now trying this on a test server, before something gets broken.
    Please help?
    Jeroen

    Plugin Author Viljami Kuosmanen

    (@zuige)

    3 pages or 3 templates? If you want the template to work for all posts and pages, you can just copy the index-pdf.php from the plugin over to your theme folder and start from there.

    Is the PDF file intact, but just empty or are you just getting a white screen of death? It’s possible DOMPDF doesn’t support something in your HTML. In this case, you should see something in your php error log when trying to create the pdf file.

    Also, it’s recommended to enable define('DISABLE_PDF_CACHE', true); to make sure the cache isn’t causing the issue during development.

    I’ll happily take a look at your theme to help you if you give me access to your server.
    – Antti

    Thread Starter nashua

    (@nashua)

    Hello Antti,

    Thank you for your quick reaction. where could i e-mail you the settings for the admin?

    Thank you Jeroen

    Plugin Author Viljami Kuosmanen

    (@zuige)

    Hi!

    My email is [email protected]

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘nothing is being displayd in PDF’ is closed to new replies.