Table of Contents

Class SimpleNamedDestination

Namespace
iTextSharp.text.pdf
Assembly
iTextSharp.LGPLv2.Core.dll

@author Paulo Soares (psoares@consiste.pt)

public sealed class SimpleNamedDestination : ISimpleXmlDocHandler
Inheritance
SimpleNamedDestination
Implements
Inherited Members

Methods

EndDocument()

Called after the document is parsed.

public void EndDocument()

EndElement(string)

public void EndElement(string tag)

Parameters

tag string

EscapeBinaryString(string)

public static string EscapeBinaryString(string s)

Parameters

s string

Returns

string

ExportToXml(INullValueDictionary<string, string>, Stream, string, bool)

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)*> whatever the encoding @throws IOException on error

public static void ExportToXml(INullValueDictionary<string, string> names, Stream outp, string encoding, bool onlyAscii)

Parameters

names INullValueDictionary<string, string>

the names

outp Stream

the export destination. The stream is not closed

encoding string

the encoding according to IANA conventions

onlyAscii bool

codes above 127 will always be escaped with &#nn; if true ,

ExportToXml(INullValueDictionary<string, string>, TextWriter, string, bool)

Exports the bookmarks to XML. whatever the encoding @throws IOException on error

public static void ExportToXml(INullValueDictionary<string, string> names, TextWriter wrt, string encoding, bool onlyAscii)

Parameters

names INullValueDictionary<string, string>

the names

wrt TextWriter

the export destination. The writer is not closed

encoding string

the encoding according to IANA conventions

onlyAscii bool

codes above 127 will always be escaped with &#nn; if true ,

GetNamedDestination(PdfReader, bool)

public static INullValueDictionary<string, string> GetNamedDestination(PdfReader reader, bool fromNames)

Parameters

reader PdfReader
fromNames bool

Returns

INullValueDictionary<string, string>

ImportFromXml(Stream)

Import the names from XML. @throws IOException on error

public static INullValueDictionary<string, string> ImportFromXml(Stream inp)

Parameters

inp Stream

the XML source. The stream is not closed

Returns

INullValueDictionary<string, string>

the names

ImportFromXml(TextReader)

Import the names from XML. @throws IOException on error

public static INullValueDictionary<string, string> ImportFromXml(TextReader inp)

Parameters

inp TextReader

the XML source. The reader is not closed

Returns

INullValueDictionary<string, string>

the names

OutputNamedDestinationAsNames(INullValueDictionary<string, string>, PdfWriter)

public static PdfDictionary OutputNamedDestinationAsNames(INullValueDictionary<string, string> names, PdfWriter writer)

Parameters

names INullValueDictionary<string, string>
writer PdfWriter

Returns

PdfDictionary

OutputNamedDestinationAsStrings(INullValueDictionary<string, string>, PdfWriter)

public static PdfDictionary OutputNamedDestinationAsStrings(INullValueDictionary<string, string> names, PdfWriter writer)

Parameters

names INullValueDictionary<string, string>
writer PdfWriter

Returns

PdfDictionary

StartDocument()

Called when the document starts to be parsed.

public void StartDocument()

StartElement(string, INullValueDictionary<string, string>)

public void StartElement(string tag, INullValueDictionary<string, string> h)

Parameters

tag string
h INullValueDictionary<string, string>

Text(string)

public void Text(string str)

Parameters

str string

UnEscapeBinaryString(string)

public static string UnEscapeBinaryString(string s)

Parameters

s string

Returns

string