Quick PDF logo

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.

Syntax

Delphi

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

ActiveX

Function QuickPDF0813.PDFLibrary::DASetInformation(FileHandle As Long,
  Key As String, NewValue As String) As Long

DLL

int QuickPDFDASetInformation(int InstanceID, int FileHandle, wchar_t * Key,
  wchar_t * NewValue)

Parameters

FileHandle A handle returned by the DAOpenFile, DAOpenFileReadOnly or DAOpenFromStream functions
Key For standard information use "Author", "Title", "Subject", "Keywords", "Creator", or "Producer". For custom information any other string can be used.
NewValue The new value for the specified key.

Return values

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

Copyright © 2011 Debenu. All rights reserved. AboutContactBlogNewsletterSupportBuyForum