Docento.app Logo
Docento.app
Analytics dashboard on a laptop screen
All Posts

How to Convert Excel to PDF Without Wrecking the Layout

April 27, 2026·8 min read

Converting an Excel spreadsheet to PDF should be trivial. In practice, the first try is almost always wrong: columns get cut in half, rows split across pages, header rows do not repeat, and the page count balloons to twenty when you expected three. The conversion mechanics are simple. The setup before the conversion is where the work is. This guide walks through how to convert Excel to PDF properly the first time.

The fundamental issue

A spreadsheet has no inherent page boundaries. It is a grid that extends as far as the data does. A PDF has pages: fixed width, fixed height, fixed margins.

To bridge the two, Excel has to decide:

  • Where to break rows and columns across pages
  • Which rows or columns to repeat as headers
  • Which content to scale to fit
  • What orientation to use
  • What sheets to include and in what order

The default "Save as PDF" guesses at most of these. If the guess is wrong, you get an unreadable result.

Set the print area first

Almost every Excel-to-PDF problem traces back to the print area. Before you convert:

  1. Select the range that should be in the PDF (e.g., A1:H125)
  2. Go to Page Layout → Print Area → Set Print Area

This tells Excel exactly what to include. Cells outside the print area are ignored, no matter how scrolling-friendly they look on screen.

For multi-sheet workbooks, set the print area on each sheet individually.

Set page orientation and size

For wide spreadsheets, switch to landscape: Page Layout → Orientation → Landscape.

Set the right paper size for your audience: Page Layout → Size → Letter / A4. Mismatched paper size is one of the most common reasons content scales weirdly.

Use Page Setup → Fit to Pages

The single highest-leverage setting:

  1. Page Layout → Page Setup → Scaling
  2. Set Fit to: 1 page wide by [blank] pages tall

This shrinks columns to fit the width of one page, while letting the data flow naturally across as many pages tall as needed. For most reports this is the right choice.

If your data is mostly square (similar number of rows and columns), Fit to: 1 page wide by 1 page tall produces a single-page summary. For long lists, leave the height blank.

Repeat header rows

Long tables span pages. By default, only the first page has column headers. Fix this:

  1. Page Layout → Print Titles
  2. Rows to repeat at top: click into your header row(s)
  3. Columns to repeat at left: (for wide tables) optional

Now every page of the PDF shows the column headers. This is invariably what you want for tabular reports.

Margins and centering

Page Layout → Margins → Custom Margins. Set sensible margins (typically 0.5" or 1.27 cm).

In the same dialog, the Margins tab has "Center on page: Horizontally". For narrow tables, this centers them on the page rather than crowding them against the left margin.

Page breaks: manual control

Excel guesses page breaks. For long reports, you may want explicit breaks (e.g., each region on its own page).

  1. View → Page Break Preview
  2. The page boundaries are shown as blue lines
  3. Drag them to reposition, or Page Layout → Breaks → Insert Page Break at the active row/column

Manual page breaks override automatic ones. Useful for ensuring section starts on a fresh page.

Headers, footers, and page numbers

For multi-page PDFs, you almost always want page numbers and a title in the header or footer:

  1. Insert → Header & Footer
  2. Use the header area for the report title, date, or filename
  3. Use the footer area for "Page 1 of 5" using the page-number controls

This is the easiest place to add the report's identity without baking it into a row.

For more on header/footer concepts at the PDF level, see how to add header and footer to PDF.

Which sheets to include

By default, "Save as PDF" exports the active sheet. To include everything:

  1. File → Save As → PDF
  2. Click Options
  3. Publish what: Entire workbook

To include specific sheets, group them first (Ctrl-click their tabs) and then publish, with Active sheet(s) selected.

The conversion itself

After setup:

  1. File → Save As → PDF (.pdf)
  2. Choose a filename and location
  3. Click Options for advanced settings (page range, what to publish)
  4. Click Save

Or in Excel for Mac: File → Save As → Format: PDF.

On macOS you can also File → Print → from the lower-left dropdown choose Save as PDF. This uses macOS's PDF system, which sometimes produces cleaner output than Excel's built-in exporter.

Specific tactics for wide datasets

If you have a spreadsheet with 30 columns, no amount of scaling will make it readable on a portrait letter page. Options:

  • Landscape orientation plus Fit to 1 page wide with height blank. Often enough.
  • Group columns into logical chunks and put each chunk on a separate sheet. Each sheet becomes its own PDF section.
  • Hide unimportant columns before exporting (Right-click column → Hide). Hidden columns are not printed.
  • Use a pivot or summary table that condenses the data to fewer columns for the PDF.

Working with charts and visuals

Embedded charts export as native PDF objects (vector, good!). A few details:

  • Resize charts to fit a single page before exporting. A chart broken across two pages is unreadable.
  • Place each chart on a chart sheet for one-chart-per-page output. Right-click chart → Move chart → New sheet.
  • Verify font rendering. Some custom fonts in Excel charts render differently in the PDF.

Common gotchas

Column widths look fine on screen but cut off in PDF. Excel's screen rendering is more permissive than print. Widen columns and re-export.

Conditional formatting colors look different. PDFs may render the same RGB slightly differently than Excel's screen. For brand-critical color, set custom colors and check the PDF before sharing.

Cell content overflows in PDF but not on screen. The cell on screen overflows into adjacent empty cells; in print, Excel may clip it. Set wrap text on (Right-click cell → Format Cells → Alignment → Wrap text) so content wraps inside the cell.

Tiny font sizes. "Fit to 1 page" scales aggressively if your data is too wide. If the result is unreadable, accept multiple pages instead, or restructure the data.

Hyperlinks not clickable. Excel's PDF export preserves hyperlinks in most cases, but some versions drop them. Verify in the PDF; if missing, re-export through a different path (e.g., macOS Print to PDF).

Comments and notes. By default, comments do not appear in the PDF. To include them: Page Layout → Page Setup → Sheet tab → Comments → "At end of sheet" or "As displayed on sheet".

Alternatives to Excel's built-in export

  • LibreOffice Calc. Opens the .xlsx, supports the same page setup options, exports to PDF. Often produces cleaner PDFs for complex spreadsheets.
  • Google Sheets. File → Download → PDF. Decent for simple sheets, less control than Excel for advanced layouts.
  • CSV → Pandoc → PDF. For data-only outputs (no formatting), csv2pdf or pandoc produces tabular PDFs from CSV.
  • Python (openpyxl + ReportLab). For programmatic, repeatable exports with full layout control.

Post-export touches

Once you have the PDF:

Takeaway

The trick to clean Excel-to-PDF conversion is not the export step, it is page setup. Define the print area, fix the orientation, fit to one page wide, repeat header rows on long tables, and add page numbers. Five minutes of setup eliminates the "why is half the column cut off" problem and produces a PDF that looks like the report you actually meant to share. Once you have a clean PDF, you can also merge it with other reports and annotate or sign it in Docento.app without leaving the browser.

Related Posts