For the complete documentation index, see llms.txt. This page is also available as Markdown.

PDF Templates

Choose the right PDF format, see example outputs, copy a starter template, and learn the main PDF rules.

Use this page when you need a PDF and want to choose the right format fast.

A standard PDF Template is the most flexible PDF format in S-Docs.

Use it when you want to build the document layout in the template itself and generate a dynamic PDF from Salesforce data.

If you already have a finished PDF form, use Upload Existing PDFs instead.

Pick PDF Templates when dynamic layout matters most.

Pick Upload Existing PDFs when exact field placement on a fixed form matters most.

Tell me which one to pick

Pick this format
Use it when you need
Best for
Not ideal when

PDF Templates

Full layout control in the template body

Quotes, invoices, contracts, reports, multi-page packets

You already have a final PDF that only needs overlay fields

Upload Existing PDFs

Exact placement on top of a fixed PDF

Government forms, pre-approved legal forms, static brochures, drag-and-drop overlays

You need related lists, flexible tables, headers, footers, or page settings

Use PDF Templates if you need

  • related lists and data tables

  • conditional logic

  • components

  • headers and footers

  • page settings and margin control

  • multi-page output with reusable layout

Use Upload Existing PDFs if you need

  • a fixed background document

  • drag-and-drop field placement

  • simple overlays on an existing PDF

  • quick setup for non-technical builders

Keep in mind:

  • Upload Existing PDFs are portrait-only.

  • Related lists are not supported there.

  • Traditional headers, footers, and page settings are not available there.

Show me what it looks like

These examples show the same idea in three views:

  • raw Salesforce data

  • template structure

  • generated PDF result

Best fit: customer-facing quotes, invoices, and order summaries

Raw data

Generated PDF

Template snippet

For a fuller real example, see Quote Template on the Quote Object.

Best fit: work orders, summaries, audit reports, and packet-style output

Raw data

Generated PDF

Template snippet

This is the common pattern for document-style PDFs that need dynamic sections and tables.

Best fit: exact overlays on an existing form

If your goal is:

  • keep a pre-approved PDF exactly as designed

  • drag fields onto a fixed background

  • avoid rebuilding the layout in markup

then use Upload Existing PDFs, not a standard PDF Template.

That format supports drag-and-drop fields on top of an uploaded PDF background.

Give me the raw materials

Use this starter when you want a clean PDF template with:

  • a title block

  • key record fields

  • a line item table

  • number and date formatting

If you need an easier drag-and-drop starting point, use Upload Existing PDFs.

What are the rules?

Anatomy of a standard PDF Template

Required to create the template record

  • template name

  • Related To Type

  • template format set to PDF

Required for useful output

  • document body content

Without body content, the generated PDF will be blank.

Common optional parts

  • merge fields

  • related lists with lineitems or lineitemsSOQL

  • conditional logic

  • components

  • headers and footers

  • page settings

  • CSS styling

Common data types

  • Text: names, addresses, IDs, freeform content

  • Number and currency: totals, quantities, prices, percentages

  • Date and datetime: close dates, invoice dates, timestamps

  • Boolean: checkbox-style output

  • Related data: child records shown as tables or repeated sections

Use template attributes when values need display formatting.

For broader formatting help, see Format Data with Template Attributes.

Constraints and rendering rules

  • PDF output uses Salesforce PDF rendering.

  • JavaScript-rendered content is not supported.

  • Modern web layouts are less reliable than table-based layout.

  • Basic HTML and CSS patterns are safest for print-style output.

  • Unicode and international text need extra testing.

  • Arial Unicode MS is the documented multibyte font for extended character sets.

Quick decision checklist

Choose PDF Templates when you answer yes to one or more of these:

  • Do I need related lists or dynamic tables?

  • Do I need headers, footers, or page settings?

  • Do I need conditional sections or reusable components?

  • Am I building a document, not filling a fixed form?

Choose Upload Existing PDFs when you answer yes to this:

  • Do I already have the final PDF and only need to place data on top of it?

Next reads by goal

Last updated

Was this helpful?