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
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 Typetemplate 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
lineitemsorlineitemsSOQLconditional 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 MSis the documented multibyte font for extended character sets.
Rich text fields can introduce extra paragraph tags, font fallback, and formatting differences.
If your output depends on rich text, test with real sample data early.
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
Need exact overlay placement on a finished PDF? Start with Upload Existing PDFs.
Need styling guidance? Read Style Templates.
Need table and child-record data? Read Insert Data Tables.
Need PDF-specific limitations? Read PDF Render Limitations.
Need font guidance for multilingual output? Read Supported Fonts in PDF Format.
Last updated
Was this helpful?

