Class: Poppler::Page
Overview
Additional Method List
-
#wh: _alias from size_
Instance Method Summary collapse
-
#cairo_context ⇒ Cairo::Context
used when ‘cairo’ is installed.
-
#h ⇒ Object
get height.
-
#w ⇒ Object
get width.
Instance Method Details
#cairo_context ⇒ Cairo::Context
used when ‘cairo’ is installed
37 38 39 40 41 42 43 44 |
# File 'lib/tagen/poppler.rb', line 37 def cairo_context require "cairo" require_relative "cairo" surface = Cairo::ImageSurface.new(*self.wh) ctx = Cairo::Context.new(surface) render(ctx) ctx end |