PDF Conversion Issues

How to Prevent Formatting Problems When Combining DOCX and XLSX to PDF

Jason MillerJason Miller Oct 22, 2026 872 views

Question details

The user wants to combine Word (DOCX) and Excel (XLSX) files into a single PDF document without losing the original layout, page counts, or scaling.

How to Prevent Formatting Problems When Combining DOCX and XLSX Files
Product
PDF Tools
Device & OS
not provided
Scenario
Merging different file types, specifically text documents and spreadsheets, into one unified PDF document for sharing or printing.
Observed behavior
Directly combining DOCX and XLSX files often results in changed page counts, incorrect scaling, and broken layouts, especially for the spreadsheet data.
Before you start

Ensure you have access to the original DOCX and XLSX files and review their print preview settings to confirm they look correct before attempting any conversion or merging.

Solution 1Recommended

Convert Files Separately Before Merging

The most reliable way to preserve formatting is to export each file as a PDF individually and then merge the resulting PDF files.

Word documents and Excel spreadsheets use vastly different rendering engines for layout. Word focuses on standard page sizes, while Excel is an infinite grid. By converting each to PDF first, you lock in the formatting native to that specific program.

1
Adjust Excel layout

Open your XLSX file in your spreadsheet program, go to the Page Layout tab, and adjust the print area, margins, scaling, and orientation so the data fits perfectly on the printed page.

2
Export Excel to PDF

Navigate to File, choose Save As or Export, and select PDF format to save the correctly formatted Excel spreadsheet as a standalone PDF file.

3
Check and export Word layout

Open your DOCX file, check the page breaks and margins under Print Preview, then export it as a standalone PDF file.

4
Merge the resulting PDFs

Use a PDF merging tool to combine the two newly created PDF files. Because the layout was already locked during the individual PDF conversions, the final merged document will retain exact formatting.

Convert Files Separately Before Merging
Pro Tip: Always check the 'Print Preview' in Excel before exporting, as this shows exactly how the spreadsheet will render in the PDF.
Comprehensive PDF Tools

Merge Word and Excel Files seamlessly using WPS Office

WPS Office provides built-in tools to export your documents and spreadsheets directly to PDF, along with a powerful PDF toolkit to merge them perfectly without losing your layout.

  1. 1. Open Files in WPS Office: Open your original DOCX and XLSX files using WPS Writer and WPS Spreadsheet.
  2. 2. Export to PDF: Click on 'Menu' and select 'Export to PDF' for both files to create high-quality individual PDF documents.
  3. 3. Access WPS PDF Merge: Open WPS PDF, navigate to the 'Tools' tab on the top ribbon, and click 'Merge PDF'.
  4. 4. Combine the Files: Add your newly created PDFs to the merger tool, drag to arrange their order, and click 'Merge' to create your perfectly formatted final document.
Perfectly preserves Word and Excel layouts during PDF conversionFully compatible with Microsoft Office DOCX and XLSX formatsBuilt-in PDF merger tool combines multiple files in secondsAdvanced print preview and scaling options for spreadsheets
microsoft office alternative - wps office

Frequently Asked Questions

Why does my Excel file get cut off when converted to PDF?

Excel spreadsheets often exceed standard page dimensions. To prevent columns from cutting off, adjust the 'Scaling' in the Page Layout tab to 'Fit Sheet on One Page' or 'Fit All Columns on One Page' before exporting to PDF.

Can I merge DOCX and XLSX files directly without converting to PDF first?

While some online tools offer direct merging, it is highly recommended to convert each file to a PDF natively first. Direct merging tools often guess the layout settings, which leads to broken margins and altered page counts.

How do I keep the page numbers continuous in the merged PDF?

If you need continuous page numbers across the merged document, you should remove page numbers from the original DOCX and XLSX files. After merging the PDFs, use a PDF editor's 'Add Page Numbers' feature to apply a single, continuous numbering sequence.