pdf_writing_tools 0.0.16 → 0.0.18

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 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f2f8a0ccb66866d41f1d2850c2cf816b9da5bd4e937d5d7d682e692070380171
4
- data.tar.gz: '089d69ff0371f3ba3628f688bd8c5382ff4afc65ccdb55f3c27d72e722c0350b'
3
+ metadata.gz: '01850947c8686b987899d011697d5796c94ba7b3c3edd47dd95e77b1edf83437'
4
+ data.tar.gz: bbc70c15e5bb7368342bcd81d2091cae811738abfb3ac5d8226dfc3814949656
5
5
  SHA512:
6
- metadata.gz: 2849de1a34ed9a956d679b681746ce5af85b1a8f5d90ec2b7eee126c88c3fcb53611f85a5f10ebc4bf219135bade4a4fb4114e2b5d2d76434d0a7db07ed9a5e6
7
- data.tar.gz: e410a81da403b64519c356a538ae8af9c8fdb26e006c61cd8663971b1c29cc65442bfe05087edc1d29e0c0ee75b71abeab803accebba3b2e66d444cf968c10b2
6
+ metadata.gz: a59da430b55240d7757a8f0fcd9eebc7d30be53562fea63e857e7782b8ad5db0e98f7a28824ec3d95a1749c0d68bfe489e1c47b341f317fdecd410c4d8ee8cf8
7
+ data.tar.gz: 0e84e64bf4f74aa40a209261f1c6dddc1c1bf8726a647938744c1997e5f1d0f769af97977aa7d1d4a63d6bae835aadcee5de7044fc27a10f5fd807a7cfcb5cf9
@@ -137,6 +137,10 @@ module PdfWritingTools
137
137
 
138
138
 
139
139
  result = 0
140
+
141
+ # Il testo in modalità simulazione, verrà generato in posizione y_pos1, tenendo conto del padding.
142
+ # In questo modo, quando andrò a disegnare la cella vera e propria in posizione y_pos2, il testo
143
+ # avrà il suo "spazio" (padding)
140
144
  y_pos1 = auto_y ? (pdf.cursor - top_padding) : (pdf_height - y - top_padding)
141
145
  y_pos2 = auto_y ? pdf.cursor : (pdf_height - y)
142
146
 
@@ -173,7 +177,6 @@ module PdfWritingTools
173
177
  pdf.stroke_color(border_color) # Colore del bordo
174
178
 
175
179
 
176
-
177
180
  if no_background
178
181
  else
179
182
  pdf.fill_and_stroke_rectangle([x, y_pos2], (w + left_padding + right_padding), (h+top_padding+bottom_padding))
@@ -261,7 +264,6 @@ module PdfWritingTools
261
264
  new_y = pdf_margin_top
262
265
 
263
266
  loop do
264
-
265
267
  max_cell_height = 0
266
268
 
267
269
  # 1 - Cerco l'altezza della riga
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pdf_writing_tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.16
4
+ version: 0.0.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - JSalvo1978
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-05 00:00:00.000000000 Z
11
+ date: 2024-01-06 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Plugin for write pdf in a simplified manner, using prawn as backend
14
14
  email: