logo
search
Printing Problems

How to Keep the Excel File Name When Printing to PDF on Mac

Ayan MasoodAyan Masood Oct 10, 2026 868 views

Question details

The user wants to automatically retain the original workbook file name when printing an Excel file to PDF on macOS.

How to Keep the Excel File Name When Printing to PDF on Mac
Product
Microsoft Excel
Device & OS
macOS
Scenario
Converting or printing a spreadsheet to a PDF format without losing the document's original file name in the save dialog.
Observed behavior
When using the standard macOS Print to PDF workflow, the resulting PDF does not inherit the Excel file name because the file name is controlled by the macOS PDF printer driver, not Excel itself.
Before you start

Ensure your Excel workbook is saved to your Mac with your desired file name before attempting to print or export it to a PDF.

Solution 1Recommended

Use the Open in Preview Option

Bypass the default print driver naming behavior by opening the PDF in Mac's Preview application first, which safely retains the workbook's name.

Because the macOS print dialog driver does not pull the source file name directly from Excel during a standard 'Save as PDF' action, routing the file through Mac's Preview app maintains the temporary file name passed by Excel.

1
Open Print Dialog

Press Cmd + P or navigate to File > Print to open the standard macOS print dialog in your Excel workbook.

2
Access PDF Options

Locate the PDF drop-down menu situated at the bottom left corner of the print dialog window.

3
Select Open in Preview

Click the drop-down and choose 'Open in Preview'. Your Mac will generate the PDF and open it in the Preview app using the original Excel file name.

4
Save the Document

Once the document is open in Preview, go to File > Save to securely save the PDF to your Mac without needing to retype the name.

Use the Open in Preview Option
Name Retained Successfully: This method captures the correct document title seamlessly and preserves all your intended print layout formatting.
Seamless PDF Export

Easily Save Spreadsheets as PDFs with Original Names in WPS Office

WPS Office provides a dedicated 'Export to PDF' feature that perfectly preserves your spreadsheet's original file name and layout, avoiding the macOS printer driver naming issues altogether.

  1. 1. Open Spreadsheet: Launch WPS Office and open your desired spreadsheet document.
  2. 2. Access Export Tool: Click on the 'Tools' tab located at the top of the workspace.
  3. 3. Click Export to PDF: Select the 'Export to PDF' button from the toolbar.
  4. 4. Save the File: Confirm your export settings. The original file name is automatically retained; simply click 'Export' to finish.
100% compatible with Microsoft Excel (.xlsx) formatsDedicated one-click PDF export toolLightweight and runs smoothly on macOSFree to use with a familiar, easy-to-navigate interface
microsoft office alternative - wps office

Frequently Asked Questions

Why does the Mac Print to PDF option change my Excel file name to 'Untitled'?

When you use the Mac Print to PDF feature, the file name generation is managed by the macOS print driver, not by Microsoft Excel. The print driver often receives the print job without the original file name string attached, causing it to default to 'Untitled'.

Is there a keyboard shortcut for Export to PDF on Mac?

Unlike Windows, where users can press Alt+F+E+A, macOS does not have a default native keyboard shortcut for Export to PDF in Excel. However, you can create a custom keyboard shortcut for it by going to Apple Menu > System Settings > Keyboard > Keyboard Shortcuts > App Shortcuts.

Will using 'Open in Preview' change my spreadsheet's print formatting?

No, opening the document in Preview utilizes the exact same print layout, scaling, and formatting rules as the standard PDF print option. It simply intercepts the generated PDF so you can save it with the retained file name.