The PDFIMPORT command in AutoCAD is an essential feature for converting PDF drawings into editable DWG files. Whether you are digitizing legacy drawings, modifying customer-provided samples, or repurposing old documentation, this tool efficiently translates geometry based on your specified settings.
However, while the standard PDFIMPORT command handles one page at a time, working with multi-page PDFs can quickly become a repetitive and time-consuming task. Although Autodesk provides methods to handle multi-page imports, the process often requires manual intervention for each individual page. This article introduces a custom AutoLISP program designed to eliminate this bottleneck, automating the import of all pages from a multi-page PDF with a user-friendly interface.
Understanding the Problem with Multi-Page PDFs
AutoCAD’s native PDFIMPORT command is powerful for single-sheet conversions, but it lacks a built-in batch process for multi-page files. Users frequently find themselves repeating the same sequence—selecting the PDF, choosing the page, setting the insertion point, and confirming settings—for every single sheet.
This repetitive workflow is not only tedious but also prone to errors. Manually aligning multiple pages, ensuring consistent scaling, and managing file naming conventions can disrupt productivity. For professionals handling large sets of drawings, this inefficiency highlights the need for a more streamlined solution.
Introducing MPDFIMPORT: A Custom AutoLISP Solution
To address this gap, I developed MPDFIMPORT, a simple yet powerful AutoLISP program that extends the functionality of the PDFIMPORT command. This tool automates the import process by looping through the specified pages of a PDF, applying proper offsets to arrange them neatly within your drawing or saving each page as a separate DWG file.
Note: This is a custom program created to enhance AutoCAD’s usability and is not an official Autodesk tool. It is designed to provide a more streamlined and user-friendly interface for multi-page PDF imports.
Setting Up the Program
Before you can use the MPDFIMPORT command, you need to prepare your AutoCAD environment. If you are new to AutoLISP, it is helpful to familiarize yourself with the basics. Resources like the official AutoLISP documentation and community blogs on customizing the ribbon can provide a solid foundation.
To get started, download the MultiplePDFImport.lsp and MultiplePDFImport.dcl files (attached to the original source). Save these files in a dedicated folder on your computer, for example, C:UsersYourUsernameDocumentsAutoLISP.
Next, you must add this folder to AutoCAD’s Support File Search Paths. This step ensures AutoCAD can locate the necessary files when the program runs, preventing errors related to missing resources.
To add a new path:
- Open AutoCAD and type
OPTIONSin the command line, then press Enter. - In the Options dialog box, navigate to the Files tab.
- Expand the Support File Search Path category.
- Click Add, then click the new empty line.
- Click Browse and navigate to the folder containing your LSP and DCL files.
- Select the folder and click OK.
- Click Apply and OK to save your changes.
Once the path is set, you need to load the AutoLISP program. The APPLOAD command is a common method for manually loading LSP files. For a more automated setup, you can configure AutoCAD to load the program automatically on startup and even integrate it into the ribbon for quick access.
Using the MPDFIMPORT Command
After successfully loading the program, type MPDFIMPORT in the AutoCAD command line and press Enter. You will be prompted to select a PDF file to import.
Once a valid PDF is selected, the Multi PDF Import dialog box appears. This interface offers two primary workflows to handle the imported pages.
Import Options
The dialog presents two distinct methods for managing your PDF pages:
- Option A: Insert all PDF pages into the currently open drawing. This option sequentially imports each specified page and arranges them in the active drawing based on user-defined offsets.
- Option B: Create a new drawing for each page of the PDF. With this option, each page is imported into a new, separate drawing file and saved automatically.
Dialog Box Settings
Both options share a set of common settings that define which pages are imported and their basic properties.
Common Settings:
- Start Page: Defines the first page of the PDF to import (must be a positive integer).
- End Page: Defines the last page to import.
- Specify Insertion Point on Screen: When checked, allows you to manually pick a custom insertion point. If unchecked, the first page imports at coordinates (0,0,0).
- Scale: Sets the scale factor for the imported pages (must be a positive number).
- Angle: Defines the rotation angle for all imported pages.
Option A: Arranging Pages in an Existing Drawing
When you select Option A, the dialog expands to include settings for layout and spacing on the right side, under “Place on Existing Drawing.” These controls allow you to define how the pages are arranged in a grid-like pattern.
Option A Specific Settings:
- Paper Size: A dropdown menu with common paper sizes. Selecting a size automatically updates the Page Height and Page Width fields.
- Metric/Imperial Toggle: Switches between unit systems, updating the available paper sizes accordingly.
- Page Height & Page Width: These fields can be manually edited or automatically populated from the paper size selection. The height determines the vertical offset for new rows, while the width determines the horizontal offset for columns.
- Max Drawings in a Row: Sets the number of pages placed side-by-side before starting a new row below.
- Horizontal Offset: Adds extra horizontal spacing between adjacent pages.
- Vertical Offset: Adds extra vertical spacing between rows of pages.
If you are unsure about the exact dimensions of your PDF pages, you can import a single page using the standard PDFIMPORT command and use the dimension tool to measure its height and width. These values can then be entered manually.
The result is a clean, organized layout of all your imported PDF pages in a single drawing, saving significant time compared to manual placement.
Option B: Creating Separate Drawings for Each Page
Option B is designed for users who need each PDF page as an individual DWG file. When this option is selected, the dialog presents a simplified interface for specifying where the new files should be saved.
Option B Specific Settings:
- File Path: Defines the destination folder for the new DWG files. Ensure the folder is accessible and has write permissions.
With this option, paper size and offset adjustments are not needed, as only one page is imported per drawing. The program follows a simple naming convention: PDFFilename–PageNumber.dwg. For example, a PDF named “FloorPlan.pdf” will generate files like “FloorPlan-Page 1.dwg” and “FloorPlan-Page 2.dwg.”
When using Option B, a warning message appears to notify you that the command will erase the current drawing’s contents. The process involves clearing the active drawing, importing the specified PDF page, and then performing a “Save As” operation to create the new file. The program will overwrite any existing DWG files with duplicate names in the target folder. However, if a file with the same name is already open in AutoCAD, the “Save As” operation will fail. To avoid issues, ensure the destination folder is empty or that no drawings from that folder are currently open.
This workflow is ideal for archiving, sharing individual sheets, or integrating with project management systems that require separate files for each drawing.
Version History and Future Enhancements
The initial release of the MPDFIMPORT program (January 20, 2025) provides essential functionality for automating multi-page PDF imports. Future updates will be driven by user feedback. Potential enhancements could include more sophisticated page arrangement algorithms, support for different PDF import settings per page, and deeper integration with AutoCAD’s sheet set manager.
If you encounter any bugs or have suggestions for new features, please provide your feedback. Community input is invaluable for refining the tool and ensuring it meets the evolving needs of AutoCAD professionals.
Conclusion
The MPDFIMPORT AutoLISP program transforms a repetitive, manual process into a single, automated operation. By offering two distinct workflows—one for consolidating pages into a single drawing and another for creating individual files—it caters to a wide range of professional needs. Whether you are dealing with legacy drawings, contractor submittals, or any other multi-page PDF, this tool is designed to save time, reduce errors, and streamline your AutoCAD workflow.
We encourage you to try the program and see how it can simplify your daily tasks. Your feedback will help make this tool an even more valuable asset for the entire community.

