View help document of Command Line options.
Download and purchase Advanced PDF Tools COM/SDK.
VB Example 1:
Private Declare Function VeryPDF_PDFTools Lib "pdftoolsdk.dll" (ByVal
strCommandLine As String) As Long
Private Sub Command1_Click()
Dim nRet As Long
Dim strCmd As String
strCmd = "pdftools.exe" & " -J ""firstpage=[0.75,0.75,0,160,0,0,0],evenpages=[0.84,0.84,0,-10,0,0,0],oddpages=[0.84,0.84,0,90,0,0,0]"""
strCmd = strCmd & " -$ XXXXXXXXXXXXXX"
strCmd = strCmd & " -i C:\test.pdf"
strCmd = strCmd & " -o C:\_test.pdf"
nRet = VeryPDF_PDFTools(strCmd)
MsgBox (Str(nRet))
End Sub
VB Example 2:
Private Sub VBCOMTest_Click()
Dim nRet As Long
Dim strCmd As String
strCmd = "pdftools.exe" & " -x ""0 0
612 792"" -j ""612 792 true"""
strCmd = strCmd & " -$
XXXXXXXXXXXXXXX"
strCmd = strCmd & " -i C:\test.pdf"
strCmd = strCmd & " -o C:\_test.pdf"
Set PDFToolsCOM =
CreateObject("PDFTools.PDFToolsCOM")
nRet =
PDFToolsCOM.com_VeryPDF_PDFTools(strCmd)
Set PDFToolsCOM = Nothing
MsgBox (Str(nRet))
End Sub
VC++ Example:
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>
#include <io.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <conio.h>
#include <ctype.h>
#include <windows.h>
__declspec(dllexport)
int WINAPI VeryPDF_PDFTools(LPCTSTR lpCommand);
void main()
{
char szCommandLine[1024];
char *lpLicenseKey = "XXXXXXXXXXXXXX";
sprintf(szCommandLine,"pdftools.exe
\"-$\" \"%s\" -x \"0 0 612 792\" -j \"612 792 true\" -i \"%s\" -o \"%s\"",
lpLicenseKey, "C:\\test.pdf", "C:\\_test.pdf");
int nRet =
VeryPDF_PDFTools(szCommandLine);
}