Salesforce Document Output Formats: PDF, Word, Excel with Dochly
Format overview
Dochly supports three output formats. The right choice depends primarily on what happens to the document after generation — who receives it and what they need to do with it.
Format choice matters most when documents are delivered to external recipients (customers, partners, regulators) or when they need to be edited after generation. Internal documents that stay on the Salesforce record are less format-sensitive.
Set the default format in Dochly → Settings → General. Override per template in the template settings. Override per generation in the generation modal or Flow action input. Template-level overrides the org default; generation-level overrides both.
PDF — Portable Document Format
PDF (.pdf)
Fixed-layout document — renders identically on every device and operating system
- The recipient needs to edit the document after receiving it (use DOCX)
- The document is primarily a data export or financial model (use XLSX)
- The document must be imported into another system that only accepts DOCX or XLSX
DOCX — Word Document
DOCX (.docx)
Editable Word document — can be opened and modified in Microsoft Word or Google Docs
- The document goes directly to a customer — PDFs look more professional and prevent accidental edits
- The document is used for e-signature — e-signature workflows require PDF format
- Pixel-perfect formatting is critical — DOCX rendering can vary slightly between Word versions and platforms
DOCX is the recommended format for generating a draft that will be reviewed and finalized before sending to a customer. The workflow: generate DOCX → internal review and edits → convert to PDF for customer delivery or e-signature.
XLSX — Excel Spreadsheet
XLSX (.xlsx)
Structured spreadsheet — tabular data with formulas, multiple sheets, and Excel-native functionality
- The document is a formal customer-facing document — use PDF
- The document requires rich formatting, images, or styled headers — XLSX rendering is minimal
- The document is used for e-signature — e-signature requires PDF
- The audience is non-technical and may not have Excel — PDF is universally accessible
Format comparison table
| Feature / use case | DOCX | XLSX | |
|---|---|---|---|
| Customer-facing delivery | ✓ Best | ~ Acceptable | ✗ Not recommended |
| E-signature compatible | ✓ Yes | ✗ No | ✗ No |
| Editable after generation | ✗ No (by design) | ✓ Yes | ✓ Yes |
| Rich formatting (images, colors) | ✓ Full fidelity | ✓ Mostly preserved | ~ Limited |
| Data analysis / formulas | ✗ No | ✗ No | ✓ Yes |
| Compliance / audit archival | ✓ Best (PDF/A) | ~ Acceptable | ✗ Not recommended |
| Universal device compatibility | ✓ Best | ~ Requires Word/Docs | ~ Requires Excel/Sheets |
| Internal review and editing | ✗ Not editable | ✓ Best | ~ For data only |
| Data import to other systems | ✗ No | ~ Limited | ✓ Best |
How to choose the right format
Answer these three questions to identify the right format for your document type:
Setting the default output format
Dochly has three levels of format configuration — each overrides the one above it:
Set in Dochly → Settings → General → Default Output Format. Applies to all templates and all generation attempts that don't have a more specific format configured. Set to PDF for most orgs.
Set per template in the template settings → Output Format. Overrides the org default for that specific template. Use this to set Invoice templates to PDF while a Data Export template defaults to XLSX.
Set in the generation modal when clicking Generate Document, or in the Flow action's Output Format input. Overrides both org default and template default for that specific generation only.
Set in the scheduled job configuration. Applies to all generations within that job run, overriding the template default. Useful for running the same template as PDF for monthly billing but DOCX for an internal review cycle.
Generating multiple formats at once
Dochly can generate more than one format from a single template in a single generation. Configure this in the template settings or the generation modal by selecting multiple output formats. Each selected format produces a separate Salesforce File on the record.
Generate both PDF and DOCX from the same proposal template: PDF is sent to the customer and stored for the record; DOCX is available for internal teams to reference or edit if needed. Both files appear in the record's Files list.
Each format generates a separate Salesforce File — so generating PDF + DOCX creates two files per generation. For high-volume batch jobs, consider whether both formats are genuinely needed or if generating a single format reduces storage overhead.
Format and delivery considerations
The output format also affects what's possible for downstream delivery and processing:
Only PDF documents can be sent for e-signature through Dochly's native e-signature feature. If a template is configured to output DOCX or XLSX, the Send for Signature option is unavailable until the format is changed to PDF.
All three formats can be emailed as attachments when configured in the generation settings. PDF is the most universally compatible email attachment — no software requirement for the recipient. DOCX and XLSX require Word and Excel to open.
All three formats store as native Salesforce Files (ContentDocument) and appear in the Files related list identically — the format only affects what happens when the file is opened or downloaded.
If generated documents are automatically uploaded to Google Drive, SharePoint, or another system via a Salesforce Flow, ensure the target system accepts the format you're generating. Most integrations handle all three formats, but some document management platforms have format restrictions.
Frequently asked questions
Document Generation series complete
You've covered the full Dochly document generation guide series — from generating your first document to scheduling automated workflows, troubleshooting errors, and choosing the right output format for every use case.
Rated 5 stars · Native Salesforce app · Free to install