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.
- checksums.yaml +4 -4
- data/lib/pdf_writing_tools.rb +3 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bfd07499bdd57bee5a8827e5117da0d0b62626cfb33eeacdd8bbc4cc87d0c6f2
|
4
|
+
data.tar.gz: d213573292a9c3ca25b58670d4b59b3477a0efe3ba9123f24d36f58b1f9e1c43
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 781320879aeecc90bc789072d63b7628edbc46b343427bb4841f2e3d40c3c7517116e7041fb7d7b61d7e498d576c2f80687389416ead2fa09e2f8dd88de4619f
|
7
|
+
data.tar.gz: 77753b05230983e1b88b8627f257e8cb8d27a12267578a4987e560da9e606cd74ae3c67f3167e3b578e4c1beda1a1db9d7c024684865cdac8d9cabe003e009f9
|
data/lib/pdf_writing_tools.rb
CHANGED
@@ -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],
|
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
|