ruby_danfe 0.0.3 → 0.0.4

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. data/lib/ruby_danfe.rb +223 -212
  2. data/ruby_danfe.gemspec +1 -1
  3. metadata +4 -4
data/lib/ruby_danfe.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  require 'rubygems'
2
2
  require 'prawn'
3
+ require 'prawn/measurement_extensions'
3
4
  require 'nokogiri'
4
5
 
5
6
  module RubyDanfe
@@ -14,651 +15,661 @@ module RubyDanfe
14
15
  node = @xml.css(xpath)
15
16
  return node ? node.text : ''
16
17
  end
18
+ def render
19
+ RubyDanfe.render @xml.to_s
20
+ end
17
21
  end
18
22
 
19
23
  def self.generatePDFFromXML(xml)
20
24
 
21
- pdf = Prawn::Document.new
25
+ pdf = Prawn::Document.new(
26
+ :page_size => 'A4',
27
+ :page_layout => :portrait,
28
+ :left_margin => 0.5.cm,
29
+ :right_margin => 0.5.cm,
30
+ :top_margin => 0.5.cm,
31
+ :botton_margin => 0.5.cm
32
+ )
22
33
 
23
34
  # rectangle
24
- pdf.stroke_rectangle [328, 653], 222, 22
35
+ pdf.stroke_rectangle [342, 693], 222, 22
25
36
 
26
37
  # rectangle
27
- pdf.stroke_rectangle [328, 697], 222, 84
38
+ pdf.stroke_rectangle [342, 737], 222, 84
28
39
 
29
40
  # rectangle
30
- pdf.stroke_rectangle [347, 457], 96, 18
41
+ pdf.stroke_rectangle [361, 497], 96, 18
31
42
 
32
43
  # rectangle
33
- pdf.stroke_rectangle [443, 749], 107, 37
44
+ pdf.stroke_rectangle [457, 789], 107, 37
34
45
 
35
46
  # rectangle
36
- pdf.stroke_rectangle [112, 526], 63, 44
47
+ pdf.stroke_rectangle [126, 566], 63, 44
37
48
 
38
49
  # rectangle
39
- pdf.stroke_rectangle [49, 526], 63, 44
50
+ pdf.stroke_rectangle [63, 566], 63, 44
40
51
 
41
52
  # rectangle
42
- pdf.stroke_rectangle [-14, 526], 63, 44
53
+ pdf.stroke_rectangle [0, 566], 63, 44
43
54
 
44
55
  # rectangle
45
- pdf.stroke_rectangle [429, 431], 24, 18
56
+ pdf.stroke_rectangle [443, 471], 24, 18
46
57
 
47
58
  # rectangle
48
59
 
49
- pdf.stroke_rectangle [165, 431], 59, 18
60
+ pdf.stroke_rectangle [179, 471], 59, 18
50
61
 
51
62
  # rectangle
52
- pdf.stroke_rectangle [213, 424], 9, 9
63
+ pdf.stroke_rectangle [227, 464], 9, 9
53
64
 
54
65
  # rectangle
55
- pdf.stroke_rectangle [364, 613], 186, 18
66
+ pdf.stroke_rectangle [378, 653], 186, 18
56
67
 
57
68
  # rectangle
58
- pdf.stroke_rectangle [175, 613], 189, 18
69
+ pdf.stroke_rectangle [189, 653], 189, 18
59
70
 
60
71
  # rectangle
61
- pdf.stroke_rectangle [328, 673], 222, 18
72
+ pdf.stroke_rectangle [342, 713], 222, 18
62
73
 
63
74
  # rectangle
64
- pdf.stroke_rectangle [328, 697], 222, 24
75
+ pdf.stroke_rectangle [342, 737], 222, 24
65
76
 
66
77
  # rectangle
67
- pdf.stroke_rectangle [264, 697], 64, 66
78
+ pdf.stroke_rectangle [278, 737], 64, 66
68
79
 
69
80
  # rectangle
70
- pdf.stroke_rectangle [312, 668], 9, 10
81
+ pdf.stroke_rectangle [326, 708], 9, 10
71
82
 
72
83
  # rectangle
73
- pdf.stroke_rectangle [-14, 431], 179, 18
84
+ pdf.stroke_rectangle [0, 471], 179, 18
74
85
 
75
86
  # rectangle
76
- pdf.stroke_rectangle [-14, 475], 134, 18
87
+ pdf.stroke_rectangle [0, 515], 134, 18
77
88
 
78
89
  # rectangle
79
- pdf.stroke_rectangle [-14, 457], 91, 18
90
+ pdf.stroke_rectangle [0, 497], 91, 18
80
91
 
81
92
  # rectangle
82
- pdf.stroke_rectangle [-14, 587], 373, 20
93
+ pdf.stroke_rectangle [0, 627], 373, 20
83
94
 
84
95
  # rectangle
85
- pdf.stroke_rectangle [224, 431], 75, 18
96
+ pdf.stroke_rectangle [238, 471], 75, 18
86
97
 
87
98
  # rectangle
88
- pdf.stroke_rectangle [119, 475], 115, 18
99
+ pdf.stroke_rectangle [133, 515], 115, 18
89
100
 
90
101
  # rectangle
91
- pdf.stroke_rectangle [233, 475], 115, 18
102
+ pdf.stroke_rectangle [247, 515], 115, 18
92
103
 
93
104
  # rectangle
94
- pdf.stroke_rectangle [347, 475], 97, 18
105
+ pdf.stroke_rectangle [361, 515], 97, 18
95
106
 
96
107
  # rectangle
97
- pdf.stroke_rectangle [443, 475], 107, 18
108
+ pdf.stroke_rectangle [457, 515], 107, 18
98
109
 
99
110
  # rectangle
100
- pdf.stroke_rectangle [-14, 568], 305, 18
111
+ pdf.stroke_rectangle [0, 608], 305, 18
101
112
 
102
113
  # rectangle
103
- pdf.stroke_rectangle [471, 587], 79, 20
114
+ pdf.stroke_rectangle [485, 627], 79, 20
104
115
 
105
116
  # rectangle
106
- pdf.stroke_rectangle [358, 587], 113, 20
117
+ pdf.stroke_rectangle [372, 627], 113, 20
107
118
 
108
119
  # rectangle
109
- pdf.stroke_rectangle [290, 568], 125, 18
120
+ pdf.stroke_rectangle [304, 608], 125, 18
110
121
 
111
122
  # rectangle
112
- pdf.stroke_rectangle [414, 568], 57, 18
123
+ pdf.stroke_rectangle [428, 608], 57, 18
113
124
 
114
125
  # rectangle
115
- pdf.stroke_rectangle [213, 551], 111, 18
126
+ pdf.stroke_rectangle [227, 591], 111, 18
116
127
 
117
128
  # rectangle
118
- pdf.stroke_rectangle [323, 551], 32, 18
129
+ pdf.stroke_rectangle [337, 591], 32, 18
119
130
 
120
131
  # rectangle
121
- pdf.stroke_rectangle [471, 568], 79, 18
132
+ pdf.stroke_rectangle [485, 608], 79, 18
122
133
 
123
134
  # rectangle
124
- pdf.stroke_rectangle [471, 551], 79, 18
135
+ pdf.stroke_rectangle [485, 591], 79, 18
125
136
 
126
137
  # rectangle
127
- pdf.stroke_rectangle [354, 551], 117, 18
138
+ pdf.stroke_rectangle [368, 591], 117, 18
128
139
 
