Skip to content

feat: Text rendering modes (ISO 32000-2 §9.3.6) (Block F) #26

@ralflang

Description

@ralflang

Text Rendering Modes

Add setTextRenderingMode(TextRenderingMode $mode) to ContentStreamBuilder and PdfWriter.

Enum values: Fill (0), Stroke (1), FillStroke (2), Invisible (3), FillClip (4), StrokeClip (5), FillStrokeClip (6), Clip (7).

Emits the Tr operator inside text objects. PdfWriter tracks current mode and emits on change.

Key use case: Invisible text overlay for searchable scanned documents (OCR layer).

Tests: each rendering mode emits correct Tr value, invisible text produces no visible stroke/fill operators.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions