java.lang.Object | |
↳ | com.pdftron.sdf.Obj |
Obj is a concrete class for all SDF/Cos objects. Obj hierarchy implements the composite design pattern. As a result, you can invoke a member function of any 'derived' object through Obj interface. If the member function is not supported (e.g. if you invoke Obj::GetNumber() on a boolean object) an Exception will be thrown. You can use GetType() or obl.Is???() member functions to find out type-information at run time, however most of the time the type can be inferred from the PDF specification. Therefore when you call Doc::GetTrailer() you can assume that returned object is a dictionary. If there is any ambiguity use Is???() methods. Objects can't be shared across documents, however you can use Doc::ImportObj() to copy objects from one document to another. Objects can be shared within a document provided that they are created as indirect. Indirect objects are the ones that are referenced in cross-reference table. To create an object as indirect use Doc::CreateIndirect???() (where ? is the Object type).
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | e_array | The Constant e_array. | |||||||||
int | e_bool | The Constant e_bool. | |||||||||
int | e_dict | The Constant e_dict. | |||||||||
int | e_name | The Constant e_name. | |||||||||
int | e_null | The Constant e_null. | |||||||||
int | e_number | The Constant e_number. | |||||||||
int | e_stream | The Constant e_stream. | |||||||||
int | e_string | The Constant e_string. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
static Obj | __Create(long impl, Object ref) | ||||||||||
long | __GetHandle() | ||||||||||
Object | __GetRefHandle() | ||||||||||
void |
erase(DictIterator pos)
Removes an element in the dictionary from specified position.
| ||||||||||
void |
erase(String key)
Removes an element in the dictionary that matches the given key.
| ||||||||||
void |
eraseAt(int pos)
Checks whether the position is within the array bounds and then removes it from the
array and moves each subsequent element to the slot with the next smaller index and
decrements the arrays length by 1.
| ||||||||||
DictIterator |
find(String key)
Search the dictionary for a given key.
| ||||||||||
Obj |
findObj(String key)
Search the dictionary for a given key.
| ||||||||||
DictIterator |
get(String key)
Search the dictionary for a given key and throw an exception if the key is not found.
| ||||||||||
String |
getAsPDFText()
Convert the SDF/Cos String object to 'PDF Text String' (a Unicode string).
| ||||||||||
Obj |
getAt(int index)
Get the Obj at specified index
| ||||||||||
boolean |
getBool()
Get the boolean value if Obj is bool
| ||||||||||
byte[] |
getBuffer()
Get string buffer
Note: if SDF/Cos String object is represented as 'PDF Text' (Section 3.8.1 'Text Strings' in PDF Reference) you can use GetAsPDFText method to obtain Unicode representation of the string. | ||||||||||
Filter |
getDecodedStream()
Get the decoded stream.
| ||||||||||
DictIterator |
getDictIterator()
Get the dictionary iterator.
| ||||||||||
SDFDoc |
getDoc()
Get the Doc object contains this Obj
Note: this method can be invoked on any Obj. | ||||||||||
short |
getGenNum()
Get the generation number.
| ||||||||||
String |
getName()
Get the string representation of the Name object
| ||||||||||
double |
getNumber()
Get the number value
| ||||||||||
long |
getObjNum()
Get the object number.
| ||||||||||
long |
getOffset()
Get the offset from beginning of the file.
| ||||||||||
byte[] |
getRawBuffer()
Get an array containg the encrypted string buffer.
| ||||||||||
Filter |
getRawStream(boolean decrypt)
Get the raw stream.
| ||||||||||
long |
getRawStreamLength()
Get the raw stream length.
| ||||||||||
int |
getType()
Get the Obj type.
| ||||||||||
Obj |
insert(int pos, Obj obj)
Inserts an existing Obj in this array.
| ||||||||||
Obj |
insertArray(int pos)
Inserts an Obj::Type::e_array object in the array.
| ||||||||||
Obj |
insertBool(int pos, boolean value)
Inserts an Obj::Type::e_bool object in the array.
| ||||||||||
Obj |
insertDict(int pos)
Inserts an Obj::Type::e_dict object in the array.
| ||||||||||
Obj |
insertMatrix(int pos, Matrix2D value)
Inserts an array of 6 numbers in this array.
| ||||||||||
Obj |
insertName(int pos, String name)
Inserts an Obj::Type::e_name object in the array.
| ||||||||||
Obj |
insertNull(int pos)
Inserts an Obj::Type::e_null object in the array.
| ||||||||||
Obj |
insertNumber(int pos, double value)
Inserts an Obj::Type::e_number object in the array.
| ||||||||||
Obj |
insertRect(int pos, double x1, double y1, double x2, double y2)
Inserts an array of 4 numbers in this array.
| ||||||||||
Obj |
insertRect(int pos, DoubleRectangle2D rect)
Inserts an array of 4 numbers in this array.
| ||||||||||
Obj |
insertString(int pos, String value)
Inserts an Obj::Type::e_string object in the array.
| ||||||||||
Obj |
insertString(int pos, byte[] value)
Inserts an Obj::Type::e_string object in the array.
| ||||||||||
Obj |
insertText(int pos, String value)
Inserts an Obj::Type::e_string object in the array.
| ||||||||||
boolean |
isArray()
Checks if Obj is an array.
| ||||||||||
boolean |
isBool()
Checks if Obj is Boolean object
Note: this method can be invoked on any Obj. | ||||||||||
boolean |
isContainer()
Checks if Obj is a container object.
| ||||||||||
boolean |
isDict()
Checks if Obj is dictionary
Note: this method can be invoked on any Obj. | ||||||||||
boolean |
isEqual(Obj to)
Checks if is equal to specified object
| ||||||||||
boolean |
isFree()
Checks if it is marked as free.
| ||||||||||
boolean |
isIndirect()
Checks if Obj is an indirect object
Note: this method can be invoked on any Obj. | ||||||||||
boolean |
isLoaded()
Checks if Obj is loaded.
| ||||||||||
boolean |
isMarked()
Checks if Obj is marked.
| ||||||||||
boolean |
isName()
Checks if Obj is a name object.
| ||||||||||
boolean |
isNull()
Checks if is Obj null.
| ||||||||||
boolean |
isNumber()
Checks if Obj is Number object.
| ||||||||||
boolean |
isStream()
Checks if is a stream.
| ||||||||||
boolean |
isString()
Checks if Obj is a string object.
| ||||||||||
Obj |
pushBack(Obj obj)
Appends an existing Obj at the end of the array.
| ||||||||||
Obj |
pushBackArray()
Appends a new Obj::Type::e_array object at the end of the array.
| ||||||||||
Obj |
pushBackBool(boolean value)
Appends a new Obj::Type::e_bool object at the end of the array.
| ||||||||||
Obj |
pushBackDict()
Appends a new Obj::Type::e_dict object at the end of the array.
| ||||||||||
Obj |
pushBackMatrix(Matrix2D value)
Appends an array of 6 numbers at the end of the array.
| ||||||||||
Obj |
pushBackName(String name)
Appends a new Obj::Type::e_name object at the end of the array.
| ||||||||||
Obj |
pushBackNull()
Appends a new Obj::Type::e_null object at the end of the array.
| ||||||||||
Obj |
pushBackNumber(double value)
Appends a new Obj::Type::e_number object at the end of the array.
| ||||||||||
Obj |
pushBackRect(DoubleRectangle2D rect)
Appends an array of 4 numbers at the end of the array.
| ||||||||||
Obj |
pushBackRect(double x1, double y1, double x2, double y2)
Appends an array of 4 numbers at the end of the array.
| ||||||||||
Obj |
pushBackString(String value)
Appends a new Obj::Type::e_string object at the end of the array.
| ||||||||||
Obj |
pushBackString(byte[] value)
Appends a new Obj::Type::e_string object at the end of the array.
| ||||||||||
Obj |
pushBackText(String value)
Appends a new Obj::Type::e_string object at the end of the array.
| ||||||||||
Obj |
put(String key, Obj obj)
Inserts a <key, Obj> pair in the dictionary.
| ||||||||||
Obj |
putArray(String key)
Inserts a <key, Obj::Type::e_array> pair in the dictionary.
| ||||||||||
Obj |
putBool(String key, boolean value)
Inserts a <key, Obj::Type::e_bool> pair in the dictionary.
| ||||||||||
Obj |
putDict(String key)
Inserts a <key, Obj::Type::e_dict> pair in the dictionary.
| ||||||||||
Obj |
putMatrix(String key, Matrix2D value)
Inserts a <key, [a,b,c,d,h,v]> pair in the dictionary.
| ||||||||||
Obj |
putName(String key, String name)
Inserts a <key, Obj::Type::e_name> pair in the dictionary.
| ||||||||||
void |
putNull(String key)
Inserts a <key, Obj::Type::e_null> pair in the dictionary.
| ||||||||||
Obj |
putNumber(String key, double value)
Inserts a <key, Obj::Type::e_number> pair in the dictionary.
| ||||||||||
Obj |
putRect(String key, DoubleRectangle2D rect)
Inserts a <key, [x1,y1,x2,y2]> pair in the dictionary.
| ||||||||||
Obj |
putRect(String key, double x1, double y1, double x2, double y2)
Inserts a <key, [x1,y1,x2,y2]> pair in the dictionary.
| ||||||||||
Obj |
putString(String key, byte[] value)
Inserts a <key, Obj::Type::e_string> pair in the dictionary.
| ||||||||||
Obj |
putString(String key, String value)
Inserts a <key, Obj::Type::e_string> pair in the dictionary.
| ||||||||||
Obj |
putText(String key, String value)
Inserts a <key, Obj::Type::e_string> pair in the dictionary.
| ||||||||||
boolean |
rename(String old_key, String new_key)
Change the key value of a dictionary entry.
| ||||||||||
void |
setBool(boolean b)
Set the boolean value to Obj
| ||||||||||
void |
setMark(boolean mark)
Set the object mark.
| ||||||||||
void |
setName(String name)
Set the name string
| ||||||||||
void |
setNumber(double n)
Set the number value
| ||||||||||
void |
setStreamData(byte[] data, Filter filter_chain)
Update a stream object with the new content.
| ||||||||||
void |
setString(byte[] buf)
Set the string object value.
| ||||||||||
void |
setString(String value)
Set the string object value.
| ||||||||||
long |
size()
Get size of Obj
Note: this method can be invoked on any Obj. | ||||||||||
void |
write(FilterWriter stream)
The function writes the Obj to the output stream.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
The Constant e_array.
The Constant e_bool.
The Constant e_dict.
The Constant e_name.
The Constant e_null.
The Constant e_number.
The Constant e_stream.
The Constant e_string.
Removes an element in the dictionary from specified position.
pos | the pos |
---|
PDFNetException |
---|
Removes an element in the dictionary that matches the given key.
key | the key |
---|
PDFNetException |
---|
Checks whether the position is within the array bounds and then removes it from the array and moves each subsequent element to the slot with the next smaller index and decrements the arrays length by 1.
pos | the pos |
---|
PDFNetException |
---|
Search the dictionary for a given key.
Note: A dictionary entry whose value is Obj::Null is equivalent to an absent entry.
DictIterator itr = info_dict.find("Info");
if (itr.hasNext()) {
Obj info = itr.value();
if (info.isDict())
info.putString("Producer", "PDFTron PDFNet SDK");
}
key | - a key to search for in the dictionary |
---|
PDFNetException |
---|
Search the dictionary for a given key.
Note: A dictionary entry whose value is Obj::Null is equivalent to an absent entry.
key | - a key to search for in the dictionary |
---|
PDFNetException |
---|
Search the dictionary for a given key and throw an exception if the key is not found.
key | - a key to search for in the dictionary |
---|
PDFNetException |
---|
Convert the SDF/Cos String object to 'PDF Text String' (a Unicode string). PDF Text Strings are not used to represent page content, however they are used in text annotations, bookmark names, article names, document information etc. These strings are encoded in either PDFDocEncoding or Unicode character encoding. For more information on PDF Text Strings, please refer to section 3.8.1 'Text Strings' in PDF Reference.
Note: Not all SDF/Cos String objects are used to represent 'PDF Text'. PDF Reference indicates (on a case by case basis ) where an SDF/Cos String object can be used as 'PDF Text'.
PDFNetException |
---|
Get the Obj at specified index
index | - The array element to obtain. The first element in an array has an index of zero. |
---|
PDFNetException |
---|
Get string buffer
Note: if SDF/Cos String object is represented as 'PDF Text' (Section 3.8.1 'Text Strings' in PDF Reference) you can use GetAsPDFText method to obtain Unicode representation of the string.
use Size() member function in order to obtain the number of bytes in string buffer.
PDFNetException |
---|
Get the dictionary iterator.
PDFNetException | DictIterator itr = dict.getDictIterator();
while (itr.hasNext()) {
Obj key = itr.key();
Obj value = itr.value();
// ...
itr.next()
}
|
---|
Get the Doc object contains this Obj
Note: this method can be invoked on any Obj.
PDFNetException |
---|
Get the generation number.
Note: this method can be invoked on any Obj.
PDFNetException |
---|
Get the string representation of the Name object
PDFNetException |
---|
Get the object number.
Note: this method can be invoked on any Obj.
PDFNetException |
---|
Get the offset from beginning of the file.
Note: this method can be invoked on any Obj.
PDFNetException |
---|
Get an array containg the encrypted string buffer.
Note: Similar in behaviour to GetBuffer except that no decryption is done. If the file is not encrypted the result should be the same as GetBuffer
PDFNetException | Exception is thrown if this is not a Obj::Type::e_string. |
---|
Get the raw stream.
decrypt | - If true decrypt the stream if the stream is encrypted. |
---|
PDFNetException |
---|
Get the raw stream length.
PDFNetException |
---|
Get the Obj type.
Note: this method can be invoked on any Obj.
PDFNetException |
---|
Inserts an existing Obj in this array.
pos | - The location in the array to insert the object . The object is inserted before the specified location. The first element in an array has a pos of zero. If pos <= Array-<Length(), appends obj to array. |
---|---|
obj | The value to be inserted into the dictionary. If 'obj' is indirect (i.e. is a shared) object it will be inserted by reference, otherwise the object will be cloned and then inserted. |
PDFNetException |
---|
Inserts an Obj::Type::e_array object in the array.
pos | - The location in the array to insert the object . The object is inserted before the specified location. The first element in an array has a pos of zero. If pos <= Array-<Length(), appends obj to array. |
---|
PDFNetException |
---|
Inserts an Obj::Type::e_bool object in the array.
pos | - The location in the array to insert the object . The object is inserted before the specified location. The first element in an array has a pos of zero. If pos <= Array-<Length(), appends obj to array. |
---|---|
value | The value of the Obj::Type::e_bool object to be inserted. |
PDFNetException |
---|
Inserts an Obj::Type::e_dict object in the array.
pos | - The location in the array to insert the object . The object is inserted before the specified location. The first element in an array has a pos of zero. If pos <= Array-<Length(), appends obj to array. |
---|
PDFNetException |
---|
Inserts an array of 6 numbers in this array.
pos | - The location in the array to insert the object . The object is inserted before the specified location. The first element in an array has a pos of zero. If pos <= Array-<Length(), appends obj to array. |
---|---|
value | - A matrix used to set the values in an array of six numbers. The resulting array will be then inserted in this array. |
PDFNetException |
---|
Inserts an Obj::Type::e_name object in the array.
pos | - The location in the array to insert the object . The object is inserted before the specified location. The first element in an array has a pos of zero. If pos <= Array-<Length(), appends obj to array. |
---|---|
name | The value of the Obj::Type::e_name object to be inserted. |
PDFNetException |
---|
Inserts an Obj::Type::e_null object in the array.
pos | - The location in the array to insert the object . The object is inserted before the specified location. The first element in an array has a pos of zero. If pos <= Array-<Length(), appends obj to array. |
---|
PDFNetException |
---|
Inserts an Obj::Type::e_number object in the array.
pos | - The location in the array to insert the object . The object is inserted before the specified location. The first element in an array has a pos of zero. If pos <= Array-<Length(), appends obj to array. |
---|---|
value | The value of the Obj::Type::e_number object to be inserted. |
PDFNetException |
---|
Inserts an array of 4 numbers in this array.
pos | - The location in the array to insert the object . The object is inserted before the specified location. The first element in an array has a pos of zero. If pos <= Array-<Length(), appends obj to array. |
---|---|
x1 | the x1 |
y1 | the y1 |
x2 | the x2 |
y2 | the y2 |
PDFNetException |
---|
Inserts an array of 4 numbers in this array.
pos | - The location in the array to insert the object . The object is inserted before the specified location. The first element in an array has a pos of zero. If pos >= Array->Length(), appends obj to array. |
---|---|
rect | - The value for an array of four numbers to be inserted in this array. |
PDFNetException |
---|
Inserts an Obj::Type::e_string object in the array.
pos | - The location in the array to insert the object . The object is inserted before the specified location. The first element in an array has a pos of zero. If pos <= Array-<Length(), appends obj to array. |
---|---|
value | The value of the Obj::Type::e_string object to be inserted. |
PDFNetException |
---|
Inserts an Obj::Type::e_string object in the array.
pos | - The location in the array to insert the object . The object is inserted before the specified location. The first element in an array has a pos of zero. If pos <= Array-<Length(), appends obj to array. |
---|---|
value | The buffer used to set the value of the Obj::Type::e_string object to be inserted. |
PDFNetException |
---|
Inserts an Obj::Type::e_string object in the array.
Note: InsertText will create the string object as a 'PDF Text' object.
pos | - The location in the array to insert the object . The object is inserted before the specified location. The first element in an array has a pos of zero. If pos <= Array-<Length(), appends obj to array. |
---|---|
value | The value of the Obj::Type::e_string object to be inserted. |
PDFNetException |
---|
Checks if Obj is an array.
Note: this method can be invoked on any Obj.
PDFNetException |
---|
Checks if Obj is Boolean object
Note: this method can be invoked on any Obj.
PDFNetException |
---|
Checks if Obj is a container object.
Note: this method can be invoked on any Obj.
PDFNetException |
---|
Checks if Obj is dictionary
Note: this method can be invoked on any Obj.
PDFNetException |
---|
Checks if is equal to specified object
to | the to |
---|
PDFNetException |
---|
Checks if it is marked as free.
Note: this method can be invoked on any Obj.
PDFNetException |
---|
Checks if Obj is an indirect object
Note: this method can be invoked on any Obj.
PDFNetException |
---|
Checks if Obj is loaded.
Note: this method can be invoked on any Obj.
PDFNetException |
---|
Checks if Obj is marked.
Note: this method can be invoked on any Obj.
PDFNetException |
---|
Checks if Obj is a name object.
Note: this method can be invoked on any Obj.
PDFNetException |
---|
Checks if is Obj null.
Note: this method can be invoked on any Obj.
PDFNetException |
---|
Checks if Obj is Number object.
Note: this method can be invoked on any Obj.
PDFNetException |
---|
Checks if is a stream.
Note: this method can be invoked on any Obj.
PDFNetException |
---|
Checks if Obj is a string object.
Note: this method can be invoked on any Obj.
PDFNetException |
---|
Appends an existing Obj at the end of the array.
obj | The value to be inserted into the dictionary. If 'obj' is indirect (i.e. is a shared) object it will be inserted by reference, otherwise the object will be cloned and then appended. |
---|
PDFNetException |
---|
Appends a new Obj::Type::e_array object at the end of the array.
PDFNetException |
---|
Appends a new Obj::Type::e_bool object at the end of the array.
value | the value |
---|
PDFNetException |
---|
Appends a new Obj::Type::e_dict object at the end of the array.
PDFNetException |
---|
Appends an array of 6 numbers at the end of the array.
value | - A matrix used to set the values in an array of six numbers. The resulting array will be then inserted in this array. |
---|
PDFNetException |
---|
Appends a new Obj::Type::e_name object at the end of the array.
name | - The value of the Obj::Type::e_name object. |
---|
PDFNetException |
---|
Appends a new Obj::Type::e_null object at the end of the array.
PDFNetException |
---|
Appends a new Obj::Type::e_number object at the end of the array.
value | - The value of the Obj::Type::e_number object. |
---|
PDFNetException |
---|
Appends an array of 4 numbers at the end of the array.
rect | - The value for an array of four numbers to be appended. |
---|
PDFNetException |
---|
Appends an array of 4 numbers at the end of the array.
x1 | the x1 |
---|---|
y1 | the y1 |
x2 | the x2 |
y2 | the y2 |
PDFNetException |
---|
Appends a new Obj::Type::e_string object at the end of the array.
value | - The value of the Obj::Type::e_string object. |
---|
PDFNetException |
---|
Appends a new Obj::Type::e_string object at the end of the array.
value | The buffer used to set the value of the Obj::Type::e_string object to be inserted. |
---|
PDFNetException |
---|
Appends a new Obj::Type::e_string object at the end of the array.
Note: InsertText will create the string object as a 'PDF Text' object.
value | The value of the Obj::Type::e_string object to be inserted. |
---|
PDFNetException |
---|
Inserts a <key, Obj> pair in the dictionary.
key | The key of the value to set. |
---|---|
obj | The value to be inserted into the dictionary. If 'obj' is indirect (i.e. is a shared) object it will be inserted by reference, otherwise the object will be cloned and then inserted into the dictionary. |
PDFNetException |
---|
Inserts a <key, Obj::Type::e_array> pair in the dictionary.
Note: If a dictionary already contains an entry with the same key, the old entry will be deleted and all DictIterators to this entry will be invalidated.
key | The key of the value to set. |
---|
PDFNetException |
---|
Inserts a <key, Obj::Type::e_bool> pair in the dictionary.
Note: If a dictionary already contains an entry with the same key, the old entry will be deleted and all DictIterators to this entry will be invalidated.
key | The key of the value to set. |
---|---|
value | The value of the Obj::Type::e_bool object to be inserted into the dictionary. |
PDFNetException |
---|
Inserts a <key, Obj::Type::e_dict> pair in the dictionary.
Note: If a dictionary already contains an entry with the same key, the old entry will be deleted and all DictIterators to this entry will be invalidated.
key | The key of the value to set. |
---|
PDFNetException |
---|
Inserts a <key, [a,b,c,d,h,v]> pair in the dictionary.
Note: If a dictionary already contains an entry with the same key, the old entry will be deleted and all DictIterators to this entry will be invalidated.
key | The key of the value to set. |
---|---|
value | - A matrix used to set the values in an array of six numbers. The resulting array will be inserted into the dictionary. |
PDFNetException |
---|
Inserts a <key, Obj::Type::e_name> pair in the dictionary.
Note: If a dictionary already contains an entry with the same key, the old entry will be deleted and all DictIterators to this entry will be invalidated.
key | The key of the value to set. |
---|---|
name | The value of the Obj::Type::e_name object to be inserted into the dictionary. |
PDFNetException |
---|
Inserts a <key, Obj::Type::e_null> pair in the dictionary.
Note: The effect of calling this method is essentially the same as dict.Erase(key) .
key | The key of the value to set. |
---|
PDFNetException |
---|
Inserts a <key, Obj::Type::e_number> pair in the dictionary.
Note: If a dictionary already contains an entry with the same key, the old entry will be deleted and all DictIterators to this entry will be invalidated.
key | The key of the value to set. |
---|---|
value | The value of the Obj::Type::e_number object to be inserted into the dictionary. |
PDFNetException |
---|
Inserts a <key, [x1,y1,x2,y2]> pair in the dictionary.
Note: If a dictionary already contains an entry with the same key, the old entry will be deleted and all DictIterators to this entry will be invalidated.
key | The key of the value to set. |
---|---|
rect | - The values for an array of four numbers to be inserted into the dictionary. |
PDFNetException |
---|
Inserts a <key, [x1,y1,x2,y2]> pair in the dictionary.
Note: If a dictionary already contains an entry with the same key, the old entry will be deleted and all DictIterators to this entry will be invalidated.
key | The key of the value to set. |
---|---|
x1 | the x1 |
y1 | the y1 |
x2 | the x2 |
y2 | the y2 |
PDFNetException |
---|
Inserts a <key, Obj::Type::e_string> pair in the dictionary.
Note: If a dictionary already contains an entry with the same key, the old entry will be deleted and all DictIterators to this entry will be invalidated.
key | The key of the value to set. |
---|---|
value | The buffer used to set the value of the Obj::Type::e_string object to be inserted into the dictionary. |
PDFNetException |
---|
Inserts a <key, Obj::Type::e_string> pair in the dictionary.
Note: If a dictionary already contains an entry with the same key, the old entry will be deleted and all DictIterators to this entry will be invalidated.
key | The key of the value to set. |
---|---|
value | The value of the Obj::Type::e_string object to be inserted into the dictionary. |
PDFNetException |
---|
Inserts a <key, Obj::Type::e_string> pair in the dictionary.
Note: PutText will create the string object as a 'PDF Text' object.
If a dictionary already contains an entry with the same key, the old entry will be deleted and all DictIterators to this entry will be invalidated.
key | The key of the value to set. |
---|---|
value | The value of the Obj::Type::e_string object to be inserted into the dictionary. |
PDFNetException |
---|
Change the key value of a dictionary entry. The key can't be renamed if another key with the same name already exists in the dictionary. In this case Rename returns false.
old_key | the old_key |
---|---|
new_key | the new_key |
PDFNetException |
---|
Set the boolean value to Obj
b | - bool value used to set Bool object. |
---|
PDFNetException |
---|
Set the object mark. Mark is a boolean value that can be associated with every indirect object. This is especially useful when and object graph should be traversed and an operation should be performed on each node only once.
Note: this method can be invoked on any Obj.
mark | the new mark |
---|
PDFNetException |
---|
Update a stream object with the new content.
data | the character array with the new content stream |
---|---|
filter_chain | the filter_chain to be applied to the stream |
PDFNetException |
---|
Get size of Obj
Note: this method can be invoked on any Obj.
PDFNetException |
---|
The function writes the Obj to the output stream.
Note: this method can be invoked on any Obj.
stream | - the input stream where the Obj will be written |
---|
PDFNetException |
---|