129
140
  # rectangle
130
- pdf.stroke_rectangle [-14, 551], 228, 18
141
+ pdf.stroke_rectangle [0, 591], 228, 18
131
142
 
132
143
  # rectangle
133
- pdf.stroke_rectangle [255, 457], 92, 18
144
+ pdf.stroke_rectangle [269, 497], 92, 18
134
145
 
135
146
  # rectangle
136
- pdf.stroke_rectangle [76, 457], 90, 18
147
+ pdf.stroke_rectangle [90, 497], 90, 18
137
148
 
138
149
  # rectangle
139
- pdf.stroke_rectangle [165, 457], 90, 18
150
+ pdf.stroke_rectangle [179, 497], 90, 18
140
151
 
141
152
  # rectangle
142
- pdf.stroke_rectangle [443, 457], 107, 18
153
+ pdf.stroke_rectangle [457, 497], 107, 18
143
154
 
144
155
  # rectangle
145
- pdf.stroke_rectangle [298, 431], 131, 18
156
+ pdf.stroke_rectangle [312, 471], 131, 18
146
157
 
147
158
  # rectangle
148
- pdf.stroke_rectangle [245, 413], 185, 18
159
+ pdf.stroke_rectangle [259, 453], 185, 18
149
160
 
150
161
  # rectangle
151
- pdf.stroke_rectangle [453, 431], 97, 18
162
+ pdf.stroke_rectangle [467, 471], 97, 18
152
163
 
153
164
  # rectangle
154
- pdf.stroke_rectangle [-14, 413], 260, 18
165
+ pdf.stroke_rectangle [0, 453], 260, 18
155
166
 
156
167
  # rectangle
157
- pdf.stroke_rectangle [-14, 395], 67, 18
168
+ pdf.stroke_rectangle [0, 435], 67, 18
158
169
 
159
170
  # rectangle
160
- pdf.stroke_rectangle [53, 395], 117, 18
171
+ pdf.stroke_rectangle [67, 435], 117, 18
161
172
 
162
173
  # rectangle
163
- pdf.stroke_rectangle [170, 395], 107, 18
174
+ pdf.stroke_rectangle [184, 435], 107, 18
164
175
 
165
176
  # rectangle
166
- pdf.stroke_rectangle [277, 395], 109, 18
177
+ pdf.stroke_rectangle [291, 435], 109, 18
167
178
 
168
179
  # rectangle
169
- pdf.stroke_rectangle [429, 413], 24, 18
180
+ pdf.stroke_rectangle [443, 453], 24, 18
170
181
 
171
182
  # rectangle
172
- pdf.stroke_rectangle [453, 413], 97, 18
183
+ pdf.stroke_rectangle [467, 453], 97, 18
173
184
 
174
185
  # rectangle
175
- pdf.stroke_rectangle [386, 395], 81, 18
186
+ pdf.stroke_rectangle [400, 435], 81, 18
176
187
 
177
188
  # rectangle
178
- pdf.stroke_rectangle [467, 395], 83, 18
189
+ pdf.stroke_rectangle [481, 435], 83, 18
179
190
 
180
191
  # rectangle
181
- pdf.stroke_rectangle [-14, 631], 342, 18
192
+ pdf.stroke_rectangle [0, 671], 342, 18
182
193
 
183
194
  # rectangle
184
- pdf.stroke_rectangle [-14, 613], 189, 18
195
+ pdf.stroke_rectangle [0, 653], 189, 18
185
196
 
186
197
  # rectangle
187
- pdf.stroke_rectangle [-14, 749], 457, 20
198
+ pdf.stroke_rectangle [0, 789], 457, 20
188
199
 
189
200
  # rectangle
190
- pdf.stroke_rectangle [-14, 729], 74, 17
201
+ pdf.stroke_rectangle [0, 769], 74, 17
191
202
 
192
203
  # rectangle
193
- pdf.stroke_rectangle [60, 729], 383, 17
204
+ pdf.stroke_rectangle [74, 769], 383, 17
194
205
 
195
206
  # rectangle
196
- pdf.stroke_rectangle [175, 526], 63, 44
207
+ pdf.stroke_rectangle [189, 566], 63, 44
197
208
 
198
209
  # rectangle
199
- pdf.stroke_rectangle [238, 526], 63, 44
210
+ pdf.stroke_rectangle [252, 566], 63, 44
200
211
 
201
212
  # rectangle
202
- pdf.stroke_rectangle [301, 526], 63, 44
213
+ pdf.stroke_rectangle [315, 566], 63, 44
203
214
 
204
215
  # rectangle
205
- pdf.stroke_rectangle [364, 526], 63, 44
216
+ pdf.stroke_rectangle [378, 566], 63, 44
206
217
 
207
218
  # rectangle
208
- pdf.stroke_rectangle [427, 526], 63, 44
219
+ pdf.stroke_rectangle [441, 566], 63, 44
209
220
 
210
221
  # rectangle
211
- pdf.stroke_rectangle [490, 526], 60, 44
222
+ pdf.stroke_rectangle [504, 566], 60, 44
212
223
 
213
224
  # rectangle
214
- pdf.stroke_rectangle [-14, 367], 564, 213
225
+ pdf.stroke_rectangle [0, 407], 564, 213
215
226
 
216
227
  # rectangle
217
- pdf.stroke_rectangle [-14, 117], 341, 173
228
+ pdf.stroke_rectangle [0, 157], 341, 173
218
229
 
219
230
  # rectangle
220
- pdf.stroke_rectangle [327, 117], 223, 173
231
+ pdf.stroke_rectangle [341, 157], 223, 173
221
232
 
222
233
  # rectangle
223
- pdf.stroke_rectangle [-14, 146], 112, 20
234
+ pdf.stroke_rectangle [0, 186], 112, 20
224
235
 
225
236
  # rectangle
226
- pdf.stroke_rectangle [97, 146], 145, 20
237
+ pdf.stroke_rectangle [111, 186], 145, 20
227
238
 
228
239
  # rectangle
229
- pdf.stroke_rectangle [241, 146], 145, 20
240
+ pdf.stroke_rectangle [255, 186], 145, 20
230
241
 
231
242
  # rectangle
232
- pdf.stroke_rectangle [385, 146], 165, 20
243
+ pdf.stroke_rectangle [399, 186], 165, 20
233
244
 
234
245
  # staticText
235
- pdf.draw_text "PROTOCOLO DE AUTORIZAÇÃO DE USO", :size => 5, :at => [332, 626], :width => 142, :height => 7
246
+ pdf.draw_text "PROTOCOLO DE AUTORIZAÇÃO DE USO", :size => 5, :at => [346, 666], :width => 142, :height => 7
236
247
 
237
248
  # textField xml['infProt/nProt'] + ' ' + xml['infProt/dhRecbto']
238
- pdf.draw_text xml['infProt/nProt'] + ' ' + xml['infProt/dhRecbto'], :size => 6, :at => [333, 617], :width => 215, :height => 9
249
+ pdf.draw_text xml['infProt/nProt'] + ' ' + xml['infProt/dhRecbto'], :size => 6, :at => [347, 657], :width => 215, :height => 9
239
250
 
240
251
  # staticText
