DASetInformation

Document properties, Direct access functionality

Description

Sets values in the document information section.

This could be standard information such as Author and Subject, or custom information.

For CreationDate and ModDate (modification date), the format of the date should be: D:YYYYMMDDHHmmSSOHH'mm'

where

YYYY shall be the year

MM shall be the month (01-12) DD shall be the day (01-31) HH shall be the hour (00-23)

mm shall be the minute (00-59) SS shall be the second (00-59)

O shall be the relationship of local time to Universal Time (UT) using a +, - or Z character

HH followed by APOSTROPHE (U+0027) (') shall be the absolute value of the offset from UT in hours (00-23)

mm followed by an optional APOSTROPHE (U+0027) (') shall be the absolute value of the offset from UT in minutes (00-59)

Syntax

Delphi

function TPDFlib.DASetInformation(FileHandle: Integer; Const Key, NewValue: WideString): Integer;

ActiveX

Function PDFlib::DASetInformation(FileHandle As Long, Key As String, NewValue As String) As Long

DLL

int DLDASetInformation(int InstanceID, int FileHandle, wchar_t * Key, wchar_t * NewValue);

Parameters

FileHandleA handle returned by the DAOpenFile, DAOpenFileReadOnly or DAOpenFromStream functions
KeyFor standard information use "Author", "Title", "Subject", "Keywords", "Creator", "Producer", "CreationDate" or "ModDate". For custom information any other string can be used.
NewValueThe new value for the specified key.

Return values

0The specified FileHandle was not valid The information key was set or updated successfully
1