How to Fix Blank Space in Word PDF Export Caused by Google Docs Line Numbers
Question details
The user needs to remove a large blank space that appears before line numbers when a document downloaded from Google Docs is exported to PDF using Microsoft Word.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- Exporting a downloaded Google Docs file with line numbers to PDF using Word.
- Observed behavior
- The document's layout looks correct in Microsoft Word, but exporting it to PDF unexpectedly generates a large blank area in front of the line numbers.
Ensure you have access to the original Google Docs file online, as bypassing the Word conversion entirely is often the fastest way to resolve cross-platform layout glitches.
Generate the PDF Directly from Google Docs
Bypass Microsoft Word completely to prevent DOCX-to-PDF formatting incompatibilities and preserve the original line numbers.
Since the formatting incompatibility happens when Microsoft Word processes the downloaded Google Docs file during the PDF creation, rendering the PDF natively in Google Docs will usually retain the exact intended layout.
Navigate to Google Docs in your web browser and open the original file that contains the correct line numbers.
Click on 'File' in the top menu, hover over 'Download', and select 'PDF Document (.pdf)' from the dropdown list.
Open the downloaded PDF file on your computer to ensure the blank space issue before the line numbers is resolved.

Reset Line Numbers and Margins in Microsoft Word
If you must use Microsoft Word to edit and export the file, resetting the line numbers natively in Word fixes the imported layout bug.
Use WPS Office to Export Documents to PDF
Avoid formatting conflicts and unexpected blank spaces by using WPS Office. It provides high compatibility with both Google Docs exports and Microsoft Word formats, allowing you to edit line numbers and export natively to PDF without layout glitches.
- 1. Open your file in WPS Writer: Launch WPS Office and open your downloaded DOCX document in WPS Writer.
- 2. Review layout formatting: Navigate to the 'Page Layout' tab to review and adjust your line numbers and margins if necessary.
- 3. Export to PDF: Click on the 'Menu' button in the top left corner and select 'Export to PDF'.
- 4. Save the file: Choose your desired save location, verify the export settings, and click 'Export' to generate a perfectly formatted PDF.

Frequently Asked Questions
Why does a DOCX from Google Docs change layout in Microsoft Word?
Google Docs and Microsoft Word use different rendering engines. While they are highly compatible for basic text, complex formatting properties like line numbers, section breaks, and custom margins can sometimes translate incorrectly during the export and import process.
Can I preview the PDF layout before saving in Word?
Yes. In Word, you can go to 'File' and select 'Print'. The Print Preview displayed on the screen usually gives you an accurate representation of how the document will look once exported or printed as a PDF.
Does WPS Office handle line numbers differently than Microsoft Word?
WPS Office is designed to maintain high compatibility with standard DOCX formatting while offering a streamlined PDF export engine. It often parses cross-platform layout elements more cleanly, which can help bypass specific visual glitches found when migrating from Google Docs to Microsoft Word.




