ImageGear v26.3 - Updated
ImageGear.Formats.Pdf Assembly / ImageGear.Formats.PDF Namespace / ImGearPDFDocument Class / GetInfo Method
The name of the Info dictionary key whose value is obtained.




In This Topic
    GetInfo Method (ImGearPDFDocument)
    In This Topic
    Gets the value of a key in a document's Info dictionary, or the value of this same key in the XMP metadata, whichever is latest.
    Syntax
    'Declaration
     
    Public Function GetInfo( _
       ByVal key As String _
    ) As String
    'Usage
     
    Dim instance As ImGearPDFDocument
    Dim key As String
    Dim value As String
     
    value = instance.GetInfo(key)
    public string GetInfo( 
       string key
    )
    public: string* GetInfo( 
       string* key
    ) 
    public:
    String^ GetInfo( 
       String^ key
    ) 

    Parameters

    key
    The name of the Info dictionary key whose value is obtained.

    Return Value

    String containing the value associated with InfoKey.
    Remarks

    This method can be used to obtain the values of the following standard document information dictionary keys: "Title", "Author", "Subject", "Keywords", "Creator", "Producer", "Created" and "Modified".

    See Section 10.2.1 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.

    Users may define their own Info dictionary entries. In this case, it is strongly recommended that the key have the developer's prefix assigned by the Adobe Solutions Network.

    See Also