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

GetDocumentInfo Method

Gets document information from a PDF file.

Sub GetDocumentInfo(InputFileName As String,
                    [Password],
                    [Title],
                    [Author],
                    [Subject],
                    [Keywords],
                    [Creator],
                    [Producer])

void GetDocumentInfo(string InputFileName,
                     string Password,
                     out string Title,
                     out string Author,
                     out string Subject,
                     out string Keywords,
                     out string Creator,
                     out string Producer)

DocumentInfo GetDocumentInfo(String InputFileName, String Password) throws PDFProcessorException

Where DocumentInfo is a utility class:

public class DocumentInfo
{
   public String title;
   public String author;
   public String subject;
   public String keywords;
   public String creator;
   public String producer;
}

Parameters

Return Values

N/A.

Remarks

N/A.

Example Usage

Set oProcessor = CreateObject("easyPDF.PDFProcessor.8")
 
oProcessor.GetDocumentInfo"C:\test\input.pdf", _
                           Title:=sTitle, _
                           Author:=sAuthor, _
                           Subject:=sSubject, _
                           Keywords:=sKeywords, _
                           Creator:=sCreator, _
                           Producer:=sProducer
 
MsgBox "Title: " + sTitle + vbLf + _
       "Author: " + sAuthor + vbLf + _
       "Subject: " + sSubject + vbLf + _
       "Keywords: " + sKeywords + vbLf + _
       "Creator: " + sCreator + vbLf + _
       "Producer:" + sProducer