Class: Pdfcrate::Document
- Inherits:
-
Object
- Object
- Pdfcrate::Document
- Defined in:
- lib/pdfcrate.rb
Defined Under Namespace
Classes: FontFamiliesUpdater
Instance Method Summary collapse
-
#_grid_raw ⇒ Object
Override grid to attach document reference.
- #font_families ⇒ Object
- #grid(*args) ⇒ Object
-
#grid_cell_bounding_box(row, col, &block) ⇒ Object
Grid cell bounding box - uses grid layout coordinates.
- #grid_span_bounding_box(r1, c1, r2, c2, &block) ⇒ Object
Instance Method Details
#_grid_raw ⇒ Object
Override grid to attach document reference
47 |
# File 'lib/pdfcrate.rb', line 47 alias_method :_grid_raw, :grid |
#font_families ⇒ Object
82 83 84 |
# File 'lib/pdfcrate.rb', line 82 def font_families FontFamiliesUpdater.new(self) end |
#grid(*args) ⇒ Object
49 50 51 52 53 |
# File 'lib/pdfcrate.rb', line 49 def grid(*args) proxy = _grid_raw(*args) proxy._document = self proxy end |
#grid_cell_bounding_box(row, col, &block) ⇒ Object
Grid cell bounding box - uses grid layout coordinates
56 57 58 |
# File 'lib/pdfcrate.rb', line 56 def grid_cell_bounding_box(row, col, &block) _grid_cell_bb(row, col, &block) end |
#grid_span_bounding_box(r1, c1, r2, c2, &block) ⇒ Object
60 61 62 |
# File 'lib/pdfcrate.rb', line 60 def grid_span_bounding_box(r1, c1, r2, c2, &block) _grid_span_bb(r1, c1, r2, c2, &block) end |