This article explains why font sizes in document templates appear different between the rich text editor and the final generated Word or PDF documents in Salesforce Public Sector Solutions (PSS) Document Generation (DocGen).
Administrators and template authors building document templates may notice that text styled in the rich text editor renders at a visually different size in the exported document. This affects both Client-Side and Server-Side DocGen workflows.
The root cause is a unit mismatch: the rich text editor measures font size in pixels (px), while generated Word and PDF documents use points (pt). These are not equivalent units, so a font size that looks correct in the editor will appear larger or smaller in the final output.
Salesforce Public Sector Solutions DocGen converts font sizes from pixels (px) in the rich text editor to points (pt) in the generated Word or PDF document. Because 1 pt equals approximately 1.333 px, a font set to 16px in the editor will render as 12pt in the output document.
To resolve the font size discrepancy, follow these steps:
- 10px → 7.5pt
- 12px → 9pt
- 16px → 12pt
- 21px → 16pt
- 24px → 18pt
- 32px → 24pt
Using the Document Font setting on the OmniScript (Step 1) is the recommended approach for consistent results across all text in the document.
003876385

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.