Class PDF::Reader::PageState
In: lib/pdf/reader/page_state.rb
Parent: Object

Methods

Constants

DEFAULT_GRAPHICS_STATE = { :ctm => Matrix.identity(3), :char_spacing => 0, :word_spacing => 0, :h_scaling => 100, :text_leading => 0, :text_font => nil, :text_font_size => nil, :text_mode => 0, :text_rise => 0, :text_knockout => 0

Public Class methods

starting a new page

Public Instance methods

Text Object Operators

update the current transformation matrix.

If the CTM is currently undefined, just store the new values.

If there‘s an existing CTM, then multiply the existing matrix with the new matrix to form the updated matrix.

transform x and y co-ordinates from the current user space to the underlying device space.

Text Positioning Operators

Graphics State Operators

transform x and y co-ordinates from the current text space to the underlying device space.

[Validate]