241
- pdf.draw_text "Consulta de autenticidade no portal nacional da NF-e www.nfe.fazenda.gov.br/portal ou no site da Sefaz Autorizadora", :size => 6, :at => [330, 638], :width => 218, :height => 17
252
+ pdf.draw_text "Consulta de autenticidade no portal nacional da NF-e www.nfe.fazenda.gov.br/portal ou no site da Sefaz Autorizadora", :size => 6, :at => [344, 678], :width => 218, :height => 17
242
253
 
243
254
  # staticText
244
- pdf.draw_text "N°.", :size => 7, :at => [446, 728], :width => 9, :height => 9
255
+ pdf.draw_text "N°.", :size => 7, :at => [460, 768], :width => 9, :height => 9
245
256
 
246
257
  # staticText
247
- pdf.draw_text "DESTINATÁRIO / REMETENTE", :size => 5, :at => [-14, 591], :width => 109, :height => 8
258
+ pdf.draw_text "DESTINATÁRIO / REMETENTE", :size => 5, :at => [0, 631], :width => 109, :height => 8
248
259
 
249
260
  # staticText
250
- pdf.draw_text "CNPJ/CPF", :size => 5, :at => [361, 582], :width => 46, :height => 7
261
+ pdf.draw_text "CNPJ/CPF", :size => 5, :at => [375, 622], :width => 46, :height => 7
251
262
 
252
263
  # staticText
253
- pdf.draw_text "DATA DA EMISSÃO", :size => 5, :at => [474, 582], :width => 49, :height => 7
264
+ pdf.draw_text "DATA DA EMISSÃO", :size => 5, :at => [488, 622], :width => 49, :height => 7
254
265
 
255
266
  # staticText
256
- pdf.draw_text "NOME/RAZÃO SOCIAL", :size => 5, :at => [-11, 582], :width => 107, :height => 7
267
+ pdf.draw_text "NOME/RAZÃO SOCIAL", :size => 5, :at => [3, 622], :width => 107, :height => 7
257
268
 
258
269
  # staticText
259
- pdf.draw_text "ENDEREÇO", :size => 5, :at => [-11, 563], :width => 107, :height => 7
270
+ pdf.draw_text "ENDEREÇO", :size => 5, :at => [3, 603], :width => 107, :height => 7
260
271
 
261
272
  # staticText
262
- pdf.draw_text "BAIRRO / DISTRITO", :size => 5, :at => [293, 563], :width => 69, :height => 7
273
+ pdf.draw_text "BAIRRO / DISTRITO", :size => 5, :at => [307, 603], :width => 69, :height => 7
263
274
 
264
275
  # staticText
265
- pdf.draw_text "CEP", :size => 5, :at => [415, 563], :width => 30, :height => 7
276
+ pdf.draw_text "CEP", :size => 5, :at => [429, 603], :width => 30, :height => 7
266
277
 
267
278
  # staticText
268
- pdf.draw_text "FONE/FAX", :size => 5, :at => [217, 546], :width => 49, :height => 7
279
+ pdf.draw_text "FONE/FAX", :size => 5, :at => [231, 586], :width => 49, :height => 7
269
280
 
270
281
  # staticText
271
- pdf.draw_text "UF", :size => 5, :at => [326, 546], :width => 17, :height => 7
282
+ pdf.draw_text "UF", :size => 5, :at => [340, 586], :width => 17, :height => 7
272
283
 
273
284
  # staticText
274
- pdf.draw_text "FATURA / DUPLICATAS", :size => 5, :at => [-14, 530], :width => 109, :height => 7
285
+ pdf.draw_text "FATURA / DUPLICATAS", :size => 5, :at => [0, 570], :width => 109, :height => 7
275
286
 
276
287
  # staticText
277
- pdf.draw_text "CÁLCULO DO IMPOSTO", :size => 5, :at => [-14, 479], :width => 109, :height => 7
288
+ pdf.draw_text "CÁLCULO DO IMPOSTO", :size => 5, :at => [0, 519], :width => 109, :height => 7
278
289
 
279
290
  # staticText
280
- pdf.draw_text "BASE DE CÁLCULO DO ICMS", :size => 5, :at => [-11, 470], :width => 73, :height => 7
291
+ pdf.draw_text "BASE DE CÁLCULO DO ICMS", :size => 5, :at => [3, 510], :width => 73, :height => 7
281
292
 
282
293
  # staticText
283
- pdf.draw_text "VALOR DO ICMS", :size => 5, :at => [122, 470], :width => 78, :height => 7
294
+ pdf.draw_text "VALOR DO ICMS", :size => 5, :at => [136, 510], :width => 78, :height => 7
284
295
 
285
296
  # staticText
286
- pdf.draw_text "BASE DE CÁLCULO DO ICMS ST", :size => 5, :at => [236, 470], :width => 80, :height => 7
297
+ pdf.draw_text "BASE DE CÁLCULO DO ICMS ST", :size => 5, :at => [250, 510], :width => 80, :height => 7
287
298
 
288
299
  # staticText
289
- pdf.draw_text "VALOR DO ICMS ST", :size => 5, :at => [350, 470], :width => 59, :height => 7
300
+ pdf.draw_text "VALOR DO ICMS ST", :size => 5, :at => [364, 510], :width => 59, :height => 7
290
301
 
291
302
  # staticText
292
- pdf.draw_text "VALOR TOTAL DOS PRODUTOS", :size => 5, :at => [446, 470], :width => 79, :height => 7
303
+ pdf.draw_text "VALOR TOTAL DOS PRODUTOS", :size => 5, :at => [460, 510], :width => 79, :height => 7
293
304
 
294
305
  # staticText
295
- pdf.draw_text "TRANSPORTADOR / VOLUMES TRANSPORTADOS DADOS DO PRODUTO / SERVIÇODADOS DO PRODUTO / SERVIÇODADOS DO PRODUTO / SERVIÇO", :size => 5, :at => [-14, 435], :width => 134, :height => 8
306
+ pdf.draw_text "TRANSPORTADOR / VOLUMES TRANSPORTADOS DADOS DO PRODUTO / SERVIÇODADOS DO PRODUTO / SERVIÇODADOS DO PRODUTO / SERVIÇO", :size => 5, :at => [0, 475], :width => 134, :height => 8
296
307
 
297
308
  # staticText
298
- pdf.draw_text "RAZÃO SOCIAL", :size => 5, :at => [-11, 426], :width => 64, :height => 7
309
+ pdf.draw_text "RAZÃO SOCIAL", :size => 5, :at => [3, 466], :width => 64, :height => 7
299
310
 
300
311
  # staticText
301
- pdf.draw_text "FRETE POR CONTA", :size => 5, :at => [167, 426], :width => 49, :height => 7
312
+ pdf.draw_text "FRETE POR CONTA", :size => 5, :at => [181, 466], :width => 49, :height => 7
302
313
 
303
314
  # staticText
304
- pdf.draw_text "CÓDIGO ANTT", :size => 5, :at => [227, 426], :width => 49, :height => 7
315
+ pdf.draw_text "CÓDIGO ANTT", :size => 5, :at => [241, 466], :width => 49, :height => 7
305
316
 
306
317
  # staticText
307
- pdf.draw_text "0-EMITENTE 1-DESTINATÁRIO", :size => 4, :at => [167, 416], :width => 44, :height => 12
318
+ pdf.draw_text "0-EMITENTE 1-DESTINATÁRIO", :size => 4, :at => [181, 456], :width => 44, :height => 12
308
319
 
309
320
  # textField dest/xNome
