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

SetDocumentInfo Method

Sets document information into a PDF file.

Sub SetDocumentInfo([Title],
                    [Author],
                    [Subject],
                    [Keywords],
                    [Creator])

void SetDocumentInfo(string Title,
                     string Author,
                     string Subject,
                     string Keywords,
                     string Creator)

void SetDocumentInfo(String Title,
                     String Author,
                     String Subject,
                     String Keywords,
                     String Creator) throws PDFProcessorException

Parameters

Return Values

N/A.

Remarks

Document information can be viewed by selecting the "File"->"Document Properties" menu from Adobe Reader.

Example Usage in VBScript

Set oProcessor = CreateObject("easyPDF.PDFProcessor.8")

Set oProcessorHandle = oProcessor.OpenFile("C:\test\input.pdf", "C:\test\output.pdf")

oProcessorHandle.SetDocumentInfo Title:="Title here", _
                                 Author:="Author here", _
                                 Subject:="Subject here", _
                                 Keywords:="Keywords here", _
                                 Creator:="Creator here"
oProcessorHandle.Close

Example Usage in VB.NET

Dim oProcessor As PDFProcessor = New PDFProcessor
Dim oProcessorHandle As PDFProcessorHandle = oProcessor.OpenFile("C:\test\input.pdf", "C:\test\output.pdf")
   oProcessorHandle.SetDocumentInfo("Title here", _
                                    "Author here", _
                                    "Subject here", _
                                    "Keywords here", _
                                    "Creator here")
oProcessorHandle.Close()

Example Usage in C#

PDFProcessor oProcessor = new PDFProcessor();
PDFProcessorHandle oProcessorHandle = oProcessor.OpenFile(@"C:\test\input.pdf", @"C:\test\output.pdf", null);
   oProcessorHandle.SetDocumentInfo("Title here", 
                                    "Author here", 
                                    "Subject here", 
                                    "Keywords here", 
                                    "Creator here");
oProcessorHandle.Close();