Encoding pipeline
Encoding orchestrators that drive the strategy-based pagination and rendering flow.
RTFEncodingEngine
rtflite.encoding.RTFEncodingEngine
RTFEncodingEngine()
Main engine for RTF document encoding.
This class orchestrates the encoding process using the UnifiedRTFEncoder which implements the strategy pattern for pagination and rendering.
encode_document
encode_document(document: RTFDocument ) -> str
Encode an RTF document using the unified encoder.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
document
|
|
The RTF document to encode |
required |
Returns:
| Type | Description |
|---|---|
|
Complete RTF string |
UnifiedRTFEncoder
rtflite.encoding.UnifiedRTFEncoder
UnifiedRTFEncoder()
Bases:
Unified RTF Encoder using the strategy pattern for pagination and rendering.
encode
encode(document: Any ) -> str
Encode the document using the unified pipeline.