Перейти к основному содержимому
WhiskFileWhiskFile
6 мин. чтенияWhiskFile Team

How to Convert Excel to PDF (Keep Formatting Perfect)

Convert Excel spreadsheets to PDF without losing column widths, headers, or page breaks. Multiple methods compared.

Excel to PDF sounds simple. It isn't. I've watched column G get chopped off the right edge of a PDF more times than I can count. Page breaks land in the middle of a data row. The header that repeats on every printed page? Gone in the PDF. Charts shift. Merged cells collapse.

The core problem: Excel is a spreadsheet. It doesn't think in pages. PDF is a fixed-layout format. It only thinks in pages. Converting between them forces a translation that breaks if you don't set it up right.

Here are three methods, ranked by reliability, plus every formatting gotcha I've hit.


Method 1: WhiskFile's Excel to PDF Converter

This is the fastest path if you don't have Excel installed or you're working from a phone or Chromebook.

  1. Open the Excel to PDF converter.
  2. Drop your .xlsx or .xls file. Both formats work.
  3. The converter processes the spreadsheet and generates a PDF.
  4. Download the result.

What I tested: A 12-column financial report with 340 rows, merged header cells, two embedded bar charts, and conditional formatting (red/green fill on cells). The .xlsx file was 2.4 MB.

Results: All 12 columns fit on landscape pages. Charts rendered correctly. Conditional formatting colors came through. The output PDF was 1.8 MB. Processing took about 6 seconds.

One gotcha: If your spreadsheet has multiple sheets, make sure the sheet you want is the active one. Some converters only process the active sheet by default. If you need all sheets, you may need to convert each one separately and then merge the PDFs.


Method 2: Excel's Built-In "Save As PDF"

If you have Excel installed (desktop version, not the web app), this is the most controllable option.

Steps:

  1. Open your spreadsheet in Excel.
  2. Go to File → Save As (or Export → Create PDF/XPS on Windows).
  3. Before you click save, click the Options button. This is the dialog nobody clicks, and it's where all the good settings live.
  4. Choose which sheets to include (Active Sheet, Entire Workbook, or Selection).
  5. Click OK, then Save.

The Options dialog matters. Here's what each setting does:

| Setting | What It Controls | Recommended | |---|---|---| | Page Range | Which pages to export | "All" unless you need a subset | | Publish What | Active sheet vs. entire workbook | Choose deliberately — don't default | | Include Non-Printing Info | Document properties, accessibility tags | Yes for professional documents | | PDF/A Compliance | Archival standard | Yes for long-term storage |

Critical step most people skip: Before exporting, go to Page Layout and configure these:

  • Orientation: Landscape for anything wider than 8 columns. Portrait cuts off data.
  • Scaling: "Fit All Columns on One Page" is your best friend. It shrinks the font slightly but keeps everything visible.
  • Print Area: If you only need rows 1–50, select them and set the print area first. Otherwise Excel exports the entire used range, including that random cell in row 4,000 you accidentally typed in once.
  • Repeat Rows at Top: Under Page Layout → Print Titles, set rows to repeat. This makes your header row appear on every page of the PDF. Without this, page 2 onward is just numbers with no labels.

In my experience, the "Fit All Columns on One Page" scaling option produces the best results for spreadsheets up to about 15 columns. Beyond that, the text gets too small to read and you're better off splitting the data across multiple pages manually.


Method 3: Google Sheets Export

If your spreadsheet lives in Google Drive, you can export directly.

Steps: File → Download → PDF Document.

Google Sheets gives you a preview with options for paper size, orientation, scaling, margins, headers/footers, and which sheets to include. The preview is actually better than Excel's — you can see exactly what each page will look like before committing.

Results from my test: The same 12-column report exported cleanly in landscape. Charts rendered well. However, Google Sheets doesn't support all Excel formatting — conditional formatting with custom formulas sometimes gets lost, and Excel-specific chart types (like waterfall charts) render incorrectly.

File size note: The Google Sheets PDF was 2.1 MB versus 1.8 MB from WhiskFile and 1.6 MB from Excel directly. Not a huge difference, but if you're emailing the PDF and every kilobyte matters, Excel's native export produces the leanest file.


Common Formatting Issues and Fixes

Columns Getting Cut Off

This is the number one problem. Wide spreadsheets overflow the page boundary and columns on the right just disappear.

Fixes:

  • Switch to landscape orientation.
  • Use "Fit All Columns on One Page" scaling.
  • Reduce column widths — do you really need column E to be 40 characters wide?
  • For very wide spreadsheets (20+ columns), consider splitting into two PDFs: columns A–L and columns M–Z. Then merge them if needed.

Page Breaks Landing Mid-Row

Excel's automatic page breaks don't care about your data. They'll slice a row in half.

Fix: Go to View → Page Break Preview in Excel. You'll see blue dashed lines showing where breaks will fall. Drag them to land between logical sections. This is tedious for large spreadsheets, but it prevents the "half a row on page 3" problem.

Multi-Sheet Workbooks

By default, most converters only export the active sheet. If your workbook has a Summary, Detail, and Appendix sheet, you need to explicitly select all three.

In Excel: In the Save As Options dialog, choose "Entire Workbook." In Google Sheets: In the Download as PDF dialog, select "Workbook" instead of "Current Sheet." In WhiskFile: Convert each sheet individually, then use the merge tool to combine them.

Charts and Images Shifting

Embedded charts in Excel are floating objects. During PDF conversion, they can shift position — sometimes overlapping data cells, sometimes jumping to a different page entirely.

Fix: Before converting, right-click each chart → Format Chart Area → Properties → select "Move and size with cells." This anchors the chart to specific cell coordinates so it doesn't drift during export. Also, avoid placing charts in merged cell regions — that's asking for trouble.

Headers and Footers Disappearing

Excel headers/footers (the ones set via Page Layout → Header/Footer) sometimes don't carry over to PDF, especially with third-party converters.

Fix: If headers matter (page numbers, document title, date), set them in Excel's Page Setup before exporting. If the converter strips them, add page numbers to the PDF after conversion instead.


Tips for Financial Reports and Invoices

Financial documents have specific requirements. Here's what I've learned from converting hundreds of them:

  1. Lock print area before converting. Select only the rows and columns that contain actual data. Stray values in distant cells will expand your PDF to include blank pages.
  2. Use number formatting, not font colors, for negative values. Red font on negative numbers doesn't always survive conversion. Parentheses are more reliable: (1,234.56) instead of -1,234.56 in red.
  3. Gridlines matter. Go to Page Layout → check "Print" under Gridlines. Without gridlines, a dense financial table becomes an unreadable wall of numbers.
  4. Keep it under 50 MB. If your Excel file is massive (complex models with thousands of formulas), the resulting PDF can balloon. Run it through compress afterward — I've seen 30 MB financial PDFs drop to 4 MB with no visible quality loss.
  5. Test with a single page first. Export just page 1, check that columns fit and headers repeat. Then export the full document. This saves you from discovering problems on page 47 of a 50-page report.

Бесплатные инструменты, упомянутые в этой статье

Ещё статьи