What you'll see

The PDF that Docs Made Easy generates doesn't match the Word template you uploaded. For example:

  • a different font, so lines wrap and pages break in different places
  • text boxes, shapes or images that moved, overlap or disappeared
  • page numbers that are wrong or missing
  • headers or footers that differ from page to page
  • comments or tracked changes that show up in the PDF
  • tables that run off the page

If the PDF doesn't generate at all, start with the troubleshooting checklist. Both Basic and Pro can generate a PDF from a Word template. If you see "PDF merge is not allowed in this basic version", the solution uses a PDF form template, which needs Pro; see DME-LIC-002.

First, find out where the problem is

  1. On the Composer page, click the arrow next to the download button and choose Word as the format. Generate the same record and open the file.
  2. If the Word output is also wrong, the problem is in the template or the data, not the PDF. See Merge fields are blank or show as {{…}} text and Related-list tables are empty, show one row or repeat.
  3. Open the template in Word and save it as PDF (File → Save As → PDF). If Word's own PDF looks wrong, fix the template in Word first.
  4. If both Word versions look right and only the generated PDF differs, work through the causes below.

Most likely causes

  1. A font in the template isn't available when the PDF is made, so another font replaces it.
  2. Text boxes, shapes or images float over the text instead of sitting in line with it.
  3. Page numbers use Word's own fields or a typed number.
  4. The template still contains tracked changes, comments or hidden content.
  5. Sections differ in orientation, headers or footers.

How to fix it

A font is replaced

Docs Made Easy makes the PDF on its servers, not on your computer, so it can only use the fonts available there. All major fonts are available. A replacement font has different letter widths, which moves line and page breaks.

  1. In the template, use a common font such as Arial, Calibri or Times New Roman for a test.
  2. Generate the PDF again. If the layout now matches, the original font was being replaced.
  3. Keep the common font, or contact support and ask for your font to be added.

Objects float over the text

There are no known Word features that convert to PDF differently. If text boxes, shapes or images still move, a replaced font has usually shifted the text around them.

  1. Right-click each text box, shape or image and choose Wrap Text → In Line with Text.
  2. To place things side by side, use a table with no borders instead of floating text boxes.
  3. Convert SmartArt, charts and WordArt to pictures if they still move.

Page numbers are wrong

  1. Use {{PAGE}} for the current page and {{NUMPAGES}} for the total, for example Page {{PAGE}} of {{NUMPAGES}} in the footer.
  2. Remove any page numbers typed by hand.

See PAGE and NUMPAGES. To force a new page at a fixed point, use PageBreak.

Tracked changes or comments show up

  1. In Word, go to Review and click Accept → Accept All Changes.
  2. Click Delete → Delete All Comments in Document.
  3. Save, upload the template again and generate.

Sections, headers and footers differ

  1. Check each section break in Word (Layout → Breaks) and the orientation of each section.
  2. In Header & Footer, check Different First Page and Link to Previous for each section.
  3. If you built the template in the Template Editor, select Use first page header for all pages and Use first page footer for all pages to repeat them on every page.

Tables run off the page

  1. Set the table's width in Word (Table Properties → Table → Preferred width) to fit the page margins.
  2. Turn on Allow row to break across pages for long rows.

Who can fix it

  • The template author: fonts, layout, page numbers, tracked changes and sections in Word.
  • Your Salesforce administrator: the Convert to PDF? setting (Default PDF) and uploading the corrected template.
  • Docs Made Easy support: a template whose Word output and Word-made PDF look right but whose generated PDF doesn't, and font requests.

Still stuck?

Contact support and send your Org ID (How to share your Org ID), the solution name or ID, the template file, the generated PDF and the generated Word file for the same record, a link to the record, the time with your time zone, and any error message with its Error code and Reference.