|
override void | ResetHeader () |
|
override void | ResetFooter () |
|
override void | ResetPageCount () |
|
override void | Open () |
|
override void | Close () |
|
override bool | Add (IElement element) |
|
override bool | NewPage () |
|
override bool | SetMargins (float left, float right, float top, float bottom) |
|
override bool | SetPageSize (Rectangle rect) |
|
void | SetAutogenerateTOCEntries (bool autogenerate) |
|
RtfDocumentSettings | GetDocumentSettings () |
|
void | ImportRtfDocument (Stream documentSource) |
|
void | ImportRtfDocument (Stream documentSource, IEventListener[] events) |
|
void | ImportRtfFragment (Stream documentSource, RtfImportMappings mappings) |
|
void | ImportRtfFragment (Stream documentSource, RtfImportMappings mappings, IEventListener[] events) |
|
void | ImportRtfDocumentIntoElement (IElement elem, FileStream documentSource) |
|
void | ImportRtfDocumentIntoElement (IElement elem, FileStream documentSource, IEventListener[] events) |
|
virtual void | Pause () |
| Let the writer know that all writing has to be paused. More...
|
|
bool | IsPaused () |
|
virtual void | Resume () |
| Let the writer know that writing may be resumed. More...
|
|
virtual void | Flush () |
| Flushes the Stream. More...
|
|
virtual bool | SetMarginMirroring (bool marginMirroring) |
|
virtual bool | SetMarginMirroringTopBottom (bool MarginMirroring) |
|
The RtfWriter allows the creation of rtf documents via the iText system
Version:
- Id
- RtfWriter2.cs,v 1.11 2008/05/23 17:24:11 psoares33 Exp
- Author
- Mark Hall (Mark..nosp@m.Hall.nosp@m.@mail.nosp@m..roo.nosp@m.m3b.e.nosp@m.u)
◆ RtfWriter2()
iTextSharp.text.rtf.RtfWriter2.RtfWriter2 |
( |
Document |
doc, |
|
|
Stream |
os |
|
) |
| |
|
protected |
Constructs a new RtfWriter that listens to the specified Document and writes its output to the Stream.
- Parameters
-
doc | The Document that this RtfWriter listens to |
os | The Stream to write to |
◆ Add()
override bool iTextSharp.text.rtf.RtfWriter2.Add |
( |
IElement |
element | ) |
|
|
virtual |
◆ Close()
override void iTextSharp.text.rtf.RtfWriter2.Close |
( |
| ) |
|
|
virtual |
Closes the RtfDocument. This causes the document to be written to the specified Stream
Reimplemented from iTextSharp.text.DocWriter.
◆ GetDocumentSettings()
Gets the RtfDocumentSettings that specify how the rtf document is generated.
- Returns
- The current RtfDocumentSettings.
◆ GetInstance()
Static method to generate RtfWriters
- Parameters
-
doc | The Document that this RtfWriter listens to |
os | The Stream to write to |
- Returns
- The new RtfWriter
◆ ImportRtfDocument() [1/2]
void iTextSharp.text.rtf.RtfWriter2.ImportRtfDocument |
( |
Stream |
documentSource | ) |
|
Adds the complete RTF document to the current RTF document being generated. It will parse the font and color tables and correct the font and color references so that the imported RTF document retains its formattings.
- Parameters
-
documentSource | The Stream to read the RTF document from. |
- Exceptions
-
IOException | On errors reading the RTF document. |
DocumentException | On errors adding to this RTF document. |
◆ ImportRtfDocument() [2/2]
void iTextSharp.text.rtf.RtfWriter2.ImportRtfDocument |
( |
Stream |
documentSource, |
|
|
IEventListener[] |
events |
|
) |
| |
Adds the complete RTF document to the current RTF document being generated. It will parse the font and color tables and correct the font and color references so that the imported RTF document retains its formattings. Uses new RtfParser object.
- Parameters
-
documentSource | The Stream to read the RTF document from. |
eventListeners | The array of event listeners. May be null |
- Exceptions
-
- See also
- com.lowagie.text.rtf.parser.RtfParser
-
com.lowagie.text.rtf.parser.RtfParser::importRtfDocument(Reader, RtfDocument)
- Since
- 2.0.8
- Author
- Howard Shank
◆ ImportRtfDocumentIntoElement() [1/2]
void iTextSharp.text.rtf.RtfWriter2.ImportRtfDocumentIntoElement |
( |
IElement |
elem, |
|
|
FileStream |
documentSource |
|
) |
| |
Adds the complete RTF document to the current RTF element being generated. It will parse the font and color tables and correct the font and color references so that the imported RTF document retains its formattings.
- Parameters
-
elem | The Element the RTF document is to be imported into. |
documentSource | The Reader to read the RTF document from. |
- Exceptions
-
IOException | On errors reading the RTF document. |
DocumentException | On errors adding to this RTF document. |
- Since
- 2.1.4
◆ ImportRtfDocumentIntoElement() [2/2]
void iTextSharp.text.rtf.RtfWriter2.ImportRtfDocumentIntoElement |
( |
IElement |
elem, |
|
|
FileStream |
documentSource, |
|
|
IEventListener[] |
events |
|
) |
| |
Adds the complete RTF document to the current RTF element being generated. It will parse the font and color tables and correct the font and color references so that the imported RTF document retains its formattings.
- Parameters
-
elem | The Element the RTF document is to be imported into. |
documentSource | The Reader to read the RTF document from. |
events | The event array for listeners. |
- Exceptions
-
IOException | On errors reading the RTF document. |
DocumentException | On errors adding to this RTF document. |
- Since
- 2.1.4
◆ ImportRtfFragment() [1/2]
void iTextSharp.text.rtf.RtfWriter2.ImportRtfFragment |
( |
Stream |
documentSource, |
|
|
RtfImportMappings |
mappings |
|
) |
| |
Adds a fragment of an RTF document to the current RTF document being generated. Since this fragment doesn't contain font or color tables, all fonts and colors are mapped to the default font and color. If the font and color mappings are known, they can be specified via the mappings parameter.
- Parameters
-
documentSource | The Stream to read the RTF fragment from. |
mappings | The RtfImportMappings that contain font and color mappings to apply to the fragment. |
- Exceptions
-
IOException | On errors reading the RTF fragment. |
DocumentException | On errors adding to this RTF fragment. |
◆ ImportRtfFragment() [2/2]
Adds a fragment of an RTF document to the current RTF document being generated. Since this fragment doesn't contain font or color tables, all fonts and colors are mapped to the default font and color. If the font and color mappings are known, they can be specified via the mappings parameter. Uses new RtfParser object.
- Parameters
-
documentSource | The Stream to read the RTF fragment from. |
mappings | The RtfImportMappings that contain font and color mappings to apply to the fragment. |
eventListeners | The array of event listeners. May be null |
- Exceptions
-
IOException | On errors reading the RTF fragment. |
DocumentException | On errors adding to this RTF fragment. |
- See also
- com.lowagie.text.rtf.parser.RtfImportMappings
-
com.lowagie.text.rtf.parser.RtfParser
-
com.lowagie.text.rtf.parser.RtfParser::importRtfFragment(Reader, RtfDocument, com.lowagie.text.rtf.parser.RtfImportMappings)
- Since
- 2.0.8
- Author
- Howard Shank
◆ NewPage()
override bool iTextSharp.text.rtf.RtfWriter2.NewPage |
( |
| ) |
|
|
virtual |
◆ Open()
override void iTextSharp.text.rtf.RtfWriter2.Open |
( |
| ) |
|
|
virtual |
◆ ResetFooter()
override void iTextSharp.text.rtf.RtfWriter2.ResetFooter |
( |
| ) |
|
|
virtual |
◆ ResetHeader()
override void iTextSharp.text.rtf.RtfWriter2.ResetHeader |
( |
| ) |
|
|
virtual |
◆ ResetPageCount()
override void iTextSharp.text.rtf.RtfWriter2.ResetPageCount |
( |
| ) |
|
|
virtual |
◆ SetAutogenerateTOCEntries()
void iTextSharp.text.rtf.RtfWriter2.SetAutogenerateTOCEntries |
( |
bool |
autogenerate | ) |
|
Whether to automagically generate table of contents entries when adding Chapters or Sections.
- Parameters
-
autogenerate | Whether to automatically generate TOC entries |
◆ SetMargins()
override bool iTextSharp.text.rtf.RtfWriter2.SetMargins |
( |
float |
left, |
|
|
float |
right, |
|
|
float |
top, |
|
|
float |
bottom |
|
) |
| |
|
virtual |
Sets the page margins
- Parameters
-
left | The left margin |
right | The right margin |
top | The top margin |
bottom | The bottom margin |
- Returns
false
Reimplemented from iTextSharp.text.DocWriter.
◆ SetPageSize()
override bool iTextSharp.text.rtf.RtfWriter2.SetPageSize |
( |
Rectangle |
rect | ) |
|
|
virtual |
◆ Footer
Sets the footer to use
- Parameters
-
◆ Header
Sets the header to use
- Parameters
-
◆ PageCount
override int iTextSharp.text.rtf.RtfWriter2.PageCount |
|
set |
This method is not supported in the RtfWriter
- Parameters
-
The documentation for this class was generated from the following file: