When you export a PowerPoint presentation to PDF, the default behavior includes every slide in the file, including slides you have hidden. This can result in a PDF that contains slides you did not intend to share, such as backup content, speaker notes slides, or alternative versions of a slide. The cause is that PowerPoint’s export engine treats hidden slides as part of the presentation unless you explicitly change one setting before exporting. This article explains exactly which option to disable and provides step-by-step instructions to ensure your PDF contains only the visible slides.
Key Takeaways: Excluding Hidden Slides During PDF Export
- File > Save As > PDF > Options > Publish what: Slides: Changes the export scope from the default “All slides” to only visible slides.
- File > Export > Create PDF/XPS > Options > Publish what: Slides: Alternative path that opens the same Options dialog for granular control.
- Slide Sorter view > Right-click a hidden slide > Hide Slide: Confirms which slides are hidden before you export; hidden slides appear with a diagonal line through the slide number.
Why PowerPoint Exports Hidden Slides to PDF
PowerPoint does not treat hidden slides as deleted or excluded content. A hidden slide remains part of the presentation file and is included in all export operations unless you specifically tell PowerPoint to omit it. The default setting in the PDF export Options dialog is Publish what: All slides. This setting exports every slide in the file regardless of its visibility status. The same behavior applies to the Create PDF/XPS command under the File > Export menu. Users who rely on hidden slides for backup data, alternative layouts, or speaker-only notes often discover this issue only after opening the generated PDF.
Steps to Exclude Hidden Slides When Exporting to PDF
Method 1: Using File > Save As
- Open your presentation in PowerPoint
Ensure you are working on the correct file that contains hidden slides you want to exclude. - Go to File > Save As
Choose a location on your computer or OneDrive. The Save As dialog opens. - Select PDF as the file type
In the Save as type dropdown, choose PDF (pdf). - Click the Options button
This button is located in the lower-right area of the Save As dialog, near the Tools dropdown. - Change the Publish what setting
In the Options dialog, locate the Publish what section. Click the dropdown and select Slides instead of All slides. This tells PowerPoint to export only visible slides. - Click OK and then Save
Close the Options dialog and click Save. PowerPoint generates a PDF containing only the slides that are not hidden.
Method 2: Using File > Export > Create PDF/XPS
- Open your presentation
Make sure you are in the Normal view or Slide Sorter view to verify which slides are hidden. - Click File > Export > Create PDF/XPS
The Publish as PDF or XPS dialog opens. - Click the Options button
This button is in the lower-right corner of the dialog. - Select Slides under Publish what
Change the dropdown from All slides to Slides. You can also type a specific slide range if needed, but choosing Slides alone excludes all hidden slides. - Click OK and then Publish
PowerPoint creates the PDF with only the visible slides.
Method 3: Unhide Slides Before Exporting
If you prefer not to change the export settings each time, you can temporarily unhide all slides before exporting. This approach works when you want the PDF to contain every slide but do not want to change the default export option.
- Switch to Slide Sorter view
Click the View tab on the ribbon and select Slide Sorter. Hidden slides appear with a diagonal line through the slide number. - Select all hidden slides
Hold Ctrl and click each hidden slide, or press Ctrl+A to select all slides and then hold Ctrl while clicking visible slides to deselect them. - Right-click any selected hidden slide and choose Hide Slide
This toggles the hidden state back to visible. The diagonal line disappears. - Export to PDF normally
Use File > Save As or File > Export. Since no slides are hidden, the default All slides setting exports the entire set.
What to Do If Hidden Slides Still Appear in the PDF
You selected Slides but the PDF still contains hidden slides
This usually happens when you selected the wrong option or clicked Save before changing the dropdown. Return to the Save As or Export dialog, click Options, and confirm that Publish what is set to Slides and not All slides. Also verify that you did not accidentally type a range that includes hidden slides. If you typed 1-10 and slides 4 and 7 are hidden, they will still appear because the range overrides the visibility filter.
The Options button is grayed out
This occurs when you are using the Print dialog to create a PDF instead of the Save As or Export command. The Print dialog does not offer the Publish what setting. Always use File > Save As or File > Export > Create PDF/XPS to access the Options button.
You want to exclude hidden slides from all future exports
PowerPoint does not save the Publish what setting as a permanent default. You must change it each time you export. To save time, create a macro that sets the option automatically, or use the Unhide all slides method before exporting if you rarely keep slides hidden.
| Item | File > Save As | File > Export > Create PDF/XPS |
|---|---|---|
| Access path | File > Save As > PDF > Options | File > Export > Create PDF/XPS > Options |
| Publish what dropdown | All slides, Slides, Custom range | All slides, Slides, Custom range |
| Default setting | All slides | All slides |
| Setting persists | No | No |
| Additional options | Include hidden slides checkbox not present | Include hidden slides checkbox not present |
Both methods produce identical results. The only difference is the menu path. Choose the one that fits your workflow. The Options button in both dialogs contains the same Publish what setting.
You can now export your PowerPoint presentations to PDF with confidence that hidden slides will not appear. Before each export, open the Options dialog and set Publish what to Slides. For presentations where you frequently hide and unhide slides, consider using the Slide Sorter view to verify which slides are hidden before you export. An advanced tip: if you use PowerPoint on Windows, you can press Alt+F, then S, then A to open the Save As dialog quickly, then press Alt+O to reach the Options button without using the mouse.