In This Article: Add Page Numbers Using The Template Editor Add Page Numbers Using The Template Editor To insert page numbers in your PDF's header or footer, use the {{!PageNumber}} and {{!PageCount}} merge fields. To do this, go to Template Editor > Insert Field > Special Merge Fields. Documentation Home S-Docs Introduction to S-Docs Install S-Docs S-Docs Quick Install & Configuration Guide S-Docs Quick Install & Configuration Guide – Salesforce Lightning Install & Renew Your S-Docs License Key Upgrading S-Docs to the Latest Version User Overview S-Docs User Guide Creating Your First S-Docs Template Formatting S-Docs with Salesforce Lightning Using S-Docs with the Salesforce Mobile App The S-Docs Template Editor Creating Quote Template Merge Shipping and Billing Contacts Into Documents At Runtime Adding Page Breaks to Your PDF Adding Page Numbers to Your PDF Adding Page Numbers to Your DOC Template Choosing between PDF, HTML, DOC, DOCX, or XLS formats Change Page Size and Orientation Custom Objects Configuring S-Docs with Custom Objects – Salesforce Classic Configuring S-Docs with Custom Objects – Salesforce Lightning Use S-Docs with your custom object Attachments and Emailing Create S-Docs Email Templates Selecting Email Recipients Generate And Attach A New Document To Your Current Email Using Your Salesforce Email Signature in S-Docs Saving S-Docs As Salesforce Attachments Or Files Pull Image Attachments and Generate a PDF Related Lists Adding a Related List to Your Template Add Line Items to your Documents General Solutions Import Word Templates into S-Docs Upload Templates From Microsoft Word With The DOCX Feature Upload Templates From Microsoft PowerPoint With The PPTX Feature Updating Templates Without Affecting Previously Created Documents Restrict A Template From Being Emailed S-Docs General Configuration Automation S-Doc Jobs Automation & Batch Processing Using S-Docs Jobs Automation & Batch Processing Using S-Docs Jobs in Salesforce Lightning Automation Options: Improving Efficiency and Compliance Automating Conditional Template Selection and Generation Automating Emails with Process Builder Formatting Using S-Docs with Salesforce Chatter Preview Documents Within the Template Editor Using Arithmetic Functions Advanced Template Features Configuring S-Docs with Salesforce Quote Object Append Terms and Conditions To Your Contract Use your own stylesheet or CSS Displaying checkboxes Embedding Google Charts into your document Embedding static images into your document Formatting Dates Formatting Currencies Specify Coloration on Even and Odd Rows in Subquery Records Merge Mass Merge & Batch Document Feature Special Merge Fields in S-Docs Component Templates: Insert a Template Into Another Template as a Merge Field Merge External Data Into Your Documents Related Lists Customizing Your Related List Layout Render Limitations of the S-Docs Rendering Service The Template Editor “Insert Conditional Logic” Button Conditionally show a field value on a document Conditional logic within a template General Solutions PDF-Upload Link one document to many objects Overview: Translating S-Docs Translate Merge Fields & Field Labels Translate The S-Docs UI Access other fields not visible from the Insert Field Picker button Add Custom Filters When Selecting Your Templates Live Edit: Allow Users to Edit Generated Documents Moving S-Docs Templates from Sandbox to Production Sandbox Refresh Considerations S-Docs Advanced Customization Formatting Configure a Multi-Page Table to Repeat its Header on Each Page Adding Dynamic Images into Templates Merge Insert SOQL Query Data as Merge Fields with the Named Query Feature S-Docs Runtime Prompts: Merge User Input with Documents at Runtime Call Apex Classes in S-Docs Templates Use Switch Statements Related Lists Using S-Docs Direct SOQL Feature for Related List Filtering, sorting and grouping your related list Create a Document for Each Record in a Related List Writing a Query That Returns Distinct Records Integrations Integrating S-Docs with Box Connecting S-Docs with Amazon S3 Overview of S-Docs GDI GDI Installation & Setup Using Google Drive Integrating with Adobe eSign Integrating S-Docs with DocuSign General Solutions Using S-Docs with Communities Parameters for Apex Buttons & Calls to Create S-Docs Generate A Component Template For Each Record In A List Of Records S-Sign Introduction to S-Sign Install S-Sign S-Sign Quick Install & Config Guide – Salesforce Lightning S-Sign Quick Install & Config Guide – Salesforce Classic User Overview S-Sign User Guide – Salesforce Lightning S-Sign User Guide – Salesforce Classic Creating S-Sign-Enabled Templates for S-Docs Send Multiple Documents in a Single E-Signature Request Using S-Sign in Person Text to Signature S-Sign General Configuration General Solutions Sending Documents to Multiple Signers–Salesforce Lightning S-Sign Features: Validation Rules & Write Data Back to Salesforce Translate The S-Sign UI Void A Contract Before It’s Signed Build Templates With A Dynamic Number Of Signers Input Field Groups Automate S-Sign Requests Configure and Customize S-Sign Field Types S-Sign Signer Profiles S-Sign Template Settings The S-Sign Configuration Page Troubleshooting S-Sign