Message 1 of 11
Importing a PDF using .SendCommand and a path?

Not applicable
08-28-2019
02:40 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have the following code that essentially presses the "PDF import" button:
Sub ImportMultiPDF() 'This opens the MSO file dialog picker to search for a PDF to import. ThisDrawing.SendCommand "-PDFIMPORT" & vbCr & vbCr
'Command to open a PDF at a specific path goes next... End Sub
My goals:
1. Import a pdf given a path to the pdf
2. Repeat above .SendCommand and additional string inputs to insert an entire multi-page PDF document, page by page, at insertion points specified by a constant page scale.
In sum, I want to automate the task of importing a PDF page by page, choose where to insert each page, and how to scale them. Each page takes a minute to complete, and some documents are quite long.
I'm currently stuck on the file path, you have to click on a PDF document after pressing PDF import.