Module: Pdfrb::Content

Defined in:
lib/pdfrb/content.rb,
lib/pdfrb/content/canvas.rb,
lib/pdfrb/content/parser.rb,
lib/pdfrb/content/operator.rb,
lib/pdfrb/content/processor.rb,
lib/pdfrb/content/graphic_object.rb,
lib/pdfrb/content/graphics_state.rb,
lib/pdfrb/content/operators/path.rb,
lib/pdfrb/content/operators/color.rb,
lib/pdfrb/content/operators/general.rb,
lib/pdfrb/content/graphic_object/arc.rb,
lib/pdfrb/content/operators/painting.rb,
lib/pdfrb/content/graphic_object/curve.rb,
lib/pdfrb/content/operators/text_state.rb,
lib/pdfrb/content/operators/text_showing.rb,
lib/pdfrb/content/graphic_object/polyline.rb,
lib/pdfrb/content/graphic_object/rectangle.rb,
lib/pdfrb/content/operators/marked_content.rb,
lib/pdfrb/content/operators/text_positioning.rb,
lib/pdfrb/content/operators/graphics_state_params.rb

Overview

Content-stream layer. Pages and Form XObjects carry a content stream: a sequence of operands operator instructions that draw graphics and text. This layer parses, walks, and emits those streams.

Architecture mirrors HexaPDF::Content:

* +Tokenizer+ from Source layer produces tokens (content
streams use the same PDF object syntax as COS values).
* +Content::Parser+ groups operands + operator into invocations.
* +Content::Operator::Base+ subclasses implement each PDF
operator (one file per category — open/closed via `register`).
* +Content::Processor+ walks a stream, invoking operators
against a +GraphicsState+ (with a stack for `q`/`Q`).
* +Content::Canvas+ is the high-level drawing API on a Stream.

Defined Under Namespace

Modules: GraphicObject, Operator Classes: Canvas, GraphicsState, Parser, Processor