pdf_writing_tools 0.0.15 → 0.0.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/pdf_writing_tools.rb +3 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4b7caaad32d50f7cfa65735368f939907750d085d412659f40a1894326370a0a
4
- data.tar.gz: 5984d8b0d3db96a0421b1abd79b754d49afbb67979d1a1ccd53d87156d232c2a
3
+ metadata.gz: bfd07499bdd57bee5a8827e5117da0d0b62626cfb33eeacdd8bbc4cc87d0c6f2
4
+ data.tar.gz: d213573292a9c3ca25b58670d4b59b3477a0efe3ba9123f24d36f58b1f9e1c43
5
5
  SHA512:
6
- metadata.gz: 2666208041f22a0686e8b78b72e8d2d4c37801bff0d53ce783fb12a795024955f81e17991ce1cba769d00b5be925f1a53e9aec40799aabc280e0d49ec8857b09
7
- data.tar.gz: 502ee8caf62cdc962bd59e4e076881001d82edef8fa5bb6f15da0096dae1db0e5e088216549d49534a9f5c5b5d79d55b06976fd9568164622496ea48001f425b
6
+ metadata.gz: 781320879aeecc90bc789072d63b7628edbc46b343427bb4841f2e3d40c3c7517116e7041fb7d7b61d7e498d576c2f80687389416ead2fa09e2f8dd88de4619f
7
+ data.tar.gz: 77753b05230983e1b88b8627f257e8cb8d27a12267578a4987e560da9e606cd74ae3c67f3167e3b578e4c1beda1a1db9d7c024684865cdac8d9cabe003e009f9
@@ -242,7 +242,7 @@ module PdfWritingTools
242
242
  end
243
243
 
244
244
  # Produce la y su pdf, dove disegnare la prossima riga
245
- def self.draw_row_auto_height(pdf, draw_simulation, x, y, widths, texts, opts = {}, auto_y)
245
+ def self.draw_row_auto_height(pdf, draw_simulation, x, y, widths, texts, opts = {}, auto_y = true)
246
246
  font_sizes = opts[:font_sizes] || [10]
247
247
  styles = opts[:styles] || [:normal]
248
248
  alignments = opts[:alignments] || [:left]
@@ -259,6 +259,7 @@ module PdfWritingTools
259
259
  pdf_margin_right = opts[:pdf_margin_right] || 2.cm
260
260
 
261
261
  new_y = pdf_margin_top
262
+ pdf.y = pdf.y + y
262
263
 
263
264
  loop do
264
265
 
@@ -340,7 +341,7 @@ module PdfWritingTools
340
341
 
341
342
  # ...disegno le celle vere e proprie ad altezza fissa, con l'altezza
342
343
  # ricavata dal passo precedente.
343
- r = draw_cell_fixed_height(pdf, x+offset, y, width, max_cell_height, texts[i], opts, auto_y)
344
+ r = draw_cell_fixed_height(pdf, x+offset, y, width, max_cell_height, texts[i], cell_opts, auto_y)
344
345
 
345
346
  # Gli eventuali "testi residui" (es. raggiunto fine pagina) li raccolgo
346
347
  # nel seguente array
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pdf_writing_tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.15
4
+ version: 0.0.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - JSalvo1978