Skip to main content

parse_content_stream

Function parse_content_stream 

Source
pub fn parse_content_stream(data: &[u8]) -> Result<Vec<Operator>>
Expand description

Parse a content stream into a sequence of operators.

Content streams use postfix notation where operands precede the operator. For example: 100 200 Td means “move text position to (100, 200)”.

Includes safety limits: bails out after [MAX_OPERATORS] operators or [MAX_CONSECUTIVE_ERRORS] consecutive parse failures.