Method: PDF::Reader::PageState#ctm_transform

Defined in:
lib/pdf/reader/page_state.rb

#ctm_transform(x, y) ⇒ Object

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



221
222
223
224
225
226
# File 'lib/pdf/reader/page_state.rb', line 221

def ctm_transform(x, y)
  [
    (ctm.a * x) + (ctm.c * y) + (ctm.e),
    (ctm.b * x) + (ctm.d * y) + (ctm.f)
  ]
end