Skip to main content

How to export selected pages to pdf in Word document?

Author: Sun Last Modified: 2023-10-18

As we known, the Word document can be saved as a PDF file. But in some cases, you may just want to export selected pages as PDF file, how can you do? In this article, I introduce some methods can solve this problem.

Export selected pages to pdf by Save As function

Export selected pages to pdf by VBA

Export selected pages to pdf by Kutools for Word


Export selected pages to pdf by Save As function

In 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.
doc export selected page to pdf 1

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.
doc export selected page to pdf 2

3. In the Options dialog, check Selection option, click OK to go back to Save As dialog.
doc export selected page to pdf 3

4. Click Save.

Kutools for Word: The Ultimate Writing Toolkit with 100+ Features!

🤖 Kutools AI Assistant: Generate Content  /  Rewrite Text  /  Summarize Documents  /  Inquire for Information based on Document...

📃 Document Integration: Split Pages  /  Merge Documents  /  Export Range 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...

❌ Cleaning ToolsRemove Extra Spaces  /  Section Breaks  /  All Headers  /  Text Boxes  /  For more removing tools, head to the Remove Group...

➕ Creative Inserts: Insert Thousand Separators  /  Check Boxes  /  Radio Buttons  /  QR Code  /  Barcode  /  Discover more in the Insert Group...

⭐ Star Enhancements: Navigate swiftly to any location  /  auto-insert text  /  seamlessly toggle between document windows  /  Explore All Features...

Elevate your Word experience today! 👉 Download for free and enjoy a 60-day trial period 👈


Export selected pages to pdf by VBA

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 dialog, choose a folder to place the new file.
doc export selected page to pdf 4

4. Click OK, a dialog pops out for you to name the file.
doc export selected page to pdf 5

5. Click OK. The new file will be opened automatically after saved successfully.

Note: Your selected pages should be consecutive.


Export selected pages to pdf by Kutools for Word

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:(Free Download Kutools for Word Now!)

1. Select the contents, click Kutools Plus > Export/Import > Export Range to File.
doc export selected page to pdf 6

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.
doc export selected page to pdf 7

3. Click Ok. Name the pdf file in the popping up Kutools for Word dialog.
doc export selected page to pdf 8

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.


 

Best Office Productivity Tools

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

🤖 Kutools AI Assistant: Transform your writing with AI - Generate Content  /  Rewrite Text  /  Summarize Documents  /  Inquire for Information based on Document, all within Word

📘 Document Mastery: Split Pages  /  Merge Documents  /  Export Selection in Various Formats (PDF/TXT/DOC/HTML...)  /  Batch Convert to PDF  /  Export Pages as Images  /  Print Multiple Files at once...

✏ 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  /  All Headers  /  Text Boxes  /  Hyperlinks  /  For more removing tools, head to the Remove group...

➕ Creative Inserts: Insert Thousand Separators  /  Check Boxes  /  Radio Buttons  /  QR Code  /  Barcode  /  Diagonal Line Table  /  Equation Caption  /  Image Caption  /  Table Caption  /  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...

👉 Want to try these features? Kutools for Word offers a 60-day free trial, with no limitations! 🚀
Free Download     Read More     Buy Now
 

Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed interfaces for editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio, and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
ot word bottom ad 100
Read More       Free Download      Purchase
 
Comments (0)
No ratings yet. Be the first to rate!
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
Rate this post:
0   Characters
Suggested Locations