VeryPDF Advanced PDF Tools provides three different versions for different users: a GUI version named VeryPDF Advanced PDF Tools which can edit PDF descriptions and PDF properties such as title, subject, author, keywords, created time, modified time, creator and producer, etc.; a CMD (command line) version named VeryPDF Advanced PDF Tools Command Line which can edit and append PDF descriptions, properties, etc. by command lines; a SDK (Software Development Kit) version named VeryPDF Advanced PDF Tools SDK which is designed for software developers. This page is mainly about how to use the SDK version.
With the help of VeryPDF Advanced PDF Tools SDK, software developers or programmers can make full use of this advanced pdf tools utility or functions of it in other software. It allows software developers integrate the codes and APIs of this program into their own software on different platforms such as Visual C++ and Visual Basic.
To know how to use VeryPDF Advanced PDF Tools SDK, you can refer to the following samples.
Operating Systems: all the Windows platforms, like Windows 2000, XP, Vista, 7, 10, 11, Windows Server 2003, 2008, 2008 R2 and later systems, both 32 Bit and 64 Bit and so on.
The following programming languages are supported:C#, VB .NET, MS Visual Basic, Borland Delphi, VBA (MS Office products such as Access) and C++ via COM, C and C++ via native C.
#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);
}
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 3090
ClientLeft = 60
ClientTop = 450
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 3090
ScaleWidth = 4680
StartUpPosition = 3 'Windows Default
Begin VB.CommandButton Command1
Caption = "Command1"
Height = 615
Left = 1200
TabIndex = 0
Top = 1200
Width = 2055
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
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
'-J "firstpage=[widthscale,heightscale,
iscenter,xoffset,yoffset,margin,rotate],
' evenpages=[widthscale,heightscale,
iscenter,xoffset,yoffset,margin,rotate],
' oddpages=[widthscale,heightscale,
iscenter,xoffset,yoffset,margin,rotate]"
'-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 = "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
To know more usage about the SDK version of this application, you can download VeryPDF Advanced PDF Tools SDK and have a try.
To get full version of the SDK version of this application, you can buy VeryPDF Advanced PDF Tools SDK here.