Technician helping diagnose Salesforce PDF contract printing alignment issues

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

Technician avatar Technician
Hey — when a Salesforce PDF contract prints with misaligned fields (text shifted off lines, signature blocks drifting, address/terms not lining up), it’s rarely “random.” It’s usually a mismatch between the template’s assumed scale (page size + margins + DPI assumptions for images) and the print pipeline (PDF viewer scaling, printer driver margins, or the renderer used to generate the PDF).

Before touching the template, I want to narrow down where the misalignment begins:
• Is it already misaligned in the PDF file when you open it on screen, or only after you print to paper?
• How is the contract PDF generated? Quote/Contract “Create PDF” (template), Salesforce CPQ quote document, Visualforce renderAs="pdf", or a document-generation app?
• What type of misalignment? consistent shift (always down/right), scaling (everything slightly smaller), or only certain sections (tables, signature lines, checkbox blocks)?
• Paper standard: are you on A4 or Letter in your org/workstations?
Customer
The PDF looks mostly fine on screen, but when we print it, the fields don’t line up with the letterhead and the signature line is off. It’s a contract PDF we generate from Salesforce. We use a template with a background image.
Technician avatar Technician
Great detail: background image letterhead + “looks fine on screen” but prints off points to print scaling or printer margins — and sometimes to how that background image was prepared (DPI and exact pixel-to-inch mapping).

Let’s do safe checks first (no template edits):
1) Is the misalignment the same on every printer? (office printer vs home vs “print to PDF”)
2) What PDF viewer are you printing from? Adobe Acrobat/Reader, Edge built-in PDF viewer, Chrome, macOS Preview, etc.
3) In the print dialog, is it set to “Actual size / 100%” or “Fit / Shrink to printable area”?

The reason I ask: even a tiny scaling change (like 97–99%) can make “fields don’t line up” obvious on a letterhead-style contract.
Customer
It varies by printer. One printer is worse. We print from Adobe Reader mostly. People sometimes click “Fit” because otherwise the bottom is close to the edge. We’re in the US, so Letter.
Technician avatar Technician
That explains the “sometimes it lines up, sometimes it doesn’t.” If some users print at Fit while others use Actual size, the overlay relationship between text fields and the letterhead/background changes.

Two important concepts (still diagnostic, not “go change everything”):
• Printer non-printable margins: some printers can’t print to the physical edge. “Fit to page” compensates by shrinking — which shifts anything that must align perfectly.
• Template DPI assumptions: if the letterhead is an image, the renderer converts pixels to inches using an assumed DPI. If the template was built expecting one DPI mapping and the output/print path effectively uses another, alignment drifts.

Quick questions so we don’t guess the wrong system:
1) What template type is it? A standard Salesforce quote/contract template, Salesforce CPQ quote template, or Visualforce PDF? (Even “we use CPQ” vs “standard quotes” helps.)
2) Is the letterhead/background image a full-page image (like a scanned contract) or just a header/footer graphic?
Customer
It’s Salesforce CPQ. Quote template generates the PDF that becomes the contract. The background is basically a full-page letterhead with lines. We placed fields to line up with those lines.
Technician avatar Technician
Got it — CPQ quote documents with a “lined” background are the classic place where small scale differences become obvious.

Here’s a safe way to isolate the cause without rewriting the template right away:

A) Determine if the PDF itself is truly “perfect.”
If you zoom the PDF to 100% and then to “fit width,” do the fields appear to drift relative to the lines? (If the drift is only noticeable at certain zoom levels, it suggests a viewer rendering difference — not the underlying PDF coordinates.)

B) Standardize one test print setting.
For troubleshooting only, have one person print one page using the same viewer and the same print sizing each time (e.g., Acrobat + Actual size, or Acrobat + Fit). If the output changes between printers under identical settings, it points to printer driver margins.

C) Confirm the page size is unambiguous.
Since you’re on Letter: verify the PDF page size is actually Letter (8.5×11) and not A4, “Custom,” or a slightly different size. A subtle mismatch can trigger automatic scaling in some drivers.

