Foxit PDF SDK
|
Public Member Functions | |
CloneObject () | |
Clone current PDF object and get the cloned PDF object. More... | |
DeepCloneObject () | |
Clone current PDF object and get the cloned PDF object. More... | |
GetArray () | |
Get the PDF array object of current PDF object. More... | |
GetBoolean () | |
Get the boolean value of current PDF object. More... | |
GetDateTime () | |
Get the date time value of current PDF object. More... | |
GetDict () | |
Get the PDF dictionary object of current PDF object. More... | |
GetDirectObject () | |
Get the direct object of current PDF object. More... | |
GetFloat () | |
Get the float value of current PDF object. More... | |
GetInteger () | |
Get the integer value of current PDF object. More... | |
GetMatrix () | |
Get the matrix value of current PDF object. More... | |
GetName () | |
Get the name value of current PDF object. More... | |
GetObjNum () | |
Get the indirect object number of current PDF object. More... | |
GetRect () | |
Get the rectangle value of current PDF object. More... | |
GetStream () | |
Get the PDF stream object of current PDF object. More... | |
GetString () | |
Get the string value of current PDF object. More... | |
GetType () | |
Get the type of current PDF object. More... | |
GetWideString () | |
Get the wide string value of current PDF object. More... | |
IsIdentical (pdf_obj) | |
Check if input PDF object is identical with current PDF object. More... | |
Release () | |
Release a newly created PDF object or a clone PDF object, which is not related to PDF document or other PDF object and will not be used any more. More... | |
Static Public Member Functions | |
static | CreateFromBoolean (boolean_value) |
Create a PDF object from a boolean value. More... | |
static | CreateFromDateTime (date_time) |
Create a PDF object from date time. More... | |
static | CreateFromFloat (float_value) |
Create a PDF object from a float number. More... | |
static | CreateFromInteger (integer_value) |
Create a PDF object from a integer number. More... | |
static | CreateFromName (name) |
Create a PDF object from a string which represents a name. More... | |
static | CreateFromString (string_value) |
Create a PDF object from string. More... | |
static | CreateReference (document, object_number) |
Create a reference for an indirect object. More... | |
Static Public Attributes | |
static | e_Array |
PDF array object. | |
static | e_Boolean |
PDF boolean object. | |
static | e_Dictionary |
PDF dictionary object. | |
static | e_InvalidType |
Enumeration for PDF object type. More... | |
static | e_Name |
PDF name object. | |
static | e_Null |
PDF null object. | |
static | e_Number |
PDF number object. | |
static | e_Reference |
PDF reference object. | |
static | e_Stream |
PDF stream object. | |
static | e_String |
PDF string object. | |
PDF supports eight basic types of objects:
"Boolean value", "Integer and real number", "String", "Name", "Array", "Dictionary", "Stream", "The null object". For more details about PDF objects, please refer to Section 3.2 "Objects" in <PDF Reference 1.7>.
Class FSDK.PDFObject is a base class for all kinds of PDF objects. It offers different functions to create different kind of PDF objects. For "Array", "Dictionary" and "Stream" PDF object, please refer to derived classes FSDK.PDFArray, FSDK.PDFDictionary and FSDK.PDFStream.
If user wants to make a newly created PDF object to be an indirect object, please call function FSDK.PDFDoc.AddIndirectObject.
FSDK.PDFObject.CloneObject | ( | ) |
Clone current PDF object and get the cloned PDF object.
Please call FSDK.PDFObject.Release to release the new object if it has not been added/set into PDF document or other PDF object and will not be used any more.
|
static |
Create a PDF object from a boolean value.
Please call function FSDK.PDFObject.Release to release the created object if it has not been added/set into PDF document or other PDF object and will not be used any more.
[in] | boolean_value | A boolean value. |
|
static |
Create a PDF object from date time.
PDF defines a standard date format, which closely follows that of the international standard ASN.1 (Abstract Syntax Notation One), defined in ISO/ IEC 8824 (see the Bibliography). A date is defined as an ASCII string of the form (D:YYYYMMDDHHmmSSOHH'mm'). Please call function FSDK.PDFObject.Release to release the created object if it has not been added/set into PDF document or other PDF object and will not be used any more.
[in] | date_time | A date and time object. |
|
static |
Create a PDF object from a float number.
Please call function FSDK.PDFObject.Release to release the created object if it has not been added/set into PDF document or other PDF object and will not be used any more.
[in] | float_value | A float value. |
|
static |
Create a PDF object from a integer number.
Please call function FSDK.PDFObject.Release to release the created object if it has not been added/set into PDF document or other PDF object and will not be used any more.
[in] | integer_value | An integer value. |
|
static |
Create a PDF object from a string which represents a name.
Please call function FSDK.PDFObject.Release to release the created object if it has not been added/set into PDF document or other PDF object and will not be used any more.
[in] | name | A string. It should not be an empty string. |
|
static |
Create a PDF object from string.
Please call function FSDK.PDFObject.Release to release the created object if it has not been added/set into PDF document or other PDF object and will not be used any more.
[in] | string_value | A string. It should not be an empty string. |
|
static |
Create a reference for an indirect object.
The indirect object can be retrieved by following methods:
Please call function FSDK.PDFObject.Release to release the created object if it has not been added/set into PDF document or other PDF object and will not be used any more.
[in] | document | A valid PDF document object. |
[in] | object_number | The indirect object number of the indirect PDF object. This should be above 0. |
FSDK.PDFObject.DeepCloneObject | ( | ) |
Clone current PDF object and get the cloned PDF object.
This function is a totally direct copy, without any reference object inside, so the copy object can be copied to another document. Please call FSDK.PDFObject.Release to release the new object if it has not been added/set into PDF document or other PDF object and will not be used any more.
FSDK.PDFObject.GetArray | ( | ) |
Get the PDF array object of current PDF object.
If the type of current PDF object is FSDK.PDFObject.e_Reference, this function will check the direct PDF object of current PDF object.
FSDK.PDFObject.GetBoolean | ( | ) |
Get the boolean value of current PDF object.
Only useful when the type of current PDF object is FSDK.PDFObject.e_Boolean.
FSDK.PDFObject.GetDateTime | ( | ) |
Get the date time value of current PDF object.
Only useful when the type of current PDF objec is FSDK.PDFObject.e_String and its content is in PDF standard date format.
FSDK.PDFObject.GetDict | ( | ) |
Get the PDF dictionary object of current PDF object.
If the type of current PDF object is FSDK.PDFObject.e_Reference, this function will check the direct PDF object of current PDF object.
FSDK.PDFObject.GetDirectObject | ( | ) |
Get the direct object of current PDF object.
If the type of current PDF object is FSDK.PDFObject.e_Reference, the direct object will be returned.
FSDK.PDFObject.GetFloat | ( | ) |
Get the float value of current PDF object.
Only useful when the type of current PDF object is FSDK.PDFObject.e_Number.
FSDK.PDFObject.GetInteger | ( | ) |
Get the integer value of current PDF object.
Only useful when the type of current PDF object is FSDK.PDFObject.e_Number.
FSDK.PDFObject.GetMatrix | ( | ) |
Get the matrix value of current PDF object.
Only useful for PDF object whose type is FSDK.PDFObject.e_Array and it has 6 number objects as elements.
FSDK.PDFObject.GetName | ( | ) |
Get the name value of current PDF object.
Only useful when the type of current PDF object is FSDK.PDFObject.e_Name or FSDK.PDFObject.e_String.
FSDK.PDFObject.GetObjNum | ( | ) |
Get the indirect object number of current PDF object.
FSDK.PDFObject.GetRect | ( | ) |
Get the rectangle value of current PDF object.
Only useful for PDF object whose type is FSDK.PDFObject.e_Array and it has 4 number objects as elements.
FSDK.PDFObject.GetStream | ( | ) |
Get the PDF stream object of current PDF object.
If the type of current PDF object is FSDK.PDFObject.e_Reference, this function will check the direct PDF object of current PDF object.
FSDK.PDFObject.GetString | ( | ) |
Get the string value of current PDF object.
This function will get the string format for actual value of current PDF object:
If value of current PDF object cannot be converted to a valid string, an empty string will be returned.
FSDK.PDFObject.GetType | ( | ) |
Get the type of current PDF object.
FSDK.PDFObject.GetWideString | ( | ) |
Get the wide string value of current PDF object.
This function will get the string format for actual value of current PDF object:
If value of current PDF object cannot be converted to a valid string, an empty string will be returned.
FSDK.PDFObject.IsIdentical | ( | pdf_obj | ) |
Check if input PDF object is identical with current PDF object.
[in] | pdf_obj | Another PDF object which is to be check with current PDF object. |
FSDK.PDFObject.Release | ( | ) |
Release a newly created PDF object or a clone PDF object, which is not related to PDF document or other PDF object and will not be used any more.
This function should be called only for a newly created PDF object or a cloned PDF object, which has not been added or set to other PDF object or related to PDF document, and will not be used any more. Please do not use this function for other case, otherwise unknown error may occur.
|
static |
Enumeration for PDF object type.
Values of this enumeration should be used alone.
Invalid PDF object type.