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(VersionMajor As Long, VersionMinor As Long)

void GetVersionNumber(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")
Set oProcessorHandle = oProcessor.OpenFile("C:\test\input.pdf", "C:\test\input.pdf")
oProcessorHandle.GetVersionNumber nMajor, nMinor
oProcessorHandle.Close
MsgBox "PDF version number of this file: " + CStr(nMajor) + "." + CStr(nMinor)