Table of Contents

Class RtfImportMappings

Namespace
iTextSharp.text.rtf.parser
Assembly
iTextSharp.LGPLv2.Core.dll

The RtfImportMappings make it possible to define font and color mappings when using the RtfWriter2.importRtfFragment method. This is necessary, because a RTF fragment does not contain font or color information, just references to the font and color tables.

The font mappings are fontNr -> fontName and the color mappigns are colorNr -> Color. @author Mark Hall (Mark.Hall@mail.room3b.eu) @author Howard Shank (hgshank@yahoo.com)

public class RtfImportMappings
Inheritance
RtfImportMappings
Inherited Members

Constructors

RtfImportMappings()

Constructs a new RtfImportMappings initialising the mappings.

public RtfImportMappings()

Methods

AddColor(string, BaseColor)

Add a color to the list of mappings.

public void AddColor(string colorNr, BaseColor color)

Parameters

colorNr string

The color number.

color BaseColor

The Color.

AddFont(string, string)

Add a font to the list of mappings.

public void AddFont(string fontNr, string fontName)

Parameters

fontNr string

The font number.

fontName string

The font name.

AddList(string, string)

Add a List to the list of mappings.

public void AddList(string listNr, string list)

Parameters

listNr string

The List number.

list string

The List.

AddStylesheetList(string, string)

Add a Stylesheet List to the list of mappings.

public void AddStylesheetList(string stylesheetListNr, string list)

Parameters

stylesheetListNr string

The Stylesheet List number.

list string

The StylesheetList.

GetColorMappings()

Gets the list of color mappings. String to Color.

public INullValueDictionary<string, BaseColor> GetColorMappings()

Returns

INullValueDictionary<string, BaseColor>

The color mappings.

GetFontMappings()

Gets the list of font mappings. String to String.

public INullValueDictionary<string, string> GetFontMappings()

Returns

INullValueDictionary<string, string>

The font mappings.

GetListMappings()

Gets the list of List mappings.

public INullValueDictionary<string, string> GetListMappings()

Returns

INullValueDictionary<string, string>

The List mappings.

GetStylesheetListMappings()

Gets the list of Stylesheet mappings. .

public INullValueDictionary<string, string> GetStylesheetListMappings()

Returns

INullValueDictionary<string, string>

The Stylesheet List mappings.