Debenu Quick PDF logo

SetInformation

Document properties

Description

Set the properties of the selected document.

For the CreationDate and ModDate (modification date) properties, 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 TDebenuPDFLibrary1511.SetInformation(Key: Integer; 
  NewValue: WideString): Integer;

ActiveX

Function DebenuPDFLibrary1511.PDFLibrary::SetInformation(Key As Long,
  NewValue As String) As Long

DLL

int DPLSetInformation(int InstanceID, int Key, wchar_t * NewValue)

Parameters

Key The property to set:
0 = PDF Version
1 = Author
2 = Title
3 = Subject
4 = Keywords
5 = Creator
6 = Producer
7 = CreationDate
8 = ModDate
9 = XMP dc:subject
10 = XMP xmpMM:subject
NewValue The new value of the specified property.

Return values

0 The specified information could not be set. Use the LastErrorCode function to determine the reason for failure.
1 The specified information was set successfully

Copyright © 2014 Debenu. All rights reserved. AboutContactBlogNewsletterSupport