HiraokaHyperTools.iTextSharp-LGPL  0.2.5
iTextSharp.text.pdf.SimpleNamedDestination Class Reference
Inheritance diagram for iTextSharp.text.pdf.SimpleNamedDestination:
iTextSharp.text.xml.simpleparser.ISimpleXMLDocHandler

Public Member Functions

void EndDocument ()
 
void EndElement (String tag)
 
void StartDocument ()
 
void StartElement (String tag, Hashtable h)
 
void Text (String str)
 

Static Public Member Functions

static Hashtable GetNamedDestination (PdfReader reader, bool fromNames)
 
static void ExportToXML (Hashtable names, Stream outp, String encoding, bool onlyASCII)
 
static void ExportToXML (Hashtable names, TextWriter wrt, String encoding, bool onlyASCII)
 
static Hashtable ImportFromXML (Stream inp)
 
static Hashtable ImportFromXML (TextReader inp)
 
static PdfDictionary OutputNamedDestinationAsNames (Hashtable names, PdfWriter writer)
 
static PdfDictionary OutputNamedDestinationAsStrings (Hashtable names, PdfWriter writer)
 
static String EscapeBinaryString (String s)
 
static String UnEscapeBinaryString (String s)
 

Detailed Description

Member Function Documentation

◆ EndDocument()

void iTextSharp.text.pdf.SimpleNamedDestination.EndDocument ( )

Called after the document is parsed.

Implements iTextSharp.text.xml.simpleparser.ISimpleXMLDocHandler.

◆ EndElement()

void iTextSharp.text.pdf.SimpleNamedDestination.EndElement ( String  tag)

Called when an end tag is found.

Parameters
tagthe tag name

Implements iTextSharp.text.xml.simpleparser.ISimpleXMLDocHandler.

◆ EscapeBinaryString()

static String iTextSharp.text.pdf.SimpleNamedDestination.EscapeBinaryString ( String  s)
static

◆ ExportToXML() [1/2]

static void iTextSharp.text.pdf.SimpleNamedDestination.ExportToXML ( Hashtable  names,
Stream  outp,
String  encoding,
bool  onlyASCII 
)
static

Exports the destinations to XML. The DTD for this XML is:

<?xml version='1.0' encoding='UTF-8'?>
<!ELEMENT Name (#PCDATA)>
<!ATTLIST Name
   Page CDATA #IMPLIED
>
<!ELEMENT Destination (Name)*>
Parameters
namesthe names
outpthe export destination. The stream is not closed
encodingthe encoding according to IANA conventions
onlyASCIIcodes above 127 will always be escaped with &#nn; if true, whatever the encoding
Exceptions
IOExceptionon error

◆ ExportToXML() [2/2]

static void iTextSharp.text.pdf.SimpleNamedDestination.ExportToXML ( Hashtable  names,
TextWriter  wrt,
String  encoding,
bool  onlyASCII 
)
static

Exports the bookmarks to XML.

Parameters
namesthe names
wrtthe export destination. The writer is not closed
encodingthe encoding according to IANA conventions
onlyASCIIcodes above 127 will always be escaped with &#nn; if true, whatever the encoding
Exceptions
IOExceptionon error

◆ GetNamedDestination()

static Hashtable iTextSharp.text.pdf.SimpleNamedDestination.GetNamedDestination ( PdfReader  reader,
bool  fromNames 
)
static

◆ ImportFromXML() [1/2]

static Hashtable iTextSharp.text.pdf.SimpleNamedDestination.ImportFromXML ( Stream  inp)
static

Import the names from XML.

Parameters
inpthe XML source. The stream is not closed
Exceptions
IOExceptionon error
Returns
the names

◆ ImportFromXML() [2/2]

static Hashtable iTextSharp.text.pdf.SimpleNamedDestination.ImportFromXML ( TextReader  inp)
static

Import the names from XML.

Parameters
inpthe XML source. The reader is not closed
Exceptions
IOExceptionon error
Returns
the names

◆ OutputNamedDestinationAsNames()

static PdfDictionary iTextSharp.text.pdf.SimpleNamedDestination.OutputNamedDestinationAsNames ( Hashtable  names,
PdfWriter  writer 
)
static

◆ OutputNamedDestinationAsStrings()

static PdfDictionary iTextSharp.text.pdf.SimpleNamedDestination.OutputNamedDestinationAsStrings ( Hashtable  names,
PdfWriter  writer 
)
static

◆ StartDocument()

void iTextSharp.text.pdf.SimpleNamedDestination.StartDocument ( )

Called when the document starts to be parsed.

Implements iTextSharp.text.xml.simpleparser.ISimpleXMLDocHandler.

◆ StartElement()

void iTextSharp.text.pdf.SimpleNamedDestination.StartElement ( String  tag,
Hashtable  h 
)

Called when a start tag is found.

Parameters
tagthe tag name
hthe tag's attributes

Implements iTextSharp.text.xml.simpleparser.ISimpleXMLDocHandler.

◆ Text()

void iTextSharp.text.pdf.SimpleNamedDestination.Text ( String  str)

Called when a text element is found.

Parameters
strthe text element, probably a fragment.

Implements iTextSharp.text.xml.simpleparser.ISimpleXMLDocHandler.

◆ UnEscapeBinaryString()

static String iTextSharp.text.pdf.SimpleNamedDestination.UnEscapeBinaryString ( String  s)
static

The documentation for this class was generated from the following file: