Assembly: TallComponents.PDF.Layout (in TallComponents.PDF.Layout.dll) Version: 3.0.63.0
Syntax
| C# |
|---|
[SerializableAttribute] public class XhtmlParagraph : ParagraphCollection |
| Visual Basic |
|---|
<SerializableAttribute> _ Public Class XhtmlParagraph _ Inherits ParagraphCollection |
Remarks
For this paragraph the HorizontalAlign property has no effect. If you want to align you should do this inside the XHTML.
The XHTML content needs to have a single root tag (like <body> or <html>). Some concepts supported by the browser are currently not supported in TallPDF.NET.
Unsupported XHTML concepts:
- Layers (absolutely positioned or floating <div> tags)
- Javascript and Dynamic content (HTML generated through JavaScript, events etc.)
- Table layout behaves [a bit] different from HTML. We recommend specifying cell widths in absolute units (don't use percentages).
- CSS context selectors are not supported.
Partial support:
- Form and Input tags are partially supported:
- Form elements behave like paragraphs (each placed on a single line). To layout a form place the form elements in a table.
- The following form elements are supported: TEXT, PASSWORD, CHECKBOX, RADIO, SUBMIT, RESET and TEXTAREA
- The following form elements are not supported (might be incomplete): HIDDEN, BUTTON
- A single FORM per document is supported only.
- Some inline style tags ("style=" -properties) and external style tags (from CSS style sheet) are not honored.
TallPDF.NET supports XHTML only. Pure HTML is not supported.
Differences between HTML - XHTML and common pitfalls:
- All elements should be closed for XHTML (either <b>...</b> or <img... />) Mainly changing the generation of <br />, <hr /> <META /> fix 90% of breaking situations...
- Sequencing/nesting is important for opening/closing elements: <b>bold <i> bolditalic</b>italic</i> should be <b>bold <i> bolditalic</i></b><i>italic</i>
- All attribute values should be enclosed in quotes for XHTML: <table border="3" width="300">
See chapter 16 from the Developer Guide for details.
Inheritance Hierarchy
TallComponents.PDF.Layout..::..Object
TallComponents.PDF.Layout.Paragraphs..::..Bordered
TallComponents.PDF.Layout.Paragraphs..::..Paragraph
TallComponents.PDF.Layout.Paragraphs..::..ParagraphCollection
TallComponents.PDF.Layout.Paragraphs..::..XhtmlParagraph