HTML Object

Html - is an HTML object.


Properties #

Element #

  • ID - is the element id.
  • Page ID - is the element page id.
  • Type - is the element type.
  • Position Left - is the left position of the element.
  • Position Top - is the top position of the element.
  • Width - is the width of the element.
  • Height - is the height of the element.

Field #

  • Font Color - is the font color of the text.
  • Font - is the font of the text. If not set, the global E2Pdf Template font will be used.
  • Font Size - is the font size of the text. If not set, the global E2Pdf Template font size will be used.
  • Char Spacing - is the character spacing of the text. It is not supported in complex languages like Bengali, Hindi, Urdu, etc.
  • Line Height - is the line height of the text. If not set, the global E2Pdf Template line height will be used.
  • Text Align - is the alignment of the text.
  • Rotation - is the text rotation. Only the text is rotated, not the element, so the element width and height must be set as you need to see it inside the PDF.
  • Vertical Align - is the vertical alignment of the text.
  • Direction - is the text direction that overwrites the global E2Pdf Template setting. See when RTL must be checked: Read More ››
  • Multipage - is the option that makes the HTML object multipage. If the content inside the HTML object overflows, a duplicate page will be created to continue it. New pages will be created until all content is rendered. Read More ››
  • Dynamic Height - is set to decrease the HTML object size if the content height is less than the height of the HTML object. It will not affect any other elements and the height will not be decreased.
  • New Lines to BR - By default, the HTML object generates new lines with <br> tags. The option is used to convert new lines to <br> tags.
  • Hide (if Empty) - will hide the HTML object if it has no content.
  • Hide Page (if Empty) - will hide the Page on which the HTML object is placed if it has no content. Can be useful when the HTML block is used as a Child and dynamic content is used.

Style #

  • Background - is the background of the HTML object.
  • Padding - is the inner padding of the HTML object.
  • Border Color - is the border color of the HTML object.
  • Border - is the border width of the HTML object.
  • Z-index - is the field render priority. Can be set to a negative value.

Parent #

  • Parent - is the Parent HTML Object ID from which the content must be continued if it overflows. Read More ››

    In the case of using the Parent option, all content must be added to the main HTML object.

    All child HTML objects must have the same Parent HTML object ID. The order to render the content can be controlled by the ID of HTML elements and Z-index.

CSS #

  • CSS - is the CSS value.

    The list of supported tags and styles can be found at:
    https://e2pdf.com/docs/elements/html/tags-css

    Accepts only single-level CSS selectors to apply the style: tag or class.

    HTML Worker 2.0 supports complex CSS selectors such as div > div, td:first-child, etc.

Value #

  • Value - is the HTML value.

    The list of supported tags and styles can be found at:
    https://e2pdf.com/docs/elements/html/tags-css

    Value can be filled dynamically with the Actions and Conditions. Read More ››

    If the Value is copied from a website page, it's highly recommended to paste it via Right Mouse Click -> Properties -> Value because, due to the nature of "contenteditable" HTML, malformed HTML can be copied, which can cause unexpected output.
  • Disable WYSIWYG Editor - disables WYSIWYG Editor and outputs the source. It's highly recommended to set this option when a complex HTML structure with inline logic shortcodes or syntax is used, to prevent HTML re-formatting.
  • CSS Priority - if set, the CSS section will have priority over the inline CSS.
  • HTML Worker 2.0 - Enables a new HTML render engine with support for complex CSS structures and extended HTML support.

Actions #

  • Add Action - adds actions and conditional logic to the HTML object to show, hide and change properties. See how to use: Read More ››

Examples #

Setting Value #

Get News and Updates
Our monthly newsletter keeps you in the loop, so you'll always be up to date with the latest news and updates about E2Pdf.
* You can update your email subscription preferences here.
All trademarks, service marks, trade names, product names, and logos appearing on this website are the property of their respective owners. The use of trademarks such as Formidable Forms®, Forminator Forms®, Gravity Forms®, JetFormBuilder®, WordPress®, WooCommerce®, WPForms® and others is solely for identification purposes (nominative use) and does not imply any affiliation, sponsorship, or endorsement by the respective trademark holders.
© 2017 - 2026, https://e2pdf.com

We use cookies to collect and analyse information on site performance and usage, to provide social media features and to enhance and customise content and advertisements. By clicking "Accept Selected", you consent to use of selected cookies according to our Cookie Policy.