When you save a Word document containing tables as a PDF, the row heights sometimes shrink or expand unpredictably. This happens because PDF rendering engines interpret table layout constraints differently than Word does. In this article, you will learn why row heights change and how to lock them before exporting.
Key Takeaways: Preventing Row Height Changes in Word Tables Exported to PDF
- Table Properties > Row > Specify height > Exactly: Forces each row to a fixed height that PDF renderers cannot override.
- File > Options > Display > Disable “Optimize character positioning for layout”: Prevents Word from adjusting row heights during PDF export.
- File > Save As > PDF > Options > ISO 19005-1 compliant (PDF/A): Produces a more stable table layout by enforcing strict rendering rules.
Why Word Tables Change Row Heights When Converting to PDF
Word and PDF use different layout engines. Word calculates row height based on content, cell margins, and paragraph spacing. The PDF engine reflows the content when the document is saved, which can reduce or increase row heights. The main technical cause is that Word sets row heights to “At least” by default. This allows the PDF engine to shrink rows if content fits in less space. Another cause is when table cells contain images or large text blocks. The PDF engine may compress or expand the cell to maintain page breaks.
Default Row Height Settings
By default, Word table rows use the “At least” height setting. This tells Word to make the row at least a specific height but allows it to grow if content needs more space. When the PDF engine reads this instruction, it calculates the minimum height based on the actual content size. If the content is smaller than expected, the row shrinks.
Cell Margins and Padding
Each cell has default margins and padding. Word preserves these during editing, but the PDF engine may reset them to its own defaults. This changes how much vertical space the content occupies, which directly affects row height.
Image and Object Scaling
If a table cell contains an image or a shape, Word scales it to fit the cell. The PDF engine may re-scale the object to match its own resolution or aspect ratio rules. This can cause the row to expand or contract unexpectedly.
Steps to Lock Row Heights Before Saving as PDF
Follow these steps to fix row heights and prevent them from changing during PDF export. Apply the settings before you save the document.
- Select the entire table
Click the table handle (the four-headed arrow at the top-left corner of the table) or click inside the table and press Ctrl+A twice. - Open Table Properties
Right-click the selected table and choose Table Properties from the context menu. Alternatively, go to Table Layout > Properties on the ribbon. - Set row height to Exactly
In the Table Properties dialog, click the Row tab. Check the box for Specify height. Enter the desired height in inches or centimeters. In the Row height is dropdown, select Exactly instead of At least. Click OK. - Adjust cell margins to match PDF defaults
In Table Properties, click the Table tab, then click the Options button. Set Top and Bottom cell margins to 0 inches if you want the content to touch the cell borders. This reduces the chance of the PDF engine adding extra space. Click OK twice. - Disable automatic character positioning
Go to File > Options > Display. Under Printing options, uncheck the box for Optimize character positioning for layout. Click OK. This prevents Word from adjusting text spacing for the PDF format. - Save as PDF with PDF/A compliance
Go to File > Save As. Choose PDF from the Save as type list. Click the Options button. In the Options dialog, check the box for ISO 19005-1 compliant (PDF/A). This forces a strict rendering mode that preserves table dimensions. Click OK, then Save.
If Row Heights Still Change After the Main Fix
Even after setting row heights to Exactly, some issues can still cause row height changes. Below are the most common problems and their solutions.
Table Contains Merged Cells With Different Content Heights
Merged cells can confuse the PDF engine. If a merged cell spans multiple rows, the engine may recalculate the height of each sub-row. To fix this, unmerge the cells and set each row height individually. Highlight the merged area, go to Table Layout > Merge Cells > Split Cells, then set row heights as described in the steps above.
Paragraph Spacing Inside Cells Is Not Removed
Even with fixed row heights, paragraph spacing before or after text inside a cell can add extra space. Select all text in the table. Go to Home > Paragraph dialog launcher. Set Before and After spacing to 0 pt. Also set Line spacing to Exactly with a value equal to the font size plus a small amount, such as 12 pt for 10 pt text.
Images Inside Cells Are Not Anchored to the Cell
An image anchored to the paragraph inside a cell may shift during PDF export. Right-click the image and select Size and Position. On the Position tab, set Horizontal and Vertical to From Page and enter 0 for both. This locks the image to the page, but the row height should still be controlled by the fixed row setting. For best results, remove images from cells and place them outside the table.
Word Table Row Height Behavior: Default vs Fixed vs PDF Export
| Item | Default (At least) | Fixed (Exactly) | PDF Export |
|---|---|---|---|
| Row height calculation | Grows with content | Stays at set value | Re-calculates based on content |
| Cell margin influence | Preserved from Word | Preserved from Word | May reset to PDF defaults |
| Image scaling effect | Scales to fit cell | Scales to fit cell | Re-scales independently |
| Paragraph spacing effect | Adds to row height | Ignored if height is smaller | May add space |
| Best use case | Editing and screen viewing | Printing and PDF export | Archival and distribution |
You can now prevent row height changes in Word tables when saving as PDF by setting row heights to Exactly, adjusting cell margins, and using PDF/A compliance. Next time you create a table for distribution, apply these settings before the final export. For even more control, consider using the Print to PDF option in Windows 11, which sometimes produces a more accurate table layout than Word’s built-in PDF exporter.