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 selected pages to PDF with Save As function Export selected pages to PDF using VBA Export selected pages to PDF with Kutools for WordIn Word, you can use its built-in Save As function to export selection as PDF file.
1. Select the contents you want to export as PDF, click File > Save As > Browse.
2. In the Save As dialog, select a folder and name for the new file, choose PDF in the Save as type drop-down list, then click Options.
3. In the Options dialog, check Selection option, click OK to go back to Save As dialog.
4. Click Save.
If you are familiar with macro code, you can try below VBA.
1. Select the contents you want to save as single PDF, press Alt + F11 key to open Microsoft Visual Basic for Applications window.
2. Click Insert > Module, copy and paste below code to the Module script.
VBA: Export selection as PDF
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 key to run the code. In the popping out Browse dialog, choose a folder to place the new file.
4. Click OK, a dialog pops out for you to name the file.
5. Click OK. The new file will be opened automatically after saved successfully.
Note: Your selected pages should be consecutive.
If you want to export selected pages to PDF or other file types, you can use the Export Range to File utility of Kutools for Word.
After installing Kutools for Word, please do as below:
1. Select the contents, click Kutools Plus > Export/Import > Export Range to File.
2. In the Export Range to File dialog, select a folder to save the pdf file in Save path section, then check PDF file or other type of file you need in File Type section, in File Options section, check the option as you need.
3. Click Ok. Name the pdf file in the popping up Kutools for Word dialog.
Then the selection has been exported as new PDF file.
Tip: the file will be automatically opened if you check the Open the file after exporting checkbox.
๐งน 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.
the Word Ribbon" width="2731" height="131" />