pdf_writing_tools 0.0.14 → 0.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/pdf_writing_tools.rb +4 -4
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: abc0c5dd8900c730c7f016b794bafa2da0fd3bb107e381f62289517c64c3d7ad
4
- data.tar.gz: e73fe29e7dc36b1c743709bfa1d18e4af47775b740960b895346f07f10484810
3
+ metadata.gz: f2f8a0ccb66866d41f1d2850c2cf816b9da5bd4e937d5d7d682e692070380171
4
+ data.tar.gz: '089d69ff0371f3ba3628f688bd8c5382ff4afc65ccdb55f3c27d72e722c0350b'
5
5
  SHA512:
6
- metadata.gz: ce5ef7db92f5d41bd438f3d6119b6761c1b96dd248f6fa5a712c898af3a2827cdad2e3b097d40c10ab0b9f61185d80675805458af4ae8423d6ddc40a7739bca9
7
- data.tar.gz: d4ce2bef3b3eef7f8b2919f4dfb6a40ff95b4fc75520777e7aed312b5cc9c82095a42f46ceeef62e242d5c2e24af5fe4950b290916d7884d5bf9af8759b078f4
6
+ metadata.gz: 2849de1a34ed9a956d679b681746ce5af85b1a8f5d90ec2b7eee126c88c3fcb53611f85a5f10ebc4bf219135bade4a4fb4114e2b5d2d76434d0a7db07ed9a5e6
7
+ data.tar.gz: e410a81da403b64519c356a538ae8af9c8fdb26e006c61cd8663971b1c29cc65442bfe05087edc1d29e0c0ee75b71abeab803accebba3b2e66d444cf968c10b2
@@ -238,11 +238,11 @@ module PdfWritingTools
238
238
 
239
239
  offset += width
240
240
  end
241
- pdf.cursor = pdf.cursor - height
241
+ pdf.y = (pdf.cursor - height)
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]
@@ -340,7 +340,7 @@ module PdfWritingTools
340
340
 
341
341
  # ...disegno le celle vere e proprie ad altezza fissa, con l'altezza
342
342
  # ricavata dal passo precedente.
343
- r = draw_cell_fixed_height(pdf, x+offset, y, width, max_cell_height, texts[i], opts, auto_y)
343
+ r = draw_cell_fixed_height(pdf, x+offset, y, width, max_cell_height, texts[i], cell_opts, auto_y)
344
344
 
345
345
  # Gli eventuali "testi residui" (es. raggiunto fine pagina) li raccolgo
346
346
  # nel seguente array
@@ -363,7 +363,7 @@ module PdfWritingTools
363
363
  end
364
364
  end
365
365
 
366
- pdf.cursor = pdf_height - new_y
366
+ pdf.y = (pdf_height - new_y)
367
367
 
368
368
  return new_y
369
369
  end
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.14
4
+ version: 0.0.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - JSalvo1978