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,211 +17,190 @@ endobj
|
|
17
17
|
>>
|
18
18
|
endobj
|
19
19
|
4 0 obj
|
20
|
-
<< /Length
|
20
|
+
<< /Length 2169
|
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
|
30
|
-
|
28
|
+
21.2598 304.0747 m
|
29
|
+
66.6142 304.0747 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
|
[<524546203036>] 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 304.0747 m
|
44
|
+
239.5276 304.0747 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
|
[<50726f6475746f20636f6d20464349>] TJ
|
56
54
|
ET
|
57
55
|
|
58
56
|
|
59
57
|
BT
|
60
|
-
|
61
|
-
/F1.0 6 Tf
|
62
|
-
[<
|
58
|
+
68.6142 307.4819 Td
|
59
|
+
/F1.0 6.5 Tf
|
60
|
+
[<4643493a2031323233323533312d373442322d344644442d383741362d434630414433453535333836>] TJ
|
63
61
|
ET
|
64
62
|
|
65
|
-
|
66
|
-
BT
|
67
|
-
65.7795 301.7937 Td
|
68
|
-
/F1.0 6 Tf
|
69
|
-
[<434630414433453535333836>] TJ
|
70
|
-
ET
|
71
|
-
|
72
|
-
[0.3 0.6] 0.0 d
|
73
63
|
0.3 w
|
74
64
|
0.000 0.000 0.000 SCN
|
75
|
-
|
76
|
-
|
65
|
+
239.5276 304.0747 m
|
66
|
+
269.2913 304.0747 l
|
77
67
|
S
|
78
68
|
[] 0 d
|
79
69
|
0.3 w
|
80
70
|
0.000 0.000 0.000 SCN
|
81
71
|
|
82
72
|
BT
|
83
|
-
|
84
|
-
/F1.0 6 Tf
|
73
|
+
241.5276 314.7359 Td
|
74
|
+
/F1.0 6.5 Tf
|
85
75
|
[<3930333033333239>] TJ
|
86
76
|
ET
|
87
77
|
|
88
|
-
[0.3 0.6] 0.0 d
|
89
78
|
0.3 w
|
90
79
|
0.000 0.000 0.000 SCN
|
91
|
-
|
92
|
-
|
80
|
+
269.2913 304.0747 m
|
81
|
+
286.2992 304.0747 l
|
93
82
|
S
|
94
83
|
[] 0 d
|
95
84
|
0.3 w
|
96
85
|
0.000 0.000 0.000 SCN
|
97
86
|
|
98
87
|
BT
|
99
|
-
|
100
|
-
/F1.0 6 Tf
|
88
|
+
271.2913 314.7359 Td
|
89
|
+
/F1.0 6.5 Tf
|
101
90
|
[<303030>] TJ
|
102
91
|
ET
|
103
92
|
|
104
|
-
[0.3 0.6] 0.0 d
|
105
93
|
0.3 w
|
106
94
|
0.000 0.000 0.000 SCN
|
107
|
-
|
108
|
-
|
95
|
+
286.2992 304.0747 m
|
96
|
+
306.1417 304.0747 l
|
109
97
|
S
|
110
98
|
[] 0 d
|
111
99
|
0.3 w
|
112
100
|
0.000 0.000 0.000 SCN
|
113
101
|
|
114
102
|
BT
|
115
|
-
|
116
|
-
/F1.0 6 Tf
|
103
|
+
288.2992 314.7359 Td
|
104
|
+
/F1.0 6.5 Tf
|
117
105
|
[<35313031>] TJ
|
118
106
|
ET
|
119
107
|
|
120
|
-
[0.3 0.6] 0.0 d
|
121
108
|
0.3 w
|
122
109
|
0.000 0.000 0.000 SCN
|
123
|
-
|
124
|
-
|
110
|
+
306.1417 304.0747 m
|
111
|
+
335.9055 304.0747 l
|
125
112
|
S
|
126
113
|
[] 0 d
|
127
114
|
0.3 w
|
128
115
|
0.000 0.000 0.000 SCN
|
129
116
|
|
130
117
|
BT
|
131
|
-
|
132
|
-
/F1.0 6 Tf
|
118
|
+
308.1417 314.7359 Td
|
119
|
+
/F1.0 6.5 Tf
|
133
120
|
[<5043>] TJ
|
134
121
|
ET
|
135
122
|
|
136
|
-
[0.3 0.6] 0.0 d
|
137
123
|
0.3 w
|
138
124
|
0.000 0.000 0.000 SCN
|
139
|
-
|
140
|
-
|
125
|
+
335.9055 304.0747 m
|
126
|
+
369.9213 304.0747 l
|
141
127
|
S
|
142
128
|
[] 0 d
|
143
129
|
0.3 w
|
144
130
|
0.000 0.000 0.000 SCN
|
145
131
|
|
146
132
|
BT
|
147
|
-
|
148
|
-
/F1.0 6 Tf
|
133
|
+
357.5463 314.7359 Td
|
134
|
+
/F1.0 6.5 Tf
|
149
135
|
[<312c3030>] TJ
|
150
136
|
ET
|
151
137
|
|
152
|
-
[0.3 0.6] 0.0 d
|
153
138
|
0.3 w
|
154
139
|
0.000 0.000 0.000 SCN
|
155
|
-
|
156
|
-
|
140
|
+
369.9213 304.0747 m
|
141
|
+
403.937 304.0747 l
|
157
142
|
S
|
158
143
|
[] 0 d
|
159
144
|
0.3 w
|
160
145
|
0.000 0.000 0.000 SCN
|
161
146
|
|
162
147
|
BT
|
163
|
-
|
164
|
-
/F1.0 6 Tf
|
148
|
+
388.312 314.7359 Td
|
149
|
+
/F1.0 6.5 Tf
|
165
150
|
[<34392c3233>] TJ
|
166
151
|
ET
|
167
152
|
|
168
|
-
[0.3 0.6] 0.0 d
|
169
153
|
0.3 w
|
170
154
|
0.000 0.000 0.000 SCN
|
171
|
-
|
172
|
-
|
155
|
+
403.937 304.0747 m
|
156
|
+
437.9528 304.0747 l
|
173
157
|
S
|
174
158
|
[] 0 d
|
175
159
|
0.3 w
|
176
160
|
0.000 0.000 0.000 SCN
|
177
161
|
|
178
162
|
BT
|
179
|
-
|
180
|
-
/F1.0 6 Tf
|
163
|
+
422.3278 314.7359 Td
|
164
|
+
/F1.0 6.5 Tf
|
181
165
|
[<34392c3233>] TJ
|
182
166
|
ET
|
183
167
|
|
184
|
-
[0.3 0.6] 0.0 d
|
185
168
|
0.3 w
|
186
169
|
0.000 0.000 0.000 SCN
|
187
|
-
|
188
|
-
|
170
|
+
437.9528 304.0747 m
|
171
|
+
471.9685 304.0747 l
|
189
172
|
S
|
190
173
|
[] 0 d
|
191
174
|
0.3 w
|
192
175
|
0.000 0.000 0.000 SCN
|
193
|
-
[0.3 0.6] 0.0 d
|
194
176
|
0.3 w
|
195
177
|
0.000 0.000 0.000 SCN
|
196
|
-
|
197
|
-
|
178
|
+
471.9685 304.0747 m
|
179
|
+
500.315 304.0747 l
|
198
180
|
S
|
199
181
|
[] 0 d
|
200
182
|
0.3 w
|
201
183
|
0.000 0.000 0.000 SCN
|
202
|
-
[0.3 0.6] 0.0 d
|
203
184
|
0.3 w
|
204
185
|
0.000 0.000 0.000 SCN
|
205
|
-
|
206
|
-
|
186
|
+
500.315 304.0747 m
|
187
|
+
528.6614 304.0747 l
|
207
188
|
S
|
208
189
|
[] 0 d
|
209
190
|
0.3 w
|
210
191
|
0.000 0.000 0.000 SCN
|
211
|
-
[0.3 0.6] 0.0 d
|
212
192
|
0.3 w
|
213
193
|
0.000 0.000 0.000 SCN
|
214
|
-
|
215
|
-
|
194
|
+
528.6614 304.0747 m
|
195
|
+
554.1732 304.0747 l
|
216
196
|
S
|
217
197
|
[] 0 d
|
218
198
|
0.3 w
|
219
199
|
0.000 0.000 0.000 SCN
|
220
|
-
[0.3 0.6] 0.0 d
|
221
200
|
0.3 w
|
222
201
|
0.000 0.000 0.000 SCN
|
223
|
-
|
224
|
-
575.7165
|
202
|
+
554.1732 304.0747 m
|
203
|
+
575.7165 304.0747 l
|
225
204
|
S
|
226
205
|
[] 0 d
|
227
206
|
0.3 w
|
@@ -255,13 +234,13 @@ xref
|
|
255
234
|
0000000109 00000 n
|
256
235
|
0000000158 00000 n
|
257
236
|
0000000215 00000 n
|
258
|
-
|
259
|
-
|
237
|
+
0000002436 00000 n
|
238
|
+
0000002616 00000 n
|
260
239
|
trailer
|
261
240
|
<< /Size 7
|
262
241
|
/Root 2 0 R
|
263
242
|
/Info 1 0 R
|
264
243
|
>>
|
265
244
|
startxref
|
266
|
-
|
245
|
+
2715
|
267
246
|
%%EOF
|
@@ -17,211 +17,190 @@ endobj
|
|
17
17
|
>>
|
18
18
|
endobj
|
19
19
|
4 0 obj
|
20
|
-
<< /Length
|
20
|
+
<< /Length 2226
|
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
|
30
|
-
|
28
|
+
21.2598 304.0747 m
|
29
|
+
66.6142 304.0747 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
|
[<33>] 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 304.0747 m
|
44
|
+
239.5276 304.0747 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
|
[<50726f6475746f20436f6d2043736f736e20323031202d2049434d53205354>] TJ
|
56
54
|
ET
|
57
55
|
|
58
56
|
|
59
57
|
BT
|
60
|
-
|
61
|
-
/F1.0 6 Tf
|
62
|
-
[<5354> 50 <3a204d56> 135 <
|
58
|
+
68.6142 307.4819 Td
|
59
|
+
/F1.0 6.5 Tf
|
60
|
+
[<5354> 50 <3a204d56> 135 <413a2032342c303025202a20416ced713a2031372c303025202a2042433a20372c3636202a20566c723a20302c3235>] TJ
|
63
61
|
ET
|
64
62
|
|
65
|
-
|
66
|
-
BT
|
67
|
-
65.7795 301.7937 Td
|
68
|
-
/F1.0 6 Tf
|
69
|
-
[<566c723a20302c3235>] TJ
|
70
|
-
ET
|
71
|
-
|
72
|
-
[0.3 0.6] 0.0 d
|
73
63
|
0.3 w
|
74
64
|
0.000 0.000 0.000 SCN
|
75
|
-
|
76
|
-
|
65
|
+
239.5276 304.0747 m
|
66
|
+
269.2913 304.0747 l
|
77
67
|
S
|
78
68
|
[] 0 d
|
79
69
|
0.3 w
|
80
70
|
0.000 0.000 0.000 SCN
|
81
71
|
|
82
72
|
BT
|
83
|
-
|
84
|
-
/F1.0 6 Tf
|
73
|
+
241.5276 314.7359 Td
|
74
|
+
/F1.0 6.5 Tf
|
85
75
|
[<3435363738393031>] TJ
|
86
76
|
ET
|
87
77
|
|
88
|
-
[0.3 0.6] 0.0 d
|
89
78
|
0.3 w
|
90
79
|
0.000 0.000 0.000 SCN
|
91
|
-
|
92
|
-
|
80
|
+
269.2913 304.0747 m
|
81
|
+
286.2992 304.0747 l
|
93
82
|
S
|
94
83
|
[] 0 d
|
95
84
|
0.3 w
|
96
85
|
0.000 0.000 0.000 SCN
|
97
86
|
|
98
87
|
BT
|
99
|
-
|
100
|
-
/F1.0 6 Tf
|
88
|
+
271.2913 314.7359 Td
|
89
|
+
/F1.0 6.5 Tf
|
101
90
|
[<30323031>] TJ
|
102
91
|
ET
|
103
92
|
|
104
|
-
[0.3 0.6] 0.0 d
|
105
93
|
0.3 w
|
106
94
|
0.000 0.000 0.000 SCN
|
107
|
-
|
108
|
-
|
95
|
+
286.2992 304.0747 m
|
96
|
+
306.1417 304.0747 l
|
109
97
|
S
|
110
98
|
[] 0 d
|
111
99
|
0.3 w
|
112
100
|
0.000 0.000 0.000 SCN
|
113
101
|
|
114
102
|
BT
|
115
|
-
|
116
|
-
/F1.0 6 Tf
|
103
|
+
288.2992 314.7359 Td
|
104
|
+
/F1.0 6.5 Tf
|
117
105
|
[<35343031>] TJ
|
118
106
|
ET
|
119
107
|
|
120
|
-
[0.3 0.6] 0.0 d
|
121
108
|
0.3 w
|
122
109
|
0.000 0.000 0.000 SCN
|
123
|
-
|
124
|
-
|
110
|
+
306.1417 304.0747 m
|
111
|
+
335.9055 304.0747 l
|
125
112
|
S
|
126
113
|
[] 0 d
|
127
114
|
0.3 w
|
128
115
|
0.000 0.000 0.000 SCN
|
129
116
|
|
130
117
|
BT
|
131
|
-
|
132
|
-
/F1.0 6 Tf
|
118
|
+
308.1417 314.7359 Td
|
119
|
+
/F1.0 6.5 Tf
|
133
120
|
[<554e>] TJ
|
134
121
|
ET
|
135
122
|
|
136
|
-
[0.3 0.6] 0.0 d
|
137
123
|
0.3 w
|
138
124
|
0.000 0.000 0.000 SCN
|
139
|
-
|
140
|
-
|
125
|
+
335.9055 304.0747 m
|
126
|
+
369.9213 304.0747 l
|
141
127
|
S
|
142
128
|
[] 0 d
|
143
129
|
0.3 w
|
144
130
|
0.000 0.000 0.000 SCN
|
145
131
|
|
146
132
|
BT
|
147
|
-
|
148
|
-
/F1.0 6 Tf
|
133
|
+
357.5463 314.7359 Td
|
134
|
+
/F1.0 6.5 Tf
|
149
135
|
[<362c3030>] TJ
|
150
136
|
ET
|
151
137
|
|
152
|
-
[0.3 0.6] 0.0 d
|
153
138
|
0.3 w
|
154
139
|
0.000 0.000 0.000 SCN
|
155
|
-
|
156
|
-
|
140
|
+
369.9213 304.0747 m
|
141
|
+
403.937 304.0747 l
|
157
142
|
S
|
158
143
|
[] 0 d
|
159
144
|
0.3 w
|
160
145
|
0.000 0.000 0.000 SCN
|
161
146
|
|
162
147
|
BT
|
163
|
-
|
164
|
-
/F1.0 6 Tf
|
148
|
+
391.562 314.7359 Td
|
149
|
+
/F1.0 6.5 Tf
|
165
150
|
[<312c3033>] TJ
|
166
151
|
ET
|
167
152
|
|
168
|
-
[0.3 0.6] 0.0 d
|
169
153
|
0.3 w
|
170
154
|
0.000 0.000 0.000 SCN
|
171
|
-
|
172
|
-
|
155
|
+
403.937 304.0747 m
|
156
|
+
437.9528 304.0747 l
|
173
157
|
S
|
174
158
|
[] 0 d
|
175
159
|
0.3 w
|
176
160
|
0.000 0.000 0.000 SCN
|
177
161
|
|
178
162
|
BT
|
179
|
-
|
180
|
-
/F1.0 6 Tf
|
163
|
+
425.5778 314.7359 Td
|
164
|
+
/F1.0 6.5 Tf
|
181
165
|
[<362c3138>] TJ
|
182
166
|
ET
|
183
167
|
|
184
|
-
[0.3 0.6] 0.0 d
|
185
168
|
0.3 w
|
186
169
|
0.000 0.000 0.000 SCN
|
187
|
-
|
188
|
-
|
170
|
+
437.9528 304.0747 m
|
171
|
+
471.9685 304.0747 l
|
189
172
|
S
|
190
173
|
[] 0 d
|
191
174
|
0.3 w
|
192
175
|
0.000 0.000 0.000 SCN
|
193
|
-
[0.3 0.6] 0.0 d
|
194
176
|
0.3 w
|
195
177
|
0.000 0.000 0.000 SCN
|
196
|
-
|
197
|
-
|
178
|
+
471.9685 304.0747 m
|
179
|
+
500.315 304.0747 l
|
198
180
|
S
|
199
181
|
[] 0 d
|
200
182
|
0.3 w
|
201
183
|
0.000 0.000 0.000 SCN
|
202
|
-
[0.3 0.6] 0.0 d
|
203
184
|
0.3 w
|
204
185
|
0.000 0.000 0.000 SCN
|
205
|
-
|
206
|
-
|
186
|
+
500.315 304.0747 m
|
187
|
+
528.6614 304.0747 l
|
207
188
|
S
|
208
189
|
[] 0 d
|
209
190
|
0.3 w
|
210
191
|
0.000 0.000 0.000 SCN
|
211
|
-
[0.3 0.6] 0.0 d
|
212
192
|
0.3 w
|
213
193
|
0.000 0.000 0.000 SCN
|
214
|
-
|
215
|
-
|
194
|
+
528.6614 304.0747 m
|
195
|
+
554.1732 304.0747 l
|
216
196
|
S
|
217
197
|
[] 0 d
|
218
198
|
0.3 w
|
219
199
|
0.000 0.000 0.000 SCN
|
220
|
-
[0.3 0.6] 0.0 d
|
221
200
|
0.3 w
|
222
201
|
0.000 0.000 0.000 SCN
|
223
|
-
|
224
|
-
575.7165
|
202
|
+
554.1732 304.0747 m
|
203
|
+
575.7165 304.0747 l
|
225
204
|
S
|
226
205
|
[] 0 d
|
227
206
|
0.3 w
|
@@ -255,13 +234,13 @@ xref
|
|
255
234
|
0000000109 00000 n
|
256
235
|
0000000158 00000 n
|
257
236
|
0000000215 00000 n
|
258
|
-
|
259
|
-
|
237
|
+
0000002493 00000 n
|
238
|
+
0000002673 00000 n
|
260
239
|
trailer
|
261
240
|
<< /Size 7
|
262
241
|
/Root 2 0 R
|
263
242
|
/Info 1 0 R
|
264
243
|
>>
|
265
244
|
startxref
|
266
|
-
|
245
|
+
2772
|
267
246
|
%%EOF
|