Skip to content

Encoding pipeline

Encoding orchestrators that drive the strategy-based pagination and rendering flow.

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(document)

Encode an RTF document using the unified encoder.

Parameters:

Name Type Description Default
document RTFDocument

The RTF document to encode

required

Returns:

Type Description
str

Complete RTF string

UnifiedRTFEncoder

Bases: EncodingStrategy

Unified RTF Encoder using the strategy pattern for pagination and rendering.

encode(document)

Encode the document using the unified pipeline.