310
- pdf.draw_text xml['dest/xNome'], :size => 7, :at => [-11, 572], :width => 366, :height => 9
321
+ pdf.draw_text xml['dest/xNome'], :size => 7, :at => [3, 612], :width => 366, :height => 9
311
322
 
312
323
  # textField enderDest/xLgr enderDest/nro
313
- pdf.draw_text xml['enderDest/xLgr'] + " " + xml['enderDest/nro'], :size => 7, :at => [-11, 555], :width => 298, :height => 9
324
+ pdf.draw_text xml['enderDest/xLgr'] + " " + xml['enderDest/nro'], :size => 7, :at => [3, 595], :width => 298, :height => 9
314
325
 
315
326
  # textField dest/CNPJ
316
- pdf.draw_text xml['dest/CNPJ'], :size => 7, :at => [361, 572], :width => 107, :height => 9
327
+ pdf.draw_text xml['dest/CNPJ'], :size => 7, :at => [375, 612], :width => 107, :height => 9
317
328
 
318
329
  # textField ide/dEmi
319
- pdf.draw_text xml['ide/dEmi'], :size => 7, :at => [474, 572], :width => 74, :height => 9
330
+ pdf.draw_text xml['ide/dEmi'], :size => 7, :at => [488, 612], :width => 74, :height => 9
320
331
 
321
332
  # textField enderDest/xBairro
322
- pdf.draw_text xml['enderDest/xBairro'], :size => 7, :at => [293, 555], :width => 119, :height => 9
333
+ pdf.draw_text xml['enderDest/xBairro'], :size => 7, :at => [307, 595], :width => 119, :height => 9
323
334
 
324
335
  # textField enderDest/CEP
325
- pdf.draw_text xml['enderDest/CEP'], :size => 7, :at => [415, 555], :width => 55, :height => 9
336
+ pdf.draw_text xml['enderDest/CEP'], :size => 7, :at => [429, 595], :width => 55, :height => 9
326
337
 
327
338
  # textField enderDest/UF
328
- pdf.draw_text xml['enderDest/UF'], :size => 7, :at => [326, 537], :width => 26, :height => 9
339
+ pdf.draw_text xml['enderDest/UF'], :size => 7, :at => [340, 577], :width => 26, :height => 9
329
340
 
330
341
  # textField enderDest/fone
331
- pdf.draw_text xml['enderDest/fone'], :size => 7, :at => [217, 537], :width => 104, :height => 9
342
+ pdf.draw_text xml['enderDest/fone'], :size => 7, :at => [231, 577], :width => 104, :height => 9
332
343
 
333
344
  # textField total/vBC
334
- pdf.draw_text xml['total/vBC'], :size => 7, :at => [-11, 461], :width => 127, :height => 9
345
+ pdf.draw_text xml['total/vBC'], :size => 7, :at => [3, 501], :width => 127, :height => 9
335
346
 
336
347
  # textField total/vICMS
337
- pdf.draw_text xml['total/vICMS'], :size => 7, :at => [122, 461], :width => 108, :height => 9
348
+ pdf.draw_text xml['total/vICMS'], :size => 7, :at => [136, 501], :width => 108, :height => 9
338
349
 
339
350
  # textField total/vBCST
340
- pdf.draw_text xml['total/vBCST'], :size => 7, :at => [236, 461], :width => 108, :height => 9
351
+ pdf.draw_text xml['total/vBCST'], :size => 7, :at => [250, 501], :width => 108, :height => 9
341
352
 
342
353
  # textField total/vST
343
- pdf.draw_text xml['total/vST'], :size => 7, :at => [350, 461], :width => 90, :height => 9
354
+ pdf.draw_text xml['total/vST'], :size => 7, :at => [364, 501], :width => 90, :height => 9
344
355
 
345
356
  # textField total/vProd
346
- pdf.draw_text xml['total/vProd'], :size => 7, :at => [446, 461], :width => 101, :height => 9
357
+ pdf.draw_text xml['total/vProd'], :size => 7, :at => [460, 501], :width => 101, :height => 9
347
358
 
348
359
  # textField transporta/xNome
349
- pdf.draw_text xml['transporta/xNome'], :size => 7, :at => [-11, 417], :width => 174, :height => 9
360
+ pdf.draw_text xml['transporta/xNome'], :size => 7, :at => [3, 457], :width => 174, :height => 9
350
361
 
351
362
  # textField transp/modFrete
352
- pdf.draw_text xml['transp/modFrete'], :size => 5, :at => [214, 420], :width => 7, :height => 7
363
+ pdf.draw_text xml['transp/modFrete'], :size => 5, :at => [228, 460], :width => 7, :height => 7
353
364
 
354
365
  # textField veicTransp/RNTC
355
- pdf.draw_text xml['veicTransp/RNTC'], :size => 5, :at => [227, 417], :width => 69, :height => 9
366
+ pdf.draw_text xml['veicTransp/RNTC'], :size => 5, :at => [241, 457], :width => 69, :height => 9
356
367
 
357
368
  # staticText DATA DA SAÍDA/ENTRADA
358
- pdf.draw_text "DATA DA SAÍDA/ENTRADA", :size => 5, :at => [474, 563], :width => 69, :height => 7
369
+ pdf.draw_text "DATA DA SAÍDA/ENTRADA", :size => 5, :at => [488, 603], :width => 69, :height => 7
359
370
 
360
371
  # staticText HORA DE SAÍDA
361
- pdf.draw_text "HORA DE SAÍDA", :size => 5, :at => [474, 546], :width => 53, :height => 7
372
+ pdf.draw_text "HORA DE SAÍDA", :size => 5, :at => [488, 586], :width => 53, :height => 7
362
373
 
363
374
  # staticText INSCRIÇÃO ESTADUAL
364
- pdf.draw_text "INSCRIÇÃO ESTADUAL", :size => 5, :at => [357, 546], :width => 79, :height => 7
375
+ pdf.draw_text "INSCRIÇÃO ESTADUAL", :size => 5, :at => [371, 586], :width => 79, :height => 7
365
376
 
366
377
  # textField $F{NR_IE_DESTINO}
367
- pdf.draw_text xml['dest/IE'], :size => 7, :at => [357, 537], :width => 111, :height => 9
378
+ pdf.draw_text xml['dest/IE'], :size => 7, :at => [371, 577], :width => 111, :height => 9
368
379
 
369
380
  # textField $F{DS_MUNICIPIO_DESTINO}
370
- pdf.draw_text xml['enderDest/xMun'], :size => 7, :at => [-11, 537], :width => 222, :height => 9
381
+ pdf.draw_text xml['enderDest/xMun'], :size => 7, :at => [3, 577], :width => 222, :height => 9
371
382
 
372
383
  # staticText MUNICÍPIO
373
- pdf.draw_text "MUNICÍPIO", :size => 5, :at => [-11, 546], :width => 107, :height => 7
384
+ pdf.draw_text "MUNICÍPIO", :size => 5, :at => [3, 586], :width => 107, :height => 7
374
385
 
375
386
  # staticText Número
376
- pdf.draw_text "Número", :size => 5, :at => [-11, 522], :width => 57, :height => 7
387
+ pdf.draw_text "Número", :size => 5, :at => [3, 562], :width => 57, :height => 7
377
388
 
378
389
  # staticText Vencimento
379
- pdf.draw_text "Vencimento", :size => 5, :at => [53, 522], :width => 56, :height => 7
390
+ pdf.draw_text "Vencimento", :size => 5, :at => [67, 562], :width => 56, :height => 7
380
391
 
