JFLib

pdf/src/read/content.rs#

Source: lib/pdf/src/read/content.rs

The operators of a content stream (ISO 32000-1, 7.8.2): operands, then the operator.  An
inline image (BI ... ID data EI) comes as one operator "BI" with two operands, its
dictionary and its data.  Damaged content gives what can be read: an unknown token is skipped,
operands beyond MAX_OPERANDS are dropped, and the stream ends where the bytes end.
  • struct Op<'a> one operator with its operands

    • operator: &'a [u8] -- the operator: b"Tj", b"re", b"BI" (an inline image), ...
    • operands: Vec<Object>
  • struct Ops<'a> the operators of content-stream bytes, in order

impl<'a> Ops<'a>

  • fn new(content: &'a [u8]) -> Ops<'a>

Source: docs/API.md in the JFLib repository.