HiraokaHyperTools.iTextSharp-LGPL
0.2.5
|
Public Member Functions | |
virtual void | ToPdf (PdfWriter writer, Stream os) |
virtual byte[] | GetBytes () |
bool | CanBeInObjStm () |
override string | ToString () |
bool | IsNull () |
bool | IsBoolean () |
bool | IsNumber () |
bool | IsString () |
bool | IsName () |
bool | IsArray () |
bool | IsDictionary () |
bool | IsStream () |
bool | IsIndirect () |
Static Public Attributes | |
const int | BOOLEAN = 1 |
const int | NUMBER = 2 |
const int | STRING = 3 |
const int | NAME = 4 |
const int | ARRAY = 5 |
const int | DICTIONARY = 6 |
const int | STREAM = 7 |
const int | NULL = 8 |
const int | INDIRECT = 10 |
const string | NOTHING = "" |
const string | TEXT_PDFDOCENCODING = "PDF" |
const string | TEXT_UNICODE = "UnicodeBig" |
Protected Member Functions | |
PdfObject (int type) | |
PdfObject (int type, string content) | |
PdfObject (int type, byte[] bytes) | |
Protected Attributes | |
byte[] | bytes |
int | type |
PRIndirectReference | indRef |
Properties | |
int | Length [get] |
string | Content [set] |
int | Type [get] |
PRIndirectReference | IndRef [get, set] |
<CODE>PdfObject</CODE> is the abstract baseclass of all PDF objects.
PDF supports seven basic types of objects: bools, numbers, strings, names, arrays, dictionaries and streams. In addition, PDF provides a null object. Objects may be labeled so that they can be referred to by other objects.
All these basic PDF objects are described in the 'Portable Document Format Reference Manual version 1.3' Chapter 4 (pages 37-54).
|
protected |
|
protected |
|
protected |
bool iTextSharp.text.pdf.PdfObject.CanBeInObjStm | ( | ) |
Can this object be in an object stream?
|
virtual |
Gets the presentation of this object in a byte array
Reimplemented in iTextSharp.text.pdf.PRStream, and iTextSharp.text.pdf.PdfString.
bool iTextSharp.text.pdf.PdfObject.IsArray | ( | ) |
bool iTextSharp.text.pdf.PdfObject.IsBoolean | ( | ) |
Checks if this PdfObject
is of the type PdfBoolean
.
true
or false
bool iTextSharp.text.pdf.PdfObject.IsDictionary | ( | ) |
Checks if this PdfObject
is of the type PdfDictionary
.
true
or false
bool iTextSharp.text.pdf.PdfObject.IsIndirect | ( | ) |
Checks if this is an indirect object.
bool iTextSharp.text.pdf.PdfObject.IsName | ( | ) |
bool iTextSharp.text.pdf.PdfObject.IsNull | ( | ) |
bool iTextSharp.text.pdf.PdfObject.IsNumber | ( | ) |
bool iTextSharp.text.pdf.PdfObject.IsStream | ( | ) |
bool iTextSharp.text.pdf.PdfObject.IsString | ( | ) |
|
virtual |
Writes the PDF representation of this PdfObject
as an array of byte
s to the writer.
writer | for backwards compatibility |
os | the outputstream to write the bytes to. |
IOException |
Reimplemented in iTextSharp.text.pdf.PRStream, iTextSharp.text.pdf.PRIndirectReference, iTextSharp.text.pdf.PdfString, iTextSharp.text.pdf.PdfStream, iTextSharp.text.pdf.PdfOutline, iTextSharp.text.pdf.PdfLiteral, iTextSharp.text.pdf.PdfEFStream, iTextSharp.text.pdf.PdfDictionary, iTextSharp.text.pdf.PdfDashPattern, and iTextSharp.text.pdf.PdfArray.
override string iTextSharp.text.pdf.PdfObject.ToString | ( | ) |
Returns the length of the PDF representation of the PdfObject
.
In some cases, namely for PdfString
and PdfStream
, this method differs from the method length
because length
returns the length of the actual content of the PdfObject
.
Remark: the actual content of an object is in most cases identical to its representation. The following statement is always true: Length() >= PdfLength().
String
-representation of this PdfObject
.String
|
static |
a possible type of PdfObject
|
static |
a possible type of PdfObject
|
protected |
the content of this PdfObject
|
static |
a possible type of PdfObject
|
static |
a possible type of PdfObject
|
protected |
Holds value of property indRef.
|
static |
a possible type of PdfObject
|
static |
|
static |
a possible type of PdfObject
|
static |
a possible type of PdfObject
|
static |
a possible type of PdfObject
|
static |
a possible type of PdfObject
|
static |
This is the default encoding to be used for converting strings into bytes and vice versa. The default encoding is PdfDocEcoding.
|
static |
This is the encoding to be used to output text in Unicode.
|
protected |
the type of this PdfObject
|
setprotected |
|
getset |
|
get |
Returns the length of the actual content of the PdfObject
.
In some cases, namely for PdfString
and PdfStream
, this method differs from the method pdfLength
because pdfLength
returns the length of the PDF representation of the object, not of the actual content as does the method length
.
Remark: the actual content of an object is in some cases identical to its representation. The following statement is always true: Length() >= PdfLength().
|
get |
Returns the type of this PdfObject
.