C# Class PdfRpt.Core.Helper.HtmlToPdf.RtlElementsCollector

XMLWorker does not support RTL by default. so we need to collect the parsed elements first and then wrap them with a RTL table.
Inheritance: IElementHandler
Mostrar archivo Open project: VahidN/PdfReport Class Usage Examples

Public Methods

Method Description
Add ( IWritable htmlElement ) : void

Intercepting the XMLWorker's parser and collecting its interpreted pdf elements.

RtlElementsCollector ( ) : iTextSharp.text

XMLWorker does not support RTL by default. so we need to collect the parsed elements first and then wrap them with a RTL table.

Private Methods

Method Description
addElement ( IElement divChildElement ) : void
fixNestedTablesRunDirection ( IElement element ) : void

It's necessary to fix the RTL of the final PdfPTables.

Method Details

Add() public method

Intercepting the XMLWorker's parser and collecting its interpreted pdf elements.
public Add ( IWritable htmlElement ) : void
htmlElement IWritable
return void

RtlElementsCollector() public method

XMLWorker does not support RTL by default. so we need to collect the parsed elements first and then wrap them with a RTL table.
public RtlElementsCollector ( ) : iTextSharp.text
return iTextSharp.text