BCL easyPDF SDK
easyPDF SDK Usermanual
PDF Creator Programming API  |  Download Free Trial  |  Contact Us to Purchase

GetVersionNumber Method

Gets version number from a PDF file.

Sub GetVersionNumber(InputFileName As String,
                      VersionMajor As Long,
                      VersionMinor As Long)

void GetVersionNumber(string InputFileName,
                       out int VersionMajor,
                       out int VersionMinor)

VersionNumber GetVersionNumber(String InputFileName) throws PDFProcessorException

Where VersionNumber is a utility class:

public class VersionNumber
{
   public int versionMajor;
   public int versionMinor;
}

Parameters

Return Values

N/A.

Remarks

N/A.

Example Usage

Set oProcessor = CreateObject("easyPDF.PDFProcessor.8")
oProcessor.GetVersionNumber "C:\test\input.pdf", nMajor, nMinor
MsgBox "PDF version number of this file: " + CStr(nMajor) + "." + CStr(nMinor)