381
392
  # staticText Valor
382
- pdf.draw_text "Valor", :size => 5, :at => [116, 522], :width => 55, :height => 7
393
+ pdf.draw_text "Valor", :size => 5, :at => [130, 562], :width => 55, :height => 7
383
394
 
384
395
  # textField $F{VL_OUTROS}
385
- pdf.draw_text xml['total/vOutros'], :size => 7, :at => [258, 443], :width => 86, :height => 9
396
+ pdf.draw_text xml['total/vOutros'], :size => 7, :at => [272, 483], :width => 86, :height => 9
386
397
 
387
398
  # staticText OUTRAS DESPESAS ACESSÓRIAS
388
- pdf.draw_text "OUTRAS DESPESAS ACESSÓRIAS", :size => 5, :at => [258, 452], :width => 84, :height => 7
399
+ pdf.draw_text "OUTRAS DESPESAS ACESSÓRIAS", :size => 5, :at => [272, 492], :width => 84, :height => 7
389
400
 
390
401
  # textField $F{VL_SEGURO}
391
- pdf.draw_text xml['total/vSeg'], :size => 7, :at => [79, 443], :width => 83, :height => 9
402
+ pdf.draw_text xml['total/vSeg'], :size => 7, :at => [93, 483], :width => 83, :height => 9
392
403
 
393
404
  # staticText VALOR DO SEGURO
394
- pdf.draw_text "VALOR DO SEGURO", :size => 5, :at => [79, 452], :width => 59, :height => 7
405
+ pdf.draw_text "VALOR DO SEGURO", :size => 5, :at => [93, 492], :width => 59, :height => 7
395
406
 
396
407
  # staticText DESCONTO
397
- pdf.draw_text "DESCONTO", :size => 5, :at => [168, 452], :width => 35, :height => 7
408
+ pdf.draw_text "DESCONTO", :size => 5, :at => [182, 492], :width => 35, :height => 7
398
409
 
399
410
  # textField $F{VL_DESCONTO}
400
- pdf.draw_text xml['total/vDesc'], :size => 7, :at => [168, 443], :width => 85, :height => 9
411
+ pdf.draw_text xml['total/vDesc'], :size => 7, :at => [182, 483], :width => 85, :height => 9
401
412
 
402
413
  # staticText VALOR DO FRETE
403
- pdf.draw_text "VALOR DO FRETE", :size => 5, :at => [-11, 452], :width => 50, :height => 7
414
+ pdf.draw_text "VALOR DO FRETE", :size => 5, :at => [3, 492], :width => 50, :height => 7
404
415
 
405
416
  # textField $F{VL_FRETE}
406
- pdf.draw_text xml['total/vlFrete'], :size => 7, :at => [-11, 443], :width => 84, :height => 9
417
+ pdf.draw_text xml['total/vlFrete'], :size => 7, :at => [3, 483], :width => 84, :height => 9
407
418
 
408
419
  # textField $F{VL_NF}
409
- pdf.draw_text xml['total/vNF'], :size => 7, :at => [447, 443], :width => 99, :height => 9
420
+ pdf.draw_text xml['total/vNF'], :size => 7, :at => [461, 483], :width => 99, :height => 9
410
421
 
411
422
  # staticText VALOR TOTAL DA NOTA
412
- pdf.draw_text "VALOR TOTAL DA NOTA", :size => 5, :at => [447, 452], :width => 61, :height => 7
423
+ pdf.draw_text "VALOR TOTAL DA NOTA", :size => 5, :at => [461, 492], :width => 61, :height => 7
413
424
 
414
425
  # staticText PLACA DO VEÍCULO
415
- pdf.draw_text "PLACA DO VEÍCULO", :size => 5, :at => [301, 426], :width => 69, :height => 7
426
+ pdf.draw_text "PLACA DO VEÍCULO", :size => 5, :at => [315, 466], :width => 69, :height => 7
416
427
 
417
428
  # staticText CNPJ / CPF
418
- pdf.draw_text "CNPJ / CPF", :size => 5, :at => [455, 426], :width => 69, :height => 7
429
+ pdf.draw_text "CNPJ / CPF", :size => 5, :at => [469, 466], :width => 69, :height => 7
419
430
 
420
431
  # textField transporta/CNPJ
421
- pdf.draw_text xml['transporta/CNPJ'], :size => 7, :at => [455, 417], :width => 92, :height => 9
432
+ pdf.draw_text xml['transporta/CNPJ'], :size => 7, :at => [469, 457], :width => 92, :height => 9
422
433
 
423
434
  # textField transporta/xMun
424
- pdf.draw_text xml['transporta/xMun'], :size => 7, :at => [249, 399], :width => 177, :height => 10
435
+ pdf.draw_text xml['transporta/xMun'], :size => 7, :at => [263, 439], :width => 177, :height => 10
425
436
 
426
437
  # staticText
427
- pdf.draw_text "MUNICÍPIO", :size => 5, :at => [249, 408], :width => 64, :height => 7
438
+ pdf.draw_text "MUNICÍPIO", :size => 5, :at => [263, 448], :width => 64, :height => 7
428
439
 
429
440
  # textField transporta/xEnder
430
- pdf.draw_text xml['transporta/xEnder'], :size => 7, :at => [-11, 399], :width => 255, :height => 9
441
+ pdf.draw_text xml['transporta/xEnder'], :size => 7, :at => [3, 439], :width => 255, :height => 9
431
442
 
432
443
  # staticText
433
- pdf.draw_text "ENDEREÇO", :size => 5, :at => [-11, 408], :width => 64, :height => 7
444
+ pdf.draw_text "ENDEREÇO", :size => 5, :at => [3, 448], :width => 64, :height => 7
434
445
 
435
446
  # staticText
436
- pdf.draw_text "QUANTIDADE", :size => 5, :at => [-11, 390], :width => 39, :height => 7
447
+ pdf.draw_text "QUANTIDADE", :size => 5, :at => [3, 430], :width => 39, :height => 7
437
448
 
438
449
  # textField vol/qVol
439
- pdf.draw_text xml['vol/qVol'], :size => 7, :at => [-11, 381], :width => 60, :height => 9
450
+ pdf.draw_text xml['vol/qVol'], :size => 7, :at => [3, 421], :width => 60, :height => 9
440
451
 
441
452
  # textField vol/esp
442
- pdf.draw_text xml['vol/esp'], :size => 7, :at => [56, 381], :width => 111, :height => 9
453
+ pdf.draw_text xml['vol/esp'], :size => 7, :at => [70, 421], :width => 111, :height => 9
443
454
 
444
455
  # staticText
445
- pdf.draw_text "ESPÉCIE", :size => 5, :at => [56, 390], :width => 29, :height => 7
456
+ pdf.draw_text "ESPÉCIE", :size => 5, :at => [70, 430], :width => 29, :height => 7
446
457
 
447
458
  # staticText
448
- pdf.draw_text "MARCA", :size => 5, :at => [173, 390], :width => 62, :height => 7
459
+ pdf.draw_text "MARCA", :size => 5, :at => [187, 430], :width => 62, :height => 7
449
460
 
450
461
  # textField vol/marca
451
- pdf.draw_text xml['vol/marca'], :size => 7, :at => [173, 381], :width => 97, :height => 9
462
+ pdf.draw_text xml['vol/marca'], :size => 7, :at => [187, 421], :width => 97, :height => 9
452
463
 
