pdf_writing_tools 0.0.15 → 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.
- checksums.yaml +4 -4
- data/lib/pdf_writing_tools.rb +2 -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: f2f8a0ccb66866d41f1d2850c2cf816b9da5bd4e937d5d7d682e692070380171
|
4
|
+
data.tar.gz: '089d69ff0371f3ba3628f688bd8c5382ff4afc65ccdb55f3c27d72e722c0350b'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2849de1a34ed9a956d679b681746ce5af85b1a8f5d90ec2b7eee126c88c3fcb53611f85a5f10ebc4bf219135bade4a4fb4114e2b5d2d76434d0a7db07ed9a5e6
|
7
|
+
data.tar.gz: e410a81da403b64519c356a538ae8af9c8fdb26e006c61cd8663971b1c29cc65442bfe05087edc1d29e0c0ee75b71abeab803accebba3b2e66d444cf968c10b2
|
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]
|
@@ -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],
|
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
|