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.

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

Sub SetDocumentInfo(InputFileName As String, _
                    OutputFileName As String, _
                    Title As String, _
                    Author As String, _
                    Subject As String, _
                    Keywords As String, _
                    Creator As String)

def SetDocumentInfo(self,
                    InputFileName,
                    OutputFileName,
                    Title,
                    Author,
                    Subject,
                    Keywords,
                    Creator)
void SetDocumentInfo(String InputFileName,
                     String OutputFileName,
                     String Title,
                     String Author,
                     String Subject,
                     String Keywords,
                     String Creator) throws PDFProcessorException

function SetDocumentInfo($InputFileName,
                         $OutputFileName,
                         $Title,
                         $Author,
                         $Subject,
                         $Keywords,
                         $Creator) 

BclPrcResult SetDocumentInfo(const BclPDFProcessorSettings* pSettings,
                             const wchar_t* InputFileName,
                             const wchar_t* OutputFileName,
                             const wchar_t* Title,
                             const wchar_t* Author,
                             const wchar_t* Subject,
                             const wchar_t* Keywords,
                             const wchar_t* Creator);
Sub SetDocumentInfo(InputFileName As String, _
                    OutputFileName As String, _
                    [Title], _
                    [Author], _
                    [Subject], _
                    [Keywords], _
                    [Creator])

bepproc +Metadata [-title <string>]
                  [-author <string>]
                  [-subject <string>]
                  [-keywords <string>]
                  [-creator <string>]
                  [-forceXMP [on|off]]
                  [-xmp [on|off]]

Parameters

Return Values

N/A.

Remarks

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

Example Usage

Set oProcessor = CreateObject("easyPDF.PDFProcessor.8")
 
oProcessor.SetDocumentInfo "C:\test\input.pdf", _
                           "C:\test\output.pdf, _
                           Title:="Title here", _
                           Author:="Author here", _
                           Subject:="Subject here", _
                           Keywords:="Keywords here", _
                           Creator:="Creator here"