br_danfe 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +10 -10
- data/config/locales/pt-BR.yml +3 -3
- data/lib/br_danfe/danfe_lib/det_body.rb +14 -13
- data/lib/br_danfe/danfe_lib/det_header.rb +14 -14
- data/lib/br_danfe/version.rb +1 -1
- data/spec/fixtures/nfe/lib/det_body#render-csosn.pdf +197 -260
- data/spec/fixtures/nfe/lib/det_body#render-cst.pdf +116 -144
- data/spec/fixtures/nfe/lib/det_body#render-fci.pdf +53 -74
- data/spec/fixtures/nfe/lib/det_body#render-icms_st.pdf +53 -74
- data/spec/fixtures/nfe/lib/det_body#render-quantity_with_custom_precision.pdf +48 -62
- data/spec/fixtures/nfe/lib/det_body#render-unit_price_with_custom_precision.pdf +48 -62
- data/spec/fixtures/nfe/lib/det_header#render.pdf +35 -35
- data/spec/fixtures/nfe/v2.00/custom_options.fixture.pdf +179 -221
- data/spec/fixtures/nfe/v2.00/nfe_simples_nacional.xml.fixture.pdf +177 -219
- data/spec/fixtures/nfe/v2.00/nfe_with_extra_volumes.xml.fixture.pdf +882 -1092
- data/spec/fixtures/nfe/v2.00/nfe_with_fci.xml.fixture.pdf +107 -128
- data/spec/fixtures/nfe/v2.00/nfe_with_ns.xml.fixture.pdf +882 -1092
- data/spec/fixtures/nfe/v2.00/nfe_without_ns.xml.fixture.pdf +206 -248
- data/spec/fixtures/nfe/v3.10/nfe_simples_nacional.xml.fixture.pdf +453 -593
- metadata +2 -2
@@ -17,457 +17,429 @@ endobj
|
|
17
17
|
>>
|
18
18
|
endobj
|
19
19
|
4 0 obj
|
20
|
-
<< /Length
|
20
|
+
<< /Length 4750
|
21
21
|
>>
|
22
22
|
stream
|
23
23
|
q
|
24
24
|
0.3 w
|
25
|
-
[0.3 0.6] 0.0 d
|
26
25
|
0.3 w
|
27
26
|
/DeviceRGB CS
|
28
27
|
0.000 0.000 0.000 SCN
|
29
|
-
21.2598 311.
|
30
|
-
|
28
|
+
21.2598 311.3287 m
|
29
|
+
66.6142 311.3287 l
|
31
30
|
S
|
32
31
|
[] 0 d
|
33
32
|
0.3 w
|
34
33
|
0.000 0.000 0.000 SCN
|
35
34
|
|
36
35
|
BT
|
37
|
-
23.2598
|
38
|
-
/F1.0 6 Tf
|
36
|
+
23.2598 314.7359 Td
|
37
|
+
/F1.0 6.5 Tf
|
39
38
|
[<524546203034>] TJ
|
40
39
|
ET
|
41
40
|
|
42
|
-
[0.3 0.6] 0.0 d
|
43
41
|
0.3 w
|
44
42
|
0.000 0.000 0.000 SCN
|
45
|
-
|
46
|
-
|
43
|
+
66.6142 311.3287 m
|
44
|
+
239.5276 311.3287 l
|
47
45
|
S
|
48
46
|
[] 0 d
|
49
47
|
0.3 w
|
50
48
|
0.000 0.000 0.000 SCN
|
51
49
|
|
52
50
|
BT
|
53
|
-
|
54
|
-
/F1.0 6 Tf
|
51
|
+
68.6142 314.7359 Td
|
52
|
+
/F1.0 6.5 Tf
|
55
53
|
[<50726f6475746f20636f6d20435354203030202d204e6163696f6e616c202d2049434d53202d20495049>] TJ
|
56
54
|
ET
|
57
55
|
|
58
|
-
[0.3 0.6] 0.0 d
|
59
56
|
0.3 w
|
60
57
|
0.000 0.000 0.000 SCN
|
61
|
-
|
62
|
-
|
58
|
+
239.5276 311.3287 m
|
59
|
+
269.2913 311.3287 l
|
63
60
|
S
|
64
61
|
[] 0 d
|
65
62
|
0.3 w
|
66
63
|
0.000 0.000 0.000 SCN
|
67
64
|
|
68
65
|
BT
|
69
|
-
|
70
|
-
/F1.0 6 Tf
|
66
|
+
241.5276 314.7359 Td
|
67
|
+
/F1.0 6.5 Tf
|
71
68
|
[<3930333033333239>] TJ
|
72
69
|
ET
|
73
70
|
|
74
|
-
[0.3 0.6] 0.0 d
|
75
71
|
0.3 w
|
76
72
|
0.000 0.000 0.000 SCN
|
77
|
-
|
78
|
-
|
73
|
+
269.2913 311.3287 m
|
74
|
+
286.2992 311.3287 l
|
79
75
|
S
|
80
76
|
[] 0 d
|
81
77
|
0.3 w
|
82
78
|
0.000 0.000 0.000 SCN
|
83
79
|
|
84
80
|
BT
|
85
|
-
|
86
|
-
/F1.0 6 Tf
|
81
|
+
271.2913 314.7359 Td
|
82
|
+
/F1.0 6.5 Tf
|
87
83
|
[<303030>] TJ
|
88
84
|
ET
|
89
85
|
|
90
|
-
[0.3 0.6] 0.0 d
|
91
86
|
0.3 w
|
92
87
|
0.000 0.000 0.000 SCN
|
93
|
-
|
94
|
-
|
88
|
+
286.2992 311.3287 m
|
89
|
+
306.1417 311.3287 l
|
95
90
|
S
|
96
91
|
[] 0 d
|
97
92
|
0.3 w
|
98
93
|
0.000 0.000 0.000 SCN
|
99
94
|
|
100
95
|
BT
|
101
|
-
|
102
|
-
/F1.0 6 Tf
|
96
|
+
288.2992 314.7359 Td
|
97
|
+
/F1.0 6.5 Tf
|
103
98
|
[<35313031>] TJ
|
104
99
|
ET
|
105
100
|
|
106
|
-
[0.3 0.6] 0.0 d
|
107
101
|
0.3 w
|
108
102
|
0.000 0.000 0.000 SCN
|
109
|
-
|
110
|
-
|
103
|
+
306.1417 311.3287 m
|
104
|
+
335.9055 311.3287 l
|
111
105
|
S
|
112
106
|
[] 0 d
|
113
107
|
0.3 w
|
114
108
|
0.000 0.000 0.000 SCN
|
115
109
|
|
116
110
|
BT
|
117
|
-
|
118
|
-
/F1.0 6 Tf
|
111
|
+
308.1417 314.7359 Td
|
112
|
+
/F1.0 6.5 Tf
|
119
113
|
[<5043>] TJ
|
120
114
|
ET
|
121
115
|
|
122
|
-
[0.3 0.6] 0.0 d
|
123
116
|
0.3 w
|
124
117
|
0.000 0.000 0.000 SCN
|
125
|
-
|
126
|
-
|
118
|
+
335.9055 311.3287 m
|
119
|
+
369.9213 311.3287 l
|
127
120
|
S
|
128
121
|
[] 0 d
|
129
122
|
0.3 w
|
130
123
|
0.000 0.000 0.000 SCN
|
131
124
|
|
132
125
|
BT
|
133
|
-
|
134
|
-
/F1.0 6 Tf
|
126
|
+
357.5463 314.7359 Td
|
127
|
+
/F1.0 6.5 Tf
|
135
128
|
[<312c3030>] TJ
|
136
129
|
ET
|
137
130
|
|
138
|
-
[0.3 0.6] 0.0 d
|
139
131
|
0.3 w
|
140
132
|
0.000 0.000 0.000 SCN
|
141
|
-
|
142
|
-
|
133
|
+
369.9213 311.3287 m
|
134
|
+
403.937 311.3287 l
|
143
135
|
S
|
144
136
|
[] 0 d
|
145
137
|
0.3 w
|
146
138
|
0.000 0.000 0.000 SCN
|
147
139
|
|
148
140
|
BT
|
149
|
-
|
150
|
-
/F1.0 6 Tf
|
141
|
+
388.312 314.7359 Td
|
142
|
+
/F1.0 6.5 Tf
|
151
143
|
[<34392c3233>] TJ
|
152
144
|
ET
|
153
145
|
|
154
|
-
[0.3 0.6] 0.0 d
|
155
146
|
0.3 w
|
156
147
|
0.000 0.000 0.000 SCN
|
157
|
-
|
158
|
-
|
148
|
+
403.937 311.3287 m
|
149
|
+
437.9528 311.3287 l
|
159
150
|
S
|
160
151
|
[] 0 d
|
161
152
|
0.3 w
|
162
153
|
0.000 0.000 0.000 SCN
|
163
154
|
|
164
155
|
BT
|
165
|
-
|
166
|
-
/F1.0 6 Tf
|
156
|
+
422.3278 314.7359 Td
|
157
|
+
/F1.0 6.5 Tf
|
167
158
|
[<34392c3233>] TJ
|
168
159
|
ET
|
169
160
|
|
170
|
-
[0.3 0.6] 0.0 d
|
171
161
|
0.3 w
|
172
162
|
0.000 0.000 0.000 SCN
|
173
|
-
|
174
|
-
|
163
|
+
437.9528 311.3287 m
|
164
|
+
471.9685 311.3287 l
|
175
165
|
S
|
176
166
|
[] 0 d
|
177
167
|
0.3 w
|
178
168
|
0.000 0.000 0.000 SCN
|
179
169
|
|
180
170
|
BT
|
181
|
-
|
182
|
-
/F1.0 6 Tf
|
171
|
+
456.3435 314.7359 Td
|
172
|
+
/F1.0 6.5 Tf
|
183
173
|
[<34392c3233>] TJ
|
184
174
|
ET
|
185
175
|
|
186
|
-
[0.3 0.6] 0.0 d
|
187
176
|
0.3 w
|
188
177
|
0.000 0.000 0.000 SCN
|
189
|
-
|
190
|
-
|
178
|
+
471.9685 311.3287 m
|
179
|
+
500.315 311.3287 l
|
191
180
|
S
|
192
181
|
[] 0 d
|
193
182
|
0.3 w
|
194
183
|
0.000 0.000 0.000 SCN
|
195
184
|
|
196
185
|
BT
|
197
|
-
|
198
|
-
/F1.0 6 Tf
|
186
|
+
487.94 314.7359 Td
|
187
|
+
/F1.0 6.5 Tf
|
199
188
|
[<352c3930>] TJ
|
200
189
|
ET
|
201
190
|
|
202
|
-
[0.3 0.6] 0.0 d
|
203
191
|
0.3 w
|
204
192
|
0.000 0.000 0.000 SCN
|
205
|
-
|
206
|
-
|
193
|
+
500.315 311.3287 m
|
194
|
+
528.6614 311.3287 l
|
207
195
|
S
|
208
196
|
[] 0 d
|
209
197
|
0.3 w
|
210
198
|
0.000 0.000 0.000 SCN
|
211
199
|
|
212
200
|
BT
|
213
|
-
|
214
|
-
/F1.0 6 Tf
|
201
|
+
516.2864 314.7359 Td
|
202
|
+
/F1.0 6.5 Tf
|
215
203
|
[<322c3436>] TJ
|
216
204
|
ET
|
217
205
|
|
218
|
-
[0.3 0.6] 0.0 d
|
219
206
|
0.3 w
|
220
207
|
0.000 0.000 0.000 SCN
|
221
|
-
|
222
|
-
|
208
|
+
528.6614 311.3287 m
|
209
|
+
554.1732 311.3287 l
|
223
210
|
S
|
224
211
|
[] 0 d
|
225
212
|
0.3 w
|
226
213
|
0.000 0.000 0.000 SCN
|
227
214
|
|
228
215
|
BT
|
229
|
-
|
230
|
-
/F1.0 6 Tf
|
216
|
+
538.5482 314.7359 Td
|
217
|
+
/F1.0 6.5 Tf
|
231
218
|
[<31322c3030>] TJ
|
232
219
|
ET
|
233
220
|
|
234
|
-
[0.3 0.6] 0.0 d
|
235
221
|
0.3 w
|
236
222
|
0.000 0.000 0.000 SCN
|
237
|
-
|
238
|
-
575.7165 311.
|
223
|
+
554.1732 311.3287 m
|
224
|
+
575.7165 311.3287 l
|
239
225
|
S
|
240
226
|
[] 0 d
|
241
227
|
0.3 w
|
242
228
|
0.000 0.000 0.000 SCN
|
243
229
|
|
244
230
|
BT
|
245
|
-
|
246
|
-
/F1.0 6 Tf
|
231
|
+
563.3415 314.7359 Td
|
232
|
+
/F1.0 6.5 Tf
|
247
233
|
[<352c3030>] TJ
|
248
234
|
ET
|
249
235
|
|
250
|
-
[0.3 0.6] 0.0 d
|
251
236
|
0.3 w
|
252
237
|
0.000 0.000 0.000 SCN
|
253
|
-
21.2598
|
254
|
-
|
238
|
+
21.2598 300.0747 m
|
239
|
+
66.6142 300.0747 l
|
255
240
|
S
|
256
241
|
[] 0 d
|
257
242
|
0.3 w
|
258
243
|
0.000 0.000 0.000 SCN
|
259
244
|
|
260
245
|
BT
|
261
|
-
23.2598
|
262
|
-
/F1.0 6 Tf
|
246
|
+
23.2598 303.4819 Td
|
247
|
+
/F1.0 6.5 Tf
|
263
248
|
[<524546203035>] TJ
|
264
249
|
ET
|
265
250
|
|
266
|
-
[0.3 0.6] 0.0 d
|
267
251
|
0.3 w
|
268
252
|
0.000 0.000 0.000 SCN
|
269
|
-
|
270
|
-
|
253
|
+
66.6142 300.0747 m
|
254
|
+
239.5276 300.0747 l
|
271
255
|
S
|
272
256
|
[] 0 d
|
273
257
|
0.3 w
|
274
258
|
0.000 0.000 0.000 SCN
|
275
259
|
|
276
260
|
BT
|
277
|
-
|
278
|
-
/F1.0 6 Tf
|
261
|
+
68.6142 303.4819 Td
|
262
|
+
/F1.0 6.5 Tf
|
279
263
|
[<50726f6475746f20636f6d20435354203030202d2045737472616e676569726f202d2049434d53202d20495049>] TJ
|
280
264
|
ET
|
281
265
|
|
282
|
-
[0.3 0.6] 0.0 d
|
283
266
|
0.3 w
|
284
267
|
0.000 0.000 0.000 SCN
|
285
|
-
|
286
|
-
|
268
|
+
239.5276 300.0747 m
|
269
|
+
269.2913 300.0747 l
|
287
270
|
S
|
288
271
|
[] 0 d
|
289
272
|
0.3 w
|
290
273
|
0.000 0.000 0.000 SCN
|
291
274
|
|
292
275
|
BT
|
293
|
-
|
294
|
-
/F1.0 6 Tf
|
276
|
+
241.5276 303.4819 Td
|
277
|
+
/F1.0 6.5 Tf
|
295
278
|
[<3930333033333239>] TJ
|
296
279
|
ET
|
297
280
|
|
298
|
-
[0.3 0.6] 0.0 d
|
299
281
|
0.3 w
|
300
282
|
0.000 0.000 0.000 SCN
|
301
|
-
|
302
|
-
|
283
|
+
269.2913 300.0747 m
|
284
|
+
286.2992 300.0747 l
|
303
285
|
S
|
304
286
|
[] 0 d
|
305
287
|
0.3 w
|
306
288
|
0.000 0.000 0.000 SCN
|
307
289
|
|
308
290
|
BT
|
309
|
-
|
310
|
-
/F1.0 6 Tf
|
291
|
+
271.2913 303.4819 Td
|
292
|
+
/F1.0 6.5 Tf
|
311
293
|
[<313030>] TJ
|
312
294
|
ET
|
313
295
|
|
314
|
-
[0.3 0.6] 0.0 d
|
315
296
|
0.3 w
|
316
297
|
0.000 0.000 0.000 SCN
|
317
|
-
|
318
|
-
|
298
|
+
286.2992 300.0747 m
|
299
|
+
306.1417 300.0747 l
|
319
300
|
S
|
320
301
|
[] 0 d
|
321
302
|
0.3 w
|
322
303
|
0.000 0.000 0.000 SCN
|
323
304
|
|
324
305
|
BT
|
325
|
-
|
326
|
-
/F1.0 6 Tf
|
306
|
+
288.2992 303.4819 Td
|
307
|
+
/F1.0 6.5 Tf
|
327
308
|
[<35313031>] TJ
|
328
309
|
ET
|
329
310
|
|
330
|
-
[0.3 0.6] 0.0 d
|
331
311
|
0.3 w
|
332
312
|
0.000 0.000 0.000 SCN
|
333
|
-
|
334
|
-
|
313
|
+
306.1417 300.0747 m
|
314
|
+
335.9055 300.0747 l
|
335
315
|
S
|
336
316
|
[] 0 d
|
337
317
|
0.3 w
|
338
318
|
0.000 0.000 0.000 SCN
|
339
319
|
|
340
320
|
BT
|
341
|
-
|
342
|
-
/F1.0 6 Tf
|
321
|
+
308.1417 303.4819 Td
|
322
|
+
/F1.0 6.5 Tf
|
343
323
|
[<5043>] TJ
|
344
324
|
ET
|
345
325
|
|
346
|
-
[0.3 0.6] 0.0 d
|
347
326
|
0.3 w
|
348
327
|
0.000 0.000 0.000 SCN
|
349
|
-
|
350
|
-
|
328
|
+
335.9055 300.0747 m
|
329
|
+
369.9213 300.0747 l
|
351
330
|
S
|
352
331
|
[] 0 d
|
353
332
|
0.3 w
|
354
333
|
0.000 0.000 0.000 SCN
|
355
334
|
|
356
335
|
BT
|
357
|
-
|
358
|
-
/F1.0 6 Tf
|
336
|
+
357.5463 303.4819 Td
|
337
|
+
/F1.0 6.5 Tf
|
359
338
|
[<312c3030>] TJ
|
360
339
|
ET
|
361
340
|
|
362
|
-
[0.3 0.6] 0.0 d
|
363
341
|
0.3 w
|
364
342
|
0.000 0.000 0.000 SCN
|
365
|
-
|
366
|
-
|
343
|
+
369.9213 300.0747 m
|
344
|
+
403.937 300.0747 l
|
367
345
|
S
|
368
346
|
[] 0 d
|
369
347
|
0.3 w
|
370
348
|
0.000 0.000 0.000 SCN
|
371
349
|
|
372
350
|
BT
|
373
|
-
|
374
|
-
/F1.0 6 Tf
|
351
|
+
388.312 303.4819 Td
|
352
|
+
/F1.0 6.5 Tf
|
375
353
|
[<34392c3233>] TJ
|
376
354
|
ET
|
377
355
|
|
378
|
-
[0.3 0.6] 0.0 d
|
379
356
|
0.3 w
|
380
357
|
0.000 0.000 0.000 SCN
|
381
|
-
|
382
|
-
|
358
|
+
403.937 300.0747 m
|
359
|
+
437.9528 300.0747 l
|
383
360
|
S
|
384
361
|
[] 0 d
|
385
362
|
0.3 w
|
386
363
|
0.000 0.000 0.000 SCN
|
387
364
|
|
388
365
|
BT
|
389
|
-
|
390
|
-
/F1.0 6 Tf
|
366
|
+
422.3278 303.4819 Td
|
367
|
+
/F1.0 6.5 Tf
|
391
368
|
[<34392c3233>] TJ
|
392
369
|
ET
|
393
370
|
|
394
|
-
[0.3 0.6] 0.0 d
|
395
371
|
0.3 w
|
396
372
|
0.000 0.000 0.000 SCN
|
397
|
-
|
398
|
-
|
373
|
+
437.9528 300.0747 m
|
374
|
+
471.9685 300.0747 l
|
399
375
|
S
|
400
376
|
[] 0 d
|
401
377
|
0.3 w
|
402
378
|
0.000 0.000 0.000 SCN
|
403
379
|
|
404
380
|
BT
|
405
|
-
|
406
|
-
/F1.0 6 Tf
|
381
|
+
456.3435 303.4819 Td
|
382
|
+
/F1.0 6.5 Tf
|
407
383
|
[<34392c3233>] TJ
|
408
384
|
ET
|
409
385
|
|
410
|
-
[0.3 0.6] 0.0 d
|
411
386
|
0.3 w
|
412
387
|
0.000 0.000 0.000 SCN
|
413
|
-
|
414
|
-
|
388
|
+
471.9685 300.0747 m
|
389
|
+
500.315 300.0747 l
|
415
390
|
S
|
416
391
|
[] 0 d
|
417
392
|
0.3 w
|
418
393
|
0.000 0.000 0.000 SCN
|
419
394
|
|
420
395
|
BT
|
421
|
-
|
422
|
-
/F1.0 6 Tf
|
396
|
+
487.94 303.4819 Td
|
397
|
+
/F1.0 6.5 Tf
|
423
398
|
[<352c3930>] TJ
|
424
399
|
ET
|
425
400
|
|
426
|
-
[0.3 0.6] 0.0 d
|
427
401
|
0.3 w
|
428
402
|
0.000 0.000 0.000 SCN
|
429
|
-
|
430
|
-
|
403
|
+
500.315 300.0747 m
|
404
|
+
528.6614 300.0747 l
|
431
405
|
S
|
432
406
|
[] 0 d
|
433
407
|
0.3 w
|
434
408
|
0.000 0.000 0.000 SCN
|
435
409
|
|
436
410
|
BT
|
437
|
-
|
438
|
-
/F1.0 6 Tf
|
411
|
+
516.2864 303.4819 Td
|
412
|
+
/F1.0 6.5 Tf
|
439
413
|
[<322c3436>] TJ
|
440
414
|
ET
|
441
415
|
|
442
|
-
[0.3 0.6] 0.0 d
|
443
416
|
0.3 w
|
444
417
|
0.000 0.000 0.000 SCN
|
445
|
-
|
446
|
-
|
418
|
+
528.6614 300.0747 m
|
419
|
+
554.1732 300.0747 l
|
447
420
|
S
|
448
421
|
[] 0 d
|
449
422
|
0.3 w
|
450
423
|
0.000 0.000 0.000 SCN
|
451
424
|
|
452
425
|
BT
|
453
|
-
|
454
|
-
/F1.0 6 Tf
|
426
|
+
538.5482 303.4819 Td
|
427
|
+
/F1.0 6.5 Tf
|
455
428
|
[<31322c3030>] TJ
|
456
429
|
ET
|
457
430
|
|
458
|
-
[0.3 0.6] 0.0 d
|
459
431
|
0.3 w
|
460
432
|
0.000 0.000 0.000 SCN
|
461
|
-
|
462
|
-
575.7165
|
433
|
+
554.1732 300.0747 m
|
434
|
+
575.7165 300.0747 l
|
463
435
|
S
|
464
436
|
[] 0 d
|
465
437
|
0.3 w
|
466
438
|
0.000 0.000 0.000 SCN
|
467
439
|
|
468
440
|
BT
|
469
|
-
|
470
|
-
/F1.0 6 Tf
|
441
|
+
563.3415 303.4819 Td
|
442
|
+
/F1.0 6.5 Tf
|
471
443
|
[<352c3030>] TJ
|
472
444
|
ET
|
473
445
|
|
@@ -500,13 +472,13 @@ xref
|
|
500
472
|
0000000109 00000 n
|
501
473
|
0000000158 00000 n
|
502
474
|
0000000215 00000 n
|
503
|
-
|
504
|
-
|
475
|
+
0000005017 00000 n
|
476
|
+
0000005197 00000 n
|
505
477
|
trailer
|
506
478
|
<< /Size 7
|
507
479
|
/Root 2 0 R
|
508
480
|
/Info 1 0 R
|
509
481
|
>>
|
510
482
|
startxref
|
511
|
-
|
483
|
+
5296
|
512
484
|
%%EOF
|