Message 1 of 7
How to Merge Multiple PDFs After Plotting in AutoCAD?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi everyone,
I often need to plot multiple DWG files to individual PDF files using AutoCAD. After plotting, I want to combine these PDFs into a single PDF document.
Does AutoCAD provide any built-in library or feature to merge PDFs directly? Alternatively, is there a way to achieve this using VBA?
For example, I'm thinking of a VBA function like this:
Public Sub MergePDFs(inputFiles As Collection, outputFileName As String)
' Code to merge PDF files
End Sub
Sub TestMergePDFs()
Dim inputFiles As Collection
Dim outputFileName As String
' Initialize the collection
Set inputFiles = New Collection
' Add input PDF files to the collection
inputFiles.Add "C:\Path\To\File1.pdf"
inputFiles.Add "C:\Path\To\File2.pdf"
inputFiles.Add "C:\Path\To\File3.pdf"
' Specify the output PDF file name
outputFileName = "C:\Path\To\MergedOutput.pdf"
' Call the MergePDFs function
MergePDFs inputFiles, outputFileName
End Sub
Public Sub MergePDFs(inputFiles As Collection, outputFileName As String)
' Code to merge PDF files
End SubIf anyone has experience with this or can share some sample VBA code or tools to handle this, I'd really appreciate it!
Thanks in advance for your help!