View Categories

Layout and Styling Customization

The plugin provides granular control over the visual presentation of your documents.

Page Options #

Setting Description
Orientation Set the page direction to Portrait (vertical) or Landscape (horizontal).
Format Select the paper size (e.g., A4, Letter) or define a custom width/height.
Margins Define the top, bottom, left, and right margins in millimeters.
RTL Enables Right-to-Left writing direction for languages like Arabic or Hebrew.
Page background / foreground image Allows you to set a background image (e.g., official letterhead) or a
transparent foreground image (e.g., watermark or stamp).

Header and Footer Options #

These sections allow you to add essential branding and contact information:

  • Header/Footer Image:
    Upload your company logo or a relevant image. You can specify the image width and alignment.
  • Header/Footer Title and Text:
    Include the document title, company name, address, and other contact details.
  • Alignment & Colors:
    Customize text alignment, font size, and color for a professional look.
  • Border Removal:
    To remove the border around the header or footer, set the Header line color or Footer line color to #ffffff.

Content Options and Styling #

The main content of the document is defined using HTML and shortcodes.

  • HTML Style:
    Write custom CSS to style the entire document and ensure a consistent, branded appearance.
  • HTML Content Filters:
    Options like Balance tags (recommended) and Replace line breaks help ensure correct rendering by the
    PDF generator and prevent HTML issues.