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
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
Streamthe export destination. The stream is not closed
encoding
stringthe encoding according to IANA conventions
onlyAscii
boolcodes 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
TextWriterthe export destination. The writer is not closed
encoding
stringthe encoding according to IANA conventions
onlyAscii
boolcodes above 127 will always be escaped with &#nn; if true ,
GetNamedDestination(PdfReader, bool)
public static INullValueDictionary<string, string> GetNamedDestination(PdfReader reader, bool fromNames)
Parameters
Returns
ImportFromXml(Stream)
Import the names from XML. @throws IOException on error
public static INullValueDictionary<string, string> ImportFromXml(Stream inp)
Parameters
inp
Streamthe 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
TextReaderthe 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
OutputNamedDestinationAsStrings(INullValueDictionary<string, string>, PdfWriter)
public static PdfDictionary OutputNamedDestinationAsStrings(INullValueDictionary<string, string> names, PdfWriter writer)
Parameters
names
INullValueDictionary<string, string>writer
PdfWriter
Returns
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
stringh
INullValueDictionary<string, string>
Text(string)
public void Text(string str)
Parameters
str
string
UnEscapeBinaryString(string)
public static string UnEscapeBinaryString(string s)
Parameters
s
string