Salesforce PDF contract prints misaligned fields — template DPI checks you can do safely
Steve H.
Reviewed for technical accuracy
Specialities: Salesforce quote/contract PDF output, Visualforce renderAs=pdf behavior, CPQ/Quote Template layout diagnostics, background letterhead DPI & scaling.
Salesforce contract PDF fields shift or don’t line up when printed — why template DPI, page size, and scaling can move merge fields, and what to verify before changing the template
Quick answer: the accepted fix
Accepted first fix for Salesforce PDF contract printing misaligned fields: don’t reposition fields in the template yet. First isolate the pipeline by standardizing one test run: confirm the PDF page size (Letter vs A4), then print the same page from the same viewer (Acrobat vs Edge) using a known sizing option (Actual size vs Fit/Shrink). Compare results across two printers. If the shift changes by printer, it’s likely driver margins/printable area. If it changes by viewer or sizing option, it’s scaling. If alignment depends on a full-page letterhead image, note how that background was created (pixel dimensions/DPI assumptions) before you replace the asset or adjust field coordinates.
Why a CPQ/Salesforce PDF can look aligned on screen but print out shifted
When your template uses a background letterhead image with “lines to match,” printing becomes sensitive to tiny scale differences. PDF viewers and printer drivers may apply “Fit” or “Shrink to printable area” to compensate for non-printable margins, which can move overlayed merge fields relative to the background. In some renderers, images can also be sized using default DPI assumptions unless an explicit width/height is enforced, which is why the same contract PDF can print differently across viewers and printers.
Safe checks before you edit the Salesforce/CPQ template
Start with reversible verification: confirm the document is truly Letter (or A4) end-to-end, then run a controlled print test from one viewer with one sizing option. Compare Acrobat vs Edge/Chrome printing, and compare two printers using the same settings. If the misalignment is consistently down/right, focus on margins and driver shrink behavior. If everything is uniformly smaller or larger, focus on scaling. If only pages with the letterhead image show drift, record the image origin (exported from Word, scanned, re-saved) because pixel dimensions and DPI assumptions can affect how that background maps to physical inches on paper.
Salesforce PDF fields misaligned — quick safety tips
Low-risk checks to identify whether scaling, margins, or template DPI is moving your fields.
Fast path: standardize one test print (same viewer, same sizing, same page), verify Letter vs A4, then compare across two printers. If users are mixing Acrobat and Edge, expect different defaults. If the contract relies on a full-page letterhead image, treat it as a “scale reference” and document how it was produced before adjusting field placement.
Disclaimer: This information is AI-generated and intended for general guidance only. Results vary by Salesforce/CPQ template type, PDF renderer, background assets, PDF viewer, printer driver, and device margins. For exact steps for your environment, consult a verified expert or official documentation.
Getting Started Is Easy
Ask for help, 24/7
Get help diagnosing why your Salesforce/CPQ contract PDF prints with misaligned fields — scaling, margins, viewer differences, and template DPI/letterhead mapping.
Expert will respond in minutes
We’ll narrow it down: Acrobat vs Edge printing, “Fit” vs “Actual size,” printer driver margins, and how background images can shift field alignment.
Save time & stress
Avoid trial-and-error in templates. Use controlled tests to identify whether the drift comes from scaling, margins, or DPI assumptions before moving fields.
FAQ
Why do Salesforce/CPQ contract PDF fields print misaligned even if the PDF looks fine?
Printing can apply scaling (Fit/Shrink) to compensate for non-printable margins. Even a small shrink changes how merge fields align against a background letterhead image, so the PDF can look aligned on screen but shift on paper.
What does template DPI have to do with a letterhead background image?
If your template uses a full-page image as letterhead, the renderer must map pixels to physical inches. Default DPI assumptions (or odd pixel dimensions from a Word-exported image) can make the background scale slightly differently than expected, which makes fields look “off the lines” when printed.
Why is one printer worse than another for the same Salesforce PDF?
Printers differ in non-printable margins and how drivers handle “shrink to printable area.” If the misalignment changes by printer model/driver, it’s often a printable-area or driver scaling difference rather than a single wrong field position in the template.
What should I check first before moving fields in the template?
Standardize one test: confirm Letter vs A4, print from one viewer (Acrobat or Edge) using one sizing option (Actual size vs Fit), and compare across two printers. This helps identify whether the drift is caused by viewer defaults, driver margins, or the background image mapping.
Sources
- Salesforce Help — Issue Details: PDF Quote fields out of alignment
- Salesforce Developers — Visualforce PDF Rendering Considerations and Limitations
- Salesforce Stack Exchange — Scaling images in Visualforce PDFs (DPI assumptions)
- Adobe Acrobat Help — Adjust page size and scaling when printing PDFs
Filed under: General Printer Problems
Related articles
- Photoshop PDF Text Rasterizes
- Secure PDF (bank/tax) won’t print — system dialog & render path
- Stripe payout report prints misaligned — CSV → PDF pipeline (Sheets/Excel fit-to-page)
- Google Sheets grid prints misaligned — scale fit & print area
- Next.js SSR form prints missing input borders — hydration
- CBP EVUS page prints truncated top — browser fit
- Insurance EOB PDF prints cropped CPT codes — border margin
- Premiere frame export prints jagged — TIFF: safe checks before you change settings