Announcement

Collapse
No announcement yet.

Render HTML in pdf template

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Render HTML in pdf template

    Hi there

    Is there a way to get the pdf template engine to render html?

    We have a textfield with html, that we like to include in a pdf quote.

    Greetings from Denmark

  • #2
    Hello
    If you want to paste html manually, paste in on Code View (</> button on the text area toolbar)
    If it is some field {{field}} - use {{{field}}}

    Comment


    • #3
      Hello again

      Thanks for the reply.
      When i do that it does not render as html in the pdf. It is printed in the pdf as
      <p>This is a multiline tekst</p><p>This is a line</p><p>This is an other line</p>

      Comment


      • #4
        is it a field or manually typed text? if text - open code view copy content and share with me

        Comment


        • #5
          Hey tanya

          It is a teksttype field and same apply to wysiyug field type.
          The tekst is "<p>This is a multiline tekst</p><p>This is a line</p><p>This is an other line</p>"
          The problem is that is the same tekst with tags that are printet on the pdf.

          Comment


          • #6
            on the wysiwyg area tags are shown or text are only formatted and tags are hidden?

            Comment


            • #7
              Hi again

              Thanks for quick reply.
              No on both text-fields and wysiwyg-fields are tags shown on the pdf.

              Comment


              • #8
                If you type html in text field, don't break rows
                If you input html in wysiwyg field, do it in code view
                On template wrap field in {{{field}}}

                With this recommendations everything works well for me.

                Comment


                • #9
                  Hey it worked... :-)
                  The HTML-rendered field need that ekstra { for it to works
                  Thanks for the support and best CRM ever build... :-)

                  Maybe this ekstra text would be a good help for others...

                  Click image for larger version  Name:	html_render.png Views:	1 Size:	21.3 KB ID:	32902
                  Last edited by dafnie; 12-05-2017, 12:02 PM.

                  Comment


                  • #10
                    Creating documents based on the other entities would be a very, very, very good thing.
                    peter

                    Comment

                    Working...
                    X