• Resolved taffeld

    (@taffeld)


    I read a post on customizing the custom PDF template on Ninja Forms
    https://speakinginbytes.com/2014/11/customizing-ninja-forms-pdf-submissions/
    So I read through it and thought it seemed pretty straight forward…

    So I thought I would give it a try…

    I added a bunch of html code in order to make the PDF template look like the front end of the website with the blanks filled out inside the PDF

    I spent many hours replicating the front end of the form with HTML inside the pdf.php file and it did not work when I tried to use it…

    I really need to get this to work… I contacted WP Ninjas and they said they could not provide support for this feature…

    I do not really know PHP … but I do know HTML and CSS.. So I thought I could work with the example… on the blog post…

    So after many hours of creating the custom code when I went to test it I could not get it to work.

    I was really hoping you might be able to take a look at my code and tell me If I am missing something or using something that would cause the PDF template export not to work…

    Here is a link to preview the code I used: https://kscsafety.com/wp-content/uploads/2016/04/form-html.txt

    If there is any PHP code I am missing that might look super obvious to you that I need to ad, or if there HTMl Code I am using that would not be compatible with the pdf.php the the NINJA forms PDF export plugin

    Tom

    https://www.ads-software.com/plugins/ninja-forms/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello
    I have same problem.
    Do you have this problem yet?
    or solved?
    If you know the way please let me know.
    Thanks.

    Thread Starter taffeld

    (@taffeld)

    I was using Ninja forms Version 2.9.33
    &
    PDF Form Submissions Version 1.3.5

    I was using a web browser to preview my custom layout as I built it… which was a little more forgiving and more flexible vs the code that can be done on the actual template file…

    So I removed all my code out of the template file and and slowly added it back… bit by bit until I found something that may need to be done differently… rather than test my code in a browser like I was previously doing. I would have to do a test export to preview it to see if it still worked.

    If it did, then I kept adding more and more code back and testing until it broke.

    Then when it broke I peeled some code out bit by bit and tested it until I isolated the problem code and either fixed the code or came up with an alternate method to achieve the same effect, and would keep testing via PDF export until I found a way to achieve the desired look that did not break the PDF export.

    I forget what exactly needed to be done differently in my layout code.. I think there was a table cell that was missing a closing tag in a nested table, that was one thing I remember fixing… there were a few other tags that did not behave exactly as they did when previewed in a browser… like <p> was not giving me a double space so I used <br><br> where I wanted my paragraph breaks to be as a quick work around..

    So Hope this helps… Good luck on your project

    Thanks.
    I also used test.html file to preview custom layout of pdf.
    But the pdf result was different with ui on browser.
    I never used bootstrap or other.only used custom css file test.css.
    And I used some class on tags for template I like.
    I think when pdf.php file is exported, they don’t use same interpreter as browser,
    They seems to use their own interperter for it.
    As you know,It take much time to peel code out bit by bit.
    So it’s not effecient way.
    I think PDF Form Submissions plugin developers are not going to provide developers for custom template pdf structure.

    Is there any other plugin for custom pdf template from ninja form submission?
    I will be very happy if there are.

    Thread Starter taffeld

    (@taffeld)

    Well they have updated their plug in recently so that may be part of the issue….

    I have not been real happy with the custom PDF solution from Ninja Forms… If I had it all to do over again I would probably use gravity forms rather than ninja forms
    https://www.ads-software.com/plugins/gravity-forms-pdf-extended/

    Thanks.As there are not enough reference for this issue, your advice took great part for my decision.
    Thanks again.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Customise the PDF export template’ is closed to new replies.