453
464
  # staticText
454
- pdf.draw_text "NUMERAÇÃO", :size => 5, :at => [280, 390], :width => 62, :height => 7
465
+ pdf.draw_text "NUMERAÇÃO", :size => 5, :at => [294, 430], :width => 62, :height => 7
455
466
 
456
467
  # textField
457
- pdf.draw_text "", :size => 7, :at => [280, 381], :width => 103, :height => 9
468
+ pdf.draw_text "", :size => 7, :at => [294, 421], :width => 103, :height => 9
458
469
 
459
470
  # staticText UF
460
- pdf.draw_text "UF", :size => 5, :at => [432, 408], :width => 14, :height => 7
471
+ pdf.draw_text "UF", :size => 5, :at => [446, 448], :width => 14, :height => 7
461
472
 
462
473
  # textField tranporta/UF
463
- pdf.draw_text xml['tranporta/UF'], :size => 7, :at => [432, 399], :width => 19, :height => 9
474
+ pdf.draw_text xml['tranporta/UF'], :size => 7, :at => [446, 439], :width => 19, :height => 9
464
475
 
465
476
  # textField transporta/IE
466
- pdf.draw_text xml['transporta/IE'], :size => 7, :at => [456, 399], :width => 91, :height => 9
477
+ pdf.draw_text xml['transporta/IE'], :size => 7, :at => [470, 439], :width => 91, :height => 9
467
478
 
468
479
  # staticText
469
- pdf.draw_text "INSCRIÇÃO ESTADUAL", :size => 5, :at => [456, 408], :width => 69, :height => 7
480
+ pdf.draw_text "INSCRIÇÃO ESTADUAL", :size => 5, :at => [470, 448], :width => 69, :height => 7
470
481
 
471
482
  # staticText
472
- pdf.draw_text "PESO BRUTO", :size => 5, :at => [389, 390], :width => 76, :height => 7
483
+ pdf.draw_text "PESO BRUTO", :size => 5, :at => [403, 430], :width => 76, :height => 7
473
484
 
474
485
  # textField vol/pesoB
475
- pdf.draw_text xml['vol/pesoB'], :size => 7, :at => [389, 381], :width => 76, :height => 9
486
+ pdf.draw_text xml['vol/pesoB'], :size => 7, :at => [403, 421], :width => 76, :height => 9
476
487
 
477
488
  # textField 'vol/pesoL'
478
- pdf.draw_text xml['vol/pesoL'], :size => 7, :at => [470, 381], :width => 77, :height => 9
489
+ pdf.draw_text xml['vol/pesoL'], :size => 7, :at => [484, 421], :width => 77, :height => 9
479
490
 
480
491
  # staticText
481
- pdf.draw_text "PESO LÍQUIDO", :size => 5, :at => [470, 390], :width => 76, :height => 7
492
+ pdf.draw_text "PESO LÍQUIDO", :size => 5, :at => [484, 430], :width => 76, :height => 7
482
493
 
483
494
  # textField transp/pĺaca
484
- pdf.draw_text xml['transp/pĺaca'], :size => 7, :at => [301, 417], :width => 125, :height => 9
495
+ pdf.draw_text xml['transp/pĺaca'], :size => 7, :at => [315, 457], :width => 125, :height => 9
485
496
 
486
497
  # staticText UF
487
- pdf.draw_text "UF", :size => 5, :at => [432, 426], :width => 8, :height => 7
498
+ pdf.draw_text "UF", :size => 5, :at => [446, 466], :width => 8, :height => 7
488
499
 
489
500
  # textField transp/UF
490
- pdf.draw_text xml['transp/UF'], :size => 7, :at => [432, 417], :width => 18, :height => 9
501
+ pdf.draw_text xml['transp/UF'], :size => 7, :at => [446, 457], :width => 18, :height => 9
491
502
 
492
503
  # staticText
493
- pdf.draw_text "VALOR DO IPI", :size => 5, :at => [350, 452], :width => 43, :height => 7
504
+ pdf.draw_text "VALOR DO IPI", :size => 5, :at => [364, 492], :width => 43, :height => 7
494
505
 
495
506
  # textField total/vIPI
496
- pdf.draw_text xml['total/vIPI'], :size => 7, :at => [350, 443], :width => 90, :height => 9
507
+ pdf.draw_text xml['total/vIPI'], :size => 7, :at => [364, 483], :width => 90, :height => 9
497
508
 
498
509
  # staticText
499
- pdf.draw_text "DANFE", :size => 10, :at => [267, 689], :width => 58, :height => 12
510
+ pdf.draw_text "DANFE", :size => 10, :at => [281, 729], :width => 58, :height => 12
500
511
 
501
512
  # staticText
502
- pdf.draw_text "DOCUMENTO AUXILIAR DA NOTA FISCAL ELETRÔNICA", :size => 5, :at => [266, 675], :width => 60, :height => 17
513
+ pdf.draw_text "DOCUMENTO AUXILIAR DA NOTA FISCAL ELETRÔNICA", :size => 5, :at => [280, 715], :width => 60, :height => 17
503
514
 
504
515
  # staticText
505
- pdf.draw_text "0 - ENTRADA 1 - SAÍDA", :size => 5, :at => [272, 659], :width => 34, :height => 14
516
+ pdf.draw_text "0 - ENTRADA 1 - SAÍDA", :size => 5, :at => [286, 699], :width => 34, :height => 14
506
517
 
507
518
  # staticText
508
- pdf.draw_text "NATUREZA DA OPERAÇÃO", :size => 5, :at => [-11, 626], :width => 107, :height => 7
519
+ pdf.draw_text "NATUREZA DA OPERAÇÃO", :size => 5, :at => [3, 666], :width => 107, :height => 7
509
520
 
510
521
  # staticText
511
- pdf.draw_text "INSCRIÇÃO ESTADUAL", :size => 5, :at => [-11, 608], :width => 69, :height => 7
522
+ pdf.draw_text "INSCRIÇÃO ESTADUAL", :size => 5, :at => [3, 648], :width => 69, :height => 7
512
523
 
513
524
  # staticText
514
- pdf.draw_text "INSC.ESTADUAL DO SUBST. TRIBUTÁRIO", :size => 5, :at => [178, 608], :width => 107, :height => 7
525
+ pdf.draw_text "INSC.ESTADUAL DO SUBST. TRIBUTÁRIO", :size => 5, :at => [192, 648], :width => 107, :height => 7
515
526
 
516
527
  # staticText
517
- pdf.draw_text "CNPJ", :size => 5, :at => [367, 608], :width => 16, :height => 7
528
+ pdf.draw_text "CNPJ", :size => 5, :at => [381, 648], :width => 16, :height => 7
518
529
 
519
530
  # textField ide/natOp
520
- pdf.draw_text xml['ide/natOp'], :size => 7, :at => [-11, 617], :width => 336, :height => 9
531
+ pdf.draw_text xml['ide/natOp'], :size => 7, :at => [3, 657], :width => 336, :height => 9
521
532
 
522
533
  # textField emit/IE
523
- pdf.draw_text xml['emit/IE'], :size => 7, :at => [-11, 599], :width => 183, :height => 9
534
+ pdf.draw_text xml['emit/IE'], :size => 7, :at => [3, 639], :width => 183, :height => 9
524
535
 
525
536
  # textField emit/IE_ST
