Method: PDF::Reader::PageReceiver#ctm_transform
- Defined in:
- lib/pdf/reader/page_receiver.rb
#ctm_transform(x, y) ⇒ Object
transform x and y co-ordinates from the current user space to the underlying device space.
246 247 248 249 250 251 |
# File 'lib/pdf/reader/page_receiver.rb', line 246 def ctm_transform(x, y) [ (ctm.a * x) + (ctm.c * y) + (ctm.e), (ctm.b * x) + (ctm.d * y) + (ctm.f) ] end |