ImageGear .NET v25.0 - Updated
SetInfo Method




ImageGear.Formats.Pdf Assembly > ImageGear.Formats.PDF Namespace > ImGearPDFDocument Class : SetInfo Method
The name of the Info dictionary key whose value is set.
String containing the value to associate with infoKey.
Sets the value of a key in a document's Info dictionary.
Syntax
'Declaration
 
Public Sub SetInfo( _
   ByVal key As String, _
   ByVal value As String _
) 
'Usage
 
Dim instance As ImGearPDFDocument
Dim key As String
Dim value As String
 
instance.SetInfo(key, value)
public void SetInfo( 
   string key,
   string value
)
public: void SetInfo( 
   string* key,
   string* value
) 
public:
void SetInfo( 
   String^ key,
   String^ value
) 

Parameters

key
The name of the Info dictionary key whose value is set.
value
String containing the value to associate with infoKey.
Remarks

This method can be used to set new values for the following standard document information dictionary keys: "Title", "Author", "Subject", "Keywords" and "Creator".

NOTE: The following standard document information dictionary keys are read-only: "Producer", "Created" and "Modified", the library will overwrite the values of these keys on document save.

See Section 10.2.1 on Info dictionaries in the PDF Reference for information about Info dictionaries. All values in the Info dictionary should be strings; other data types such as numbers and Booleans should not be used as values in the Info dictionary. If an info dictionary key is specified that is not currently in the info dictionary, it is added to the dictionary.

See Also

Reference

ImGearPDFDocument Class
ImGearPDFDocument Members
ImGearPDFDictionary Class