Skip to main content

How to export selected pages of a Word document to PDF?

Author: Sun Last Modified: 2024-12-26

While it's common knowledge that a Word document can be saved as a PDF file, there are times when you might only need to export selected pages rather than the entire document. Whether you're sharing specific sections or creating focused PDFs, knowing how to export only the selected content can be very useful.

In this article, we introduce several methods to help you export selected pages of a Word document to a PDF file:


Export a Selection of a Word Document to PDF with Save As function

In Word, you can use the built-in Save As function to export a selection as a PDF file. Follow these steps:

  1. Select the content you want to export as a PDF, then click File > Save As > Browse.

    File menu with Save As option selected, followed by Browse option highlighted

  2. In the Save As dialog, choose a folder and enter a name for the new file. From the Save as type dropdown list, select PDF, then click Options.

    Save As dialog

  3. In the Options dialog, check the Selection option, then click OK.

    Options dialog

  4. Now, we are back to the Save As dialog, click Save to export the selected content as a PDF.

Export a Selection of a Word Document to PDF with Kutools for Word

If you want to Export a Selection of a Word Document to PDF or other file types, the Export Range to File utility in Kutools for Word makes the process simple and efficient.

Kutools for Word, equipped with AI πŸ€–, offers over 100 handy features to simplify your tasks.
  1. Select the content you want to export, then click Kutools Plus > More > Export Range to File.

    Export Range to File option on the Kutools Plus tab on the ribbon

  2. In the Export Range to File dialog:
    1. Select a folder to save the PDF file in the Save path section.
    2. Choose PDF file or another desired file type in the File Type section.
    3. In the File Options section, select the desired option according to your needs.
    4. Click OK.

      Export Range to File dialog

  3. In the pop-up dialog, name the PDF file and confirm.

    Dialog with input box to enter a name for the PDF file

The selected content will then be exported as a new PDF file.

Tip: If you check the Open the file after exporting checkbox, the file will open automatically after export.
Kutools for Word is the ultimate Word add-in that streamlines your work and boosts your document processing skills. Get It Now!

Export a Selection of a Word Document to PDF using VBA

If you are familiar with macro code, you can try the VBA code below.

Note: When using VBA, ensure that the selected pages are consecutive, as this method does not support merging non-consecutive pages into a single PDF.

  1. Select the content you want to save as a single PDF, then press Alt + F11 to open the Microsoft Visual Basic for Applications window.
  2. Click Insert > Module, and copy and paste the following code into the Module window.
    Sub SavePartsOfDocumentToPDF()
    'UpdatebyExtendoffice20181115
        Dim xFolder As Variant
        Dim xDlg As FileDialog
        Dim xFileName As String
        Set xDlg = Application.FileDialog(msoFileDialogFolderPicker)
        If xDlg.Show <> -1 Then Exit Sub
        xFolder = xDlg.SelectedItems(1)
        xFileName = InputBox("Enter file name here:", "KuTools for Word")
        Selection.ExportAsFixedFormat xFolder & "\" & xFileName, wdExportFormatPDF, _
                    True, wdExportOptimizeForPrint, False, wdExportDocumentContent, True, True, wdExportCreateNoBookmarks, _
                    True, True, False
    End Sub
  3. Press F5 to run the code. In the popping up Browse dialog, choose a folder to place the new file.
    Browse dialog
  4. Click OK, and a dialog pops up asking you to name the file.
    Dialog with input box to enter a name for the PDF file
  5. Click OK, and the new file will be automatically opened after saving successfully.


Demo: Export a Selection of a Word Document to PDF using Save As option and Kutools for Word

Discover the Kutools / Kutools Plus tab in this video from Kutools for Word. Enjoy 100+ features and permanently free AI utilities. Download now!

Best Office Productivity Tools

Kutools for Word - Elevate Your Word Experience with Over 100 Remarkable Features!

πŸ€– Kutools AI Features: AI Assistant / Real-Time Assistant / Super Polish (Preserve Format) / Super Translate (Preserve Format) / AI Redaction / AI Proofread...

πŸ“˜ Document Mastery: Split Pages / Merge Documents / Export Selection in Various Formats (PDF/TXT/DOC/HTML...) / Batch Convert to PDF...

✏ Contents Editing: Batch Find and Replace across Multiple Files / Resize All Pictures / Transpose Table Rows and Columns / Convert Table to Text...

🧹 Effortless Clean: Sweap away Extra Spaces / Section Breaks / Text Boxes / Hyperlinks / For more removing tools, head to the Remove group...

βž• Creative Inserts: Insert Thousand Separators / Check Boxes / Radio Buttons / QR Code / Barcode / Multiple Pictures / Discover more in the Insert group...

πŸ” Precision Selections: Pinpoint Specific Pages / Tables / Shapes / Heading Paragraphs / Enhance navigation with more Select features...

⭐ Star Enhancements: Navigate to Any Location / Auto-Insert Repetitive Text / Toggle Between Document Windows / 11 Conversion Tools...

🌍 Supports 40+ Languages: Use Kutools in your preferred language – supports English, Spanish, German, French, Chinese, and 40+ others!

Kutools and Kutools Plus tabs on the Word RibbonKutools and Kutools Plus tabs on the Word Ribbon
πŸ‘‰ Want to try these features? Download Kutools for Word now! πŸš€
 

Best Office Productivity Tools

Kutools for Word - 100+ Tools for Word