526
- pdf.draw_text xml['emit/IE_ST'], :size => 7, :at => [178, 599], :width => 183, :height => 9
537
+ pdf.draw_text xml['emit/IE_ST'], :size => 7, :at => [192, 639], :width => 183, :height => 9
527
538
 
528
539
  # textField emit/CNPJ
529
- pdf.draw_text xml['emit/CNPJ'], :size => 7, :at => [367, 599], :width => 181, :height => 9
540
+ pdf.draw_text xml['emit/CNPJ'], :size => 7, :at => [381, 639], :width => 181, :height => 9
530
541
 
531
542
  # textField ide/dSaiEnt
532
- pdf.draw_text xml['ide/dSaiEnt'], :size => 5, :at => [314, 664], :width => 5, :height => 6
543
+ pdf.draw_text xml['ide/dSaiEnt'], :size => 5, :at => [328, 704], :width => 5, :height => 6
533
544
 
534
545
  # textField ide/serie
535
- pdf.draw_text xml['ide/serie'], :size => 6, :at => [287, 643], :width => 38, :height => 7
546
+ pdf.draw_text xml['ide/serie'], :size => 6, :at => [301, 683], :width => 38, :height => 7
536
547
 
537
548
  # staticText
538
- pdf.draw_text "SÉRIE", :size => 6, :at => [268, 643], :width => 19, :height => 7
549
+ pdf.draw_text "SÉRIE", :size => 6, :at => [282, 683], :width => 19, :height => 7
539
550
 
540
551
  # textField ide/nNF
541
- pdf.draw_text xml['ide/nNF'], :size => 7, :at => [277, 650], :width => 48, :height => 9
552
+ pdf.draw_text xml['ide/nNF'], :size => 7, :at => [291, 690], :width => 48, :height => 9
542
553
 
543
554
  # staticText
544
- pdf.draw_text "DATA DE RECEBIMENTO", :size => 5, :at => [-11, 724], :width => 65, :height => 7
555
+ pdf.draw_text "DATA DE RECEBIMENTO", :size => 5, :at => [3, 764], :width => 65, :height => 7
545
556
 
546
557
  # staticText
547
- pdf.draw_text "IDENTIFICAÇÃO E ASSINATURA DO RECEBEDOR", :size => 5, :at => [63, 724], :width => 259, :height => 7
558
+ pdf.draw_text "IDENTIFICAÇÃO E ASSINATURA DO RECEBEDOR", :size => 5, :at => [77, 764], :width => 259, :height => 7
548
559
 
549
560
  # staticText
550
- pdf.draw_text "NF-e", :size => 9, :at => [446, 738], :width => 102, :height => 12
561
+ pdf.draw_text "NF-e", :size => 9, :at => [460, 778], :width => 102, :height => 12
551
562
 
552
563
  # textField ide/serie
553
- pdf.draw_text xml['ide/serie'], :size => 7, :at => [472, 719], :width => 76, :height => 9
564
+ pdf.draw_text xml['ide/serie'], :size => 7, :at => [486, 759], :width => 76, :height => 9
554
565
 
555
566
  # textField ide/nNF
556
- pdf.draw_text xml['ide/nNF'], :size => 7, :at => [455, 728], :width => 93, :height => 9
567
+ pdf.draw_text xml['ide/nNF'], :size => 7, :at => [469, 768], :width => 93, :height => 9
557
568
 
558
569
  # textField
559
- pdf.draw_text "RECEBEMOS DE " + xml['emit/xNome'] + " OS PRODUTOS CONSTANTES DA NOTA FISCAL INDICADA A BAIXO", :size => 5, :at => [-11, 744], :width => 450, :height => 8
570
+ pdf.draw_text "RECEBEMOS DE " + xml['emit/xNome'] + " OS PRODUTOS CONSTANTES DA NOTA FISCAL INDICADA A BAIXO", :size => 5, :at => [3, 784], :width => 450, :height => 8
560
571
 
561
572
  # staticText
562
- pdf.draw_text "SÉRIE", :size => 7, :at => [446, 719], :width => 26, :height => 9
573
+ pdf.draw_text "SÉRIE", :size => 7, :at => [460, 759], :width => 26, :height => 9
563
574
 
564
575
  # staticText
565
- pdf.draw_text "CHAVE DE ACESSO", :size => 5, :at => [331, 668], :width => 67, :height => 7
576
+ pdf.draw_text "CHAVE DE ACESSO", :size => 5, :at => [345, 708], :width => 67, :height => 7
566
577
 
567
578
  # staticText
568
- pdf.draw_text "FOLHA", :size => 6, :at => [268, 636], :width => 19, :height => 7
579
+ pdf.draw_text "FOLHA", :size => 6, :at => [282, 676], :width => 19, :height => 7
569
580
 
570
581
  # textField
571
- pdf.draw_text " 1 / 1", :size => 6, :at => [287, 636], :width => 9, :height => 7
582
+ pdf.draw_text " 1 / 1", :size => 6, :at => [301, 676], :width => 9, :height => 7
572
583
 
573
584
  # textField chNFe
574
- pdf.draw_text xml['chNFe'], :size => 6, :at => [331, 659], :width => 217, :height => 9
585
+ pdf.draw_text xml['chNFe'], :size => 6, :at => [345, 699], :width => 217, :height => 9
575
586
 
576
587
  # staticText
577
- pdf.draw_text "DADOS DO PRODUTO / SERVIÇO", :size => 5, :at => [-14, 372], :width => 134, :height => 8
588
+ pdf.draw_text "DADOS DO PRODUTO / SERVIÇO", :size => 5, :at => [0, 412], :width => 134, :height => 8
578
589
 
579
590
  # staticText
580
- pdf.draw_text "N°", :size => 7, :at => [268, 650], :width => 10, :height => 9
591
+ pdf.draw_text "N°", :size => 7, :at => [282, 690], :width => 10, :height => 9
581
592
 
582
593
  # textField emit/xNome
583
- pdf.draw_text xml['emit/xNome'], :size => 7, :at => [62, 680], :width => 198, :height => 21
594
+ pdf.draw_text xml['emit/xNome'], :size => 7, :at => [76, 720], :width => 198, :height => 21
584
595
 
585
596
  # textField enderEmit/xLgr enderEmit/nro
586
- pdf.draw_text xml['enderEmit/xLgr'] + ", " + xml['enderEmit/nro'], :size => 7, :at => [62, 669], :width => 198, :height => 10
597
+ pdf.draw_text xml['enderEmit/xLgr'] + ", " + xml['enderEmit/nro'], :size => 7, :at => [76, 709], :width => 198, :height => 10
587
598
 
588
599
  # textField enderEmit/xBairro
589
- pdf.draw_text xml['enderEmit/xBairro'] + " - " + xml['enderEmit/CEP'], :size => 7, :at => [62, 659], :width => 198, :height => 10
600
+ pdf.draw_text xml['enderEmit/xBairro'] + " - " + xml['enderEmit/CEP'], :size => 7, :at => [76, 699], :width => 198, :height => 10
590
601
 
591
602
  # textField enderEmit/xMun enderEmit/UF
592
- pdf.draw_text xml['enderEmit/xMun'] + "/" + xml['enderEmit/UF'], :size => 6, :at => [62, 649], :width => 198, :height => 10
603
+ pdf.draw_text xml['enderEmit/xMun'] + "/" + xml['enderEmit/UF'], :size => 6, :at => [76, 689], :width => 198, :height => 10
593
604
 
