我曾尝试用Bluebeam在**Excel中以编程方式将两个PDF合并合并。但我面临的问题是“ActiveX组件无法创建对象”。
Dim BluebeamApp As Object
Dim PDFDocument As Object
Dim PDFPath1 As String
Dim PDFPath2 As String
' Define the paths to the PDF files you want to combine
PDFPath1 = "D:\Keylock\keylayout1.pdf"
PDFPath2 = "D:\Keylock\keylayout1.pdf"
' Create a Bluebeam Application object
Set BluebeamApp = CreateObject("RevuLauncher.Application")
' Create a new PDFDocument object
Set PDFDocument = BluebeamApp.NewDocument
' Insert the first PDF file
PDFDocument.InsertPages PDFPath1, 0, 0, 0, ""
' Insert the second PDF file after the first one
PDFDocument.InsertPages PDFPath2, 1, 0, 0, ""
' Save the combined PDF to a new file
PDFDocument.SaveAs "D:\Keylock\CombinedFile.pdf", False
' Close the PDF document
PDFDocument.Close
' Release the Bluebeam objects
Set PDFDocument = Nothing
Set BluebeamApp = Nothing`
字符串
错误图像:
的数据
这段代码中缺少了什么?上面的代码必须包含哪个库?
1条答案
按热度按时间holgip5t1#
使用ghostscript组合合并pdf
字符串