Home > Software engineering >  VB to merge the two PDF files into one PDF file of the source code
VB to merge the two PDF files into one PDF file of the source code

Time:09-24

VB to merge two PDF files source;

CodePudding user response:

This question to ask Adobe PDF file is its intellectual property rights, file formats were not released,

CodePudding user response:

Another way is to use the Acrobat software code control, using open the menu and document - inserted into the page,

CodePudding user response:

Use coolutils package PDFCombine. Exe, can use the Shell statement calls it,

http://www.coolutils.com/CommandLine/PDFCombine

CodePudding user response:

Need to refer to the adobe library
Dim gPDDocBase, gPDDocSource As Object
The Set gPDDocBase=CreateObject (" AcroExch. PDDoc ")
The Set gPDDocSource=CreateObject (" AcroExch. PDDoc ")
StrFileBase="C: \ 1. PDF"
Do Until gPDDocBase. Open (strFileBase)=0
DoEvents
Loop
StrFileSource="C: \ 2. PDF"
Do Until gPDDocSource. Open (strFileSource)=0
DoEvents
Loop
GPDDocBase. InsertPages gPDDocBase. GetNumPages - 1, gPDDocSource, 0, 1, 0
GPDDocBase. Save 1, strFileBase
The Set gPDDocBase=Nothing
The Set gPDDocSource=Nothing

CodePudding user response:

Can you specifically? So can't directly merger?

CodePudding user response:

Thank you, very useful
  • Related