Skip to main content

Kutools for Office — One Suite. Five Tools. Get More Done.

How to split a Word document and save as separate PDF files?

Author Sun Last modified

While it's straightforward to save a whole Word document as a single PDF file, there are times when you might need to split the document and save each page or section as separate PDF files.

In this article, we will introduce methods to quickly split a Word document and save the pages as separate PDF files:

Split a Word document and save as separate PDF files with VBA

Split a Word document by pages/heading1/ break and save as PDF using Kutools


Split a Word document and save as separate PDF files with VBA

If you need to split a Word document and save each page as a separate PDF, this VBA code provides a quick and efficient way to do so.

  1. Press Alt + F11 to open the "Microsoft Visual Basic for Applications" window.
  2. Click "Insert" > "Module", then copy and paste the code below into the module window:
    Sub SaveAsSeparatePDFs()
    'UpdatebyExtendoffice20181120
        Dim I As Long
        Dim xDlg As FileDialog
        Dim xFolder As Variant
        Dim xStart, xEnd As Integer
        On Error GoTo lbl
        Set xDlg = Application.FileDialog(msoFileDialogFolderPicker)
        If xDlg.Show <> -1 Then Exit Sub
        xFolder = xDlg.SelectedItems(1)
        xStart = CInt(InputBox("Start Page", "KuTools for Word"))
        xEnd = CInt(InputBox("End Page:", "KuTools for Word"))
        If xStart <= xEnd Then
            For I = xStart To xEnd
                ActiveDocument.ExportAsFixedFormat OutputFileName:= _
                    xFolder & "\Page_" & I & ".pdf", ExportFormat:=wdExportFormatPDF, _
                    OpenAfterExport:=False, OptimizeFor:=wdExportOptimizeForPrint, Range:= _
                    wdExportFromTo, From:=I, To:=I, Item:=wdExportDocumentContent, _
                    IncludeDocProps:=False, KeepIRM:=False, CreateBookmarks:= _
                    wdExportCreateHeadingBookmarks, DocStructureTags:=True, _
                    BitmapMissingFonts:=False, UseISO19005_1:=False
            Next
        End If
        Exit Sub
    lbl:
        MsgBox "Enter a valid page number", vbInformation, "KuTools for Word"
    End Sub
  3. Press F5 to run the code. A "Browse" window will pop up. Select a folder to save the PDF files.
    Browse window
  4. Click "OK", then enter the starting page number and ending page number of the document. Tip: You can split just a portion of the document by entering a specific page range instead of the entire document.
    Dialog with text box to enter start page number Dialog with text box to enter last page number
  5. Click "OK". The selected pages will now be saved as separate PDF files in the folder you chose.
    Pages are saved as separate PDF files in the selected folder

Split a Word document by pages/Heading 1/break and save as PDF using Kutools

If you are not familiar with VBA code, you can use an add-in tool – "Kutools for Word". Its "Split" feature allows you to split a Word document into smaller files based on page breaks, page numbers, Heading 1, section breaks, every nth page, or custom page numbers. After splitting, you can use the "Document Format Converter" to batch convert the split Word documents to PDF files.

Kutools for Word, equipped with AI 🤖, offers over 100 handy features to simplify your tasks.

Step 1: Split the document

  1. Open the Word document that you want to split and click "Kutools Plus" > "Split".
    Split button on the Kutools Plus tab on the ribbon
  2. In the "Split Document" dialog, select the split rule in the "Split by" section. Then, specify the saving location and file prefix. Click "OK".
    Split Document dialog
    Tip: The "Split by" section offers six splitting options. For details, see the feature tutorial.
    Split by section in the Split Document dialog

The split documents are now saved in the specified location.

Document is split and saved in the specified location

Step 2: Batch convert the split Word documents to PDF files

  1. After splitting the document, click "Kutools Plus" > "Doc/Docx".
    Doc/Docx button on the Kutools tab on the ribbon
  2. In the "Document Format Converter" dialog:
    1. Select "Convert Docx to PDF" from the "Format Converter" drop-down list.
    2. Click the plus sign to add files or folders containing the documents you want to convert to PDF.
    3. Adjust other settings as needed (by default, the PDF files are saved in the source folder, but you can change this).
    4. Click "OK" to start the conversion.
      Document Format Converter dialog

The Word documents are now converted to PDF files.

Documents are converted to PDF files
Kutools for Word is the ultimate Word add-in that streamlines your work and boosts your document processing skills. Get It 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! 🚀
 

✨ Kutools for Office – One Installation, Five Powerful Tools!

Includes Office Tab Pro · Kutools for Excel · Kutools for Outlook · Kutools for Word · Kutools for PowerPoint

📦 Get all 5 tools in one suite | 🔗 Seamless integration with Microsoft Office | ⚡ Save time and boost productivity instantly

Best Office Productivity Tools

Kutools for Word - 100+ Tools for Word