class

PDF::Writer::DocumentWriter

Inherits Reference < Object

Writes a complete PDF document to an IO.

The writer handles:

  • PDF header and version
  • Binary marker (for proper binary handling)
  • All indirect objects
  • Cross-reference table
  • Trailer dictionary
  • EOF marker

Constructors

new(document : Document)
Source

Instance methods

document

The document being written

Source
write(io : IO) : Nil

Writes the complete PDF to the given IO.

Source