Related phrases people search for this include: Salesforce CPQ PDF alignment, quote template fields shifted, PDF prints smaller, template DPI letterhead, and Acrobat fit to page misalignment.
Customer
The PDF page size says Letter. On screen it looks aligned, but printed it’s slightly lower and to the right. If we use “Fit” it gets worse. One printer seems to shrink more than the other.
Technician avatar Technician
“Slightly lower and to the right” is a strong signal for printable area / margin compensation rather than the Salesforce PDF generation shifting coordinates. Printers differ a lot in how they report non-printable margins to Windows/macOS drivers.

Without changing your CPQ quote template, you can safely confirm the theory with two checks:

1) Print to a PDF driver (like “Microsoft Print to PDF”) using the same sizing option you used for the physical print. If the “printed-to-PDF” result stays aligned while the paper print drifts, it’s a printer/driver margin issue. If the “printed-to-PDF” also drifts relative to the background, it’s a viewer scaling issue.

2) Try a different viewer with the same printer and same sizing (Acrobat vs Edge/Chrome). Some built-in PDF viewers handle “shrink to printable area” differently, which can change alignment against a background image.

One more question that ties into template DPI: do you know how the background letterhead was created — exported from Word/InDesign, scanned, or generated from a PDF? (Scanned images and re-exported PDFs are more likely to have pixel-to-inch mapping surprises.)
Customer
It was originally a Word doc that got exported, then someone turned it into an image and uploaded it as a static resource. Not sure about DPI. Also, some users print from Edge instead of Acrobat.
Technician avatar Technician
That mix (Word → exported → converted to image + different viewers) is exactly where alignment issues show up.

Here’s the safe diagnostic logic I’d use before anyone “moves fields” in the template:

• Standardize the print path for one test. Pick one viewer (Acrobat) and one setting (Actual size or Fit) and test on two printers. This tells you if the drift is driver-specific.

• Watch for hidden scaling. Edge/Chrome PDF print often defaults differently than Acrobat. If one path silently applies “Fit,” you’ll see the signature line drift more on that path.

• Treat the background image as a scale reference. If the letterhead is an image, the effective DPI mapping matters. Some PDF renderers assume a default DPI when determining intrinsic image size unless width/height is explicitly constrained. If the background image was produced at an odd pixel dimension (not matching Letter at a clean DPI), small conversions can show up as “fields off the lines.”

Practical question: do you need the contract to align on any printer, or is it mainly for PDF signing/sharing where the “printed paper overlay” isn’t required?
Customer
Mostly for printing and signing on paper, so the fields need to line up with the lines. But we also email the PDF. We can standardize one printer, but people still print from different machines.
Technician avatar Technician
That’s the tricky part: “must align on paper across different printers” is harder than “looks right as a PDF,” because each printer has its own printable area and driver behavior.

So the goal of the first round of troubleshooting is not “move fields until it looks right on one printer,” but to identify which factor dominates:
• Viewer scaling (Acrobat vs Edge)
• Printer margins/driver shrink
• Template DPI / background image mapping

If you document just these three things for a single failing print, you’ll avoid a lot of trial-and-error:
1) Viewer + setting: Acrobat/Edge and whether it was Actual size / Fit / Shrink to printable area.
2) Printer model + driver: same model can behave differently with “universal” vs vendor drivers.
3) Symptom direction: consistent down/right shift suggests margins; uniform “slightly smaller” suggests scaling; only background/only text shifting suggests template/image sizing assumptions.

Once you have that, you can decide whether the safest path is standardizing print settings, adjusting the background asset to a known scale, or revisiting how the template positions fields — but you won’t be guessing.

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

Matt Verified Icon
Matt ● replies in < 1 min
Technician Expert
⭐⭐⭐⭐⭐ Trusted by 27,000+ customers
Avatar
Alex · Expert's Assistant