594
605
  # textField enderEmit/fone enderEmit/email
595
- pdf.draw_text xml['enderEmit/fone'] + " " + xml['enderEmit/email'], :size => 6, :at => [62, 639], :width => 198, :height => 10
606
+ pdf.draw_text xml['enderEmit/fone'] + " " + xml['enderEmit/email'], :size => 6, :at => [76, 679], :width => 198, :height => 10
596
607
 
597
608
  # textField ide/dSaiEnt
598
- pdf.draw_text xml['ide/dSaiEnt'], :size => 7, :at => [474, 555], :width => 74, :height => 9
609
+ pdf.draw_text xml['ide/dSaiEnt'], :size => 7, :at => [488, 595], :width => 74, :height => 9
599
610
 
600
611
  # textField ide/dSaiEnt
601
- pdf.draw_text xml['ide/dSaiEnt'], :size => 7, :at => [474, 537], :width => 74, :height => 9
612
+ pdf.draw_text xml['ide/dSaiEnt'], :size => 7, :at => [488, 577], :width => 74, :height => 9
602
613
 
603
614
  # staticText
604
- pdf.draw_text "Número", :size => 5, :at => [178, 522], :width => 57, :height => 7
615
+ pdf.draw_text "Número", :size => 5, :at => [192, 562], :width => 57, :height => 7
605
616
 
606
617
  # staticText
607
- pdf.draw_text "Vencimento", :size => 5, :at => [242, 522], :width => 56, :height => 7
618
+ pdf.draw_text "Vencimento", :size => 5, :at => [256, 562], :width => 56, :height => 7
608
619
 
609
620
  # staticText
610
- pdf.draw_text "Valor", :size => 5, :at => [305, 522], :width => 55, :height => 7
621
+ pdf.draw_text "Valor", :size => 5, :at => [319, 562], :width => 55, :height => 7
611
622
 
612
623
  # staticText
613
- pdf.draw_text "Número", :size => 5, :at => [367, 522], :width => 57, :height => 7
624
+ pdf.draw_text "Número", :size => 5, :at => [381, 562], :width => 57, :height => 7
614
625
 
615
626
  # staticText
616
- pdf.draw_text "Vencimento", :size => 5, :at => [431, 522], :width => 56, :height => 7
627
+ pdf.draw_text "Vencimento", :size => 5, :at => [445, 562], :width => 56, :height => 7
617
628
 
618
629
  # staticText
619
- pdf.draw_text "Valor", :size => 5, :at => [494, 522], :width => 50, :height => 7
630
+ pdf.draw_text "Valor", :size => 5, :at => [508, 562], :width => 50, :height => 7
620
631
 
621
632
  # textField infAdic/infCpl
622
633
  pdf.draw_text xml['infAdic/infCpl'], :size => 6, :at => [-10, -50], :width => 334, :height => 161
623
634
 
624
635
  # staticText
625
- pdf.draw_text "DADOS ADICIONAIS", :size => 5, :at => [-14, 121], :width => 134, :height => 7
636
+ pdf.draw_text "DADOS ADICIONAIS", :size => 5, :at => [0, 161], :width => 134, :height => 7
626
637
 
627
638
  # staticText
628
- pdf.draw_text "CÁLCULO DO ISSQN", :size => 5, :at => [-14, 150], :width => 134, :height => 8
639
+ pdf.draw_text "CÁLCULO DO ISSQN", :size => 5, :at => [0, 190], :width => 134, :height => 8
629
640
 
630
641
  # staticText
631
- pdf.draw_text "INSCRIÇÃO MUNICIPAL", :size => 5, :at => [-11, 141], :width => 83, :height => 8
642
+ pdf.draw_text "INSCRIÇÃO MUNICIPAL", :size => 5, :at => [3, 181], :width => 83, :height => 8
632
643
 
633
644
  # staticText
634
- pdf.draw_text "VALOR TOTAL DOS SERVIÇOS", :size => 5, :at => [100, 141], :width => 103, :height => 8
645
+ pdf.draw_text "VALOR TOTAL DOS SERVIÇOS", :size => 5, :at => [114, 181], :width => 103, :height => 8
635
646
 
636
647
  # textField total/vServ
637
- pdf.draw_text xml['total/vServ'], :size => 7, :at => [100, 130], :width => 138, :height => 10
648
+ pdf.draw_text xml['total/vServ'], :size => 7, :at => [114, 170], :width => 138, :height => 10
638
649
 
639
650
  # textField emit/IM
640
- pdf.draw_text xml['emit/IM'], :size => 7, :at => [-11, 130], :width => 105, :height => 10
651
+ pdf.draw_text xml['emit/IM'], :size => 7, :at => [3, 170], :width => 105, :height => 10
641
652
 
642
653
  # staticText
643
- pdf.draw_text "BASE DE CÁLCULO DO ISSQN", :size => 5, :at => [244, 141], :width => 103, :height => 8
654
+ pdf.draw_text "BASE DE CÁLCULO DO ISSQN", :size => 5, :at => [258, 181], :width => 103, :height => 8
644
655
 
645
656
  # textField total/vBCISS
646
- pdf.draw_text xml['total/vBCISS'], :size => 7, :at => [244, 130], :width => 138, :height => 10
657
+ pdf.draw_text xml['total/vBCISS'], :size => 7, :at => [258, 170], :width => 138, :height => 10
647
658
 
648
659
  # staticText
649
- pdf.draw_text "VALOR DO ISSQN", :size => 5, :at => [388, 141], :width => 103, :height => 8
660
+ pdf.draw_text "VALOR DO ISSQN", :size => 5, :at => [402, 181], :width => 103, :height => 8
650
661
 
651
662
  # textField total/ISSTot
652
- pdf.draw_text xml['total/ISSTot'], :size => 7, :at => [388, 130], :width => 159, :height => 10
663
+ pdf.draw_text xml['total/ISSTot'], :size => 7, :at => [402, 170], :width => 159, :height => 10
653
664
 
654
665
  # textField
655
666
  pdf.draw_text "", :size => 6, :at => [331, -50], :width => 216, :height => 163
656
667
 
657
668
  # staticText
658
- pdf.draw_text "RESERVADO AO FISCO", :size => 5, :at => [331, 113], :width => 96, :height => 7
669
+ pdf.draw_text "RESERVADO AO FISCO", :size => 5, :at => [345, 153], :width => 96, :height => 7
659
670
 
660
671
  # staticText
661
- pdf.draw_text "INFORMAÇÕES COMPLEMENTARES", :size => 5, :at => [-11, 112], :width => 93, :height => 7
672
+ pdf.draw_text "INFORMAÇÕES COMPLEMENTARES", :size => 5, :at => [3, 152], :width => 93, :height => 7
662
673
 
663
674
  return pdf
664
675
 
data/ruby_danfe.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'ruby_danfe'
3
- s.version = '0.0.3'
3
+ s.version = '0.0.4'
4
4
  s.summary = "DANFE generator for Brazilian NFE."
5
5
  s.authors = ["Eduardo Rebouças"]
6
6
  s.email = 'eduardo.reboucas@gmail.com'
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_danfe
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 3
10
- version: 0.0.3
9
+ - 4
10
+ version: 0.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - "Eduardo Rebou\xC3\xA7as"
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-10-20 00:00:00 Z
18
+ date: 2011-10-24 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: nokogiri