br_danfe 0.10.1 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +4 -4
- data/config/locales/pt-BR.yml +0 -1
- data/lib/br_danfe/danfe_lib/infadic.rb +60 -91
- data/lib/br_danfe/danfe_lib/infadic_vol.rb +101 -0
- data/lib/br_danfe/version.rb +1 -1
- data/spec/features/danfe_spec.rb +2 -2
- data/spec/fixtures/nfe/lib/{infadic#render-extra_volume_difal.pdf → infadic#render-all_the_informations.pdf} +55 -55
- data/spec/fixtures/nfe/lib/infadic#render-difal.pdf +7 -21
- data/spec/fixtures/nfe/lib/infadic#render-extra_volume.pdf +43 -57
- data/spec/fixtures/nfe/lib/{infadic#render-footer_information.pdf → infadic#render-with_complementary_information.pdf} +6 -13
- data/spec/fixtures/nfe/lib/{infadic-with-street-data#render.pdf → infadic#render-with_fisco_additional_information.pdf} +7 -7
- data/spec/fixtures/nfe/lib/infadic#render-with_street_data.pdf +104 -0
- data/spec/fixtures/nfe/lib/infadic#render.pdf +5 -12
- data/spec/fixtures/nfe/lib/infadic_vol#render-extra_volume.pdf +331 -0
- data/spec/fixtures/nfe/v2.00/custom_options.fixture.pdf +2 -2
- data/spec/fixtures/nfe/v2.00/nfe_simples_nacional.xml.fixture.pdf +2 -2
- data/spec/fixtures/nfe/v2.00/nfe_with_extra_volumes.xml.fixture.pdf +51 -51
- data/spec/fixtures/nfe/v2.00/nfe_with_fci.xml.fixture.pdf +2 -2
- data/spec/fixtures/nfe/v2.00/nfe_with_ns.xml.fixture.pdf +2 -2
- data/spec/fixtures/nfe/v2.00/nfe_without_ns.xml.fixture.pdf +3 -3
- data/spec/fixtures/nfe/v3.10/nfe_simples_nacional.xml.fixture.pdf +21 -21
- data/spec/fixtures/nfe/v3.10/with_footer.fixture.pdf +23 -23
- data/spec/fixtures/nfe/v3.10/with_issqn.fixture.pdf +23 -23
- data/spec/fixtures/nfe/v3.10/with_three_pages.fixture.pdf +25 -25
- data/spec/fixtures/nfe/v3.10/{withot_issqn.fixture.pdf → without_issqn.fixture.pdf} +23 -23
- data/spec/fixtures/nfe/v3.10/{withot_issqn.xml → without_issqn.xml} +0 -0
- data/spec/lib/danfe_lib/infadic_spec.rb +258 -97
- data/spec/lib/danfe_lib/infadic_vol_spec.rb +96 -0
- metadata +11 -7
@@ -17,7 +17,7 @@ endobj
|
|
17
17
|
>>
|
18
18
|
endobj
|
19
19
|
4 0 obj
|
20
|
-
<< /Length
|
20
|
+
<< /Length 690
|
21
21
|
>>
|
22
22
|
stream
|
23
23
|
q
|
@@ -40,23 +40,9 @@ ET
|
|
40
40
|
|
41
41
|
|
42
42
|
BT
|
43
|
-
23.2598
|
44
|
-
/F1.0 5 Tf
|
45
|
-
[<56> 111 <616c6f72657320746f7461697320646f2049434d5320496e746572657374616475616c3a20444946> 74 <414c2064612055462064657374696e6f205224322e3931352c3738202b20464350205224342e3839322c37383b20444946> 74 <414c206461205546204f726967656d20522437352e3339342c37382e>] TJ
|
46
|
-
ET
|
47
|
-
|
48
|
-
|
49
|
-
BT
|
50
|
-
23.2598 71.5555 Td
|
43
|
+
23.2598 80.0595 Td
|
51
44
|
/F1.0 6 Tf
|
52
|
-
[<
|
53
|
-
ET
|
54
|
-
|
55
|
-
|
56
|
-
BT
|
57
|
-
23.2598 66.5693 Td
|
58
|
-
/F1.0 5 Tf
|
59
|
-
[<556d61206f6273657276> 25 <61e7e36f>] TJ
|
45
|
+
[<56> 111 <616c6f72657320746f7461697320646f2049434d5320496e746572657374616475616c3a20444946> 74 <414c2064612055462064657374696e6f205224322e3931352c3738202b20464350205224342e3839322c37383b20444946> 74 <414c206461205546204f726967656d20522437352e3339342c37382e>] TJ
|
60
46
|
ET
|
61
47
|
|
62
48
|
374.1732 21.5433 202.6772 75.1181 re
|
@@ -105,14 +91,14 @@ xref
|
|
105
91
|
0000000109 00000 n
|
106
92
|
0000000158 00000 n
|
107
93
|
0000000215 00000 n
|
108
|
-
|
109
|
-
|
110
|
-
|
94
|
+
0000000956 00000 n
|
95
|
+
0000001148 00000 n
|
96
|
+
0000001246 00000 n
|
111
97
|
trailer
|
112
98
|
<< /Size 8
|
113
99
|
/Root 2 0 R
|
114
100
|
/Info 1 0 R
|
115
101
|
>>
|
116
102
|
startxref
|
117
|
-
|
103
|
+
1345
|
118
104
|
%%EOF
|
@@ -17,7 +17,7 @@ endobj
|
|
17
17
|
>>
|
18
18
|
endobj
|
19
19
|
4 0 obj
|
20
|
-
<< /Length
|
20
|
+
<< /Length 2079
|
21
21
|
>>
|
22
22
|
stream
|
23
23
|
q
|
@@ -40,193 +40,179 @@ ET
|
|
40
40
|
|
41
41
|
|
42
42
|
BT
|
43
|
-
23.2598
|
43
|
+
23.2598 80.7425 Td
|
44
44
|
/F1.0 5 Tf
|
45
45
|
[<434f4e54494e55> 40 <41> 40 <c7c3> 55 <4f205452414e53504f52> 60 <54> 93 <41444f522f56> 40 <4f4c554d4553205452414e53504f52> 60 <54> 93 <41444f53>] TJ
|
46
46
|
ET
|
47
47
|
|
48
48
|
|
49
49
|
BT
|
50
|
-
|
50
|
+
40.2677 76.6066 Td
|
51
51
|
/F1.0 4 Tf
|
52
|
-
[<
|
52
|
+
[<455350> 111 <2e3a>] TJ
|
53
53
|
ET
|
54
54
|
|
55
55
|
|
56
56
|
BT
|
57
|
-
|
57
|
+
51.6063 76.6066 Td
|
58
58
|
/F3.0 4 Tf
|
59
|
-
[<
|
59
|
+
[<56> 30 <4f4c554d45532032>] TJ
|
60
60
|
ET
|
61
61
|
|
62
62
|
|
63
63
|
BT
|
64
|
-
|
64
|
+
119.6378 76.6066 Td
|
65
65
|
/F1.0 4 Tf
|
66
|
-
[<
|
66
|
+
[<4d415243413a>] TJ
|
67
67
|
ET
|
68
68
|
|
69
69
|
|
70
70
|
BT
|
71
|
-
|
71
|
+
136.6457 76.6066 Td
|
72
72
|
/F3.0 4 Tf
|
73
|
-
[<
|
73
|
+
[<4449564552534f532032>] TJ
|
74
74
|
ET
|
75
75
|
|
76
76
|
|
77
77
|
BT
|
78
|
-
|
78
|
+
23.2598 76.6066 Td
|
79
79
|
/F1.0 4 Tf
|
80
|
-
[<
|
80
|
+
[<51> 10 <55> 40 <414e54> 74 <2e3a>] TJ
|
81
81
|
ET
|
82
82
|
|
83
83
|
|
84
84
|
BT
|
85
|
-
|
85
|
+
31.4803 76.6066 Td
|
86
86
|
/F3.0 4 Tf
|
87
|
-
[<
|
87
|
+
[<32>] TJ
|
88
88
|
ET
|
89
89
|
|
90
90
|
|
91
91
|
BT
|
92
|
-
174.9134
|
92
|
+
174.9134 76.6066 Td
|
93
93
|
/F1.0 4 Tf
|
94
94
|
[<4e554d2e3a>] TJ
|
95
95
|
ET
|
96
96
|
|
97
97
|
|
98
98
|
BT
|
99
|
-
191.9213
|
99
|
+
191.9213 76.6066 Td
|
100
100
|
/F3.0 4 Tf
|
101
101
|
[<32>] TJ
|
102
102
|
ET
|
103
103
|
|
104
104
|
|
105
105
|
BT
|
106
|
-
200.4252
|
106
|
+
200.4252 76.6066 Td
|
107
107
|
/F1.0 4 Tf
|
108
108
|
[<5045534f20422e3a>] TJ
|
109
109
|
ET
|
110
110
|
|
111
111
|
|
112
112
|
BT
|
113
|
-
217.2756
|
113
|
+
217.2756 76.6066 Td
|
114
114
|
/F3.0 4 Tf
|
115
115
|
[<322e3230302c303030>] TJ
|
116
116
|
ET
|
117
117
|
|
118
118
|
|
119
119
|
BT
|
120
|
-
242.9449
|
120
|
+
242.9449 76.6066 Td
|
121
121
|
/F1.0 4 Tf
|
122
122
|
[<5045534f204ccd512e3a>] TJ
|
123
123
|
ET
|
124
124
|
|
125
125
|
|
126
126
|
BT
|
127
|
-
265.4646
|
127
|
+
265.4646 76.6066 Td
|
128
128
|
/F3.0 4 Tf
|
129
129
|
[<322e3030302c303030>] TJ
|
130
130
|
ET
|
131
131
|
|
132
132
|
|
133
133
|
BT
|
134
|
-
|
134
|
+
40.2677 72.3546 Td
|
135
135
|
/F1.0 4 Tf
|
136
|
-
[<
|
136
|
+
[<455350> 111 <2e3a>] TJ
|
137
137
|
ET
|
138
138
|
|
139
139
|
|
140
140
|
BT
|
141
|
-
|
141
|
+
51.6063 72.3546 Td
|
142
142
|
/F3.0 4 Tf
|
143
|
-
[<
|
143
|
+
[<56> 30 <4f4c554d45532033>] TJ
|
144
144
|
ET
|
145
145
|
|
146
146
|
|
147
147
|
BT
|
148
|
-
|
148
|
+
119.6378 72.3546 Td
|
149
149
|
/F1.0 4 Tf
|
150
|
-
[<
|
150
|
+
[<4d415243413a>] TJ
|
151
151
|
ET
|
152
152
|
|
153
153
|
|
154
154
|
BT
|
155
|
-
|
155
|
+
136.6457 72.3546 Td
|
156
156
|
/F3.0 4 Tf
|
157
|
-
[<
|
157
|
+
[<4449564552534f532033>] TJ
|
158
158
|
ET
|
159
159
|
|
160
160
|
|
161
161
|
BT
|
162
|
-
|
162
|
+
23.2598 72.3546 Td
|
163
163
|
/F1.0 4 Tf
|
164
|
-
[<
|
164
|
+
[<51> 10 <55> 40 <414e54> 74 <2e3a>] TJ
|
165
165
|
ET
|
166
166
|
|
167
167
|
|
168
168
|
BT
|
169
|
-
|
169
|
+
31.4803 72.3546 Td
|
170
170
|
/F3.0 4 Tf
|
171
|
-
[<
|
171
|
+
[<33>] TJ
|
172
172
|
ET
|
173
173
|
|
174
174
|
|
175
175
|
BT
|
176
|
-
174.9134
|
176
|
+
174.9134 72.3546 Td
|
177
177
|
/F1.0 4 Tf
|
178
178
|
[<4e554d2e3a>] TJ
|
179
179
|
ET
|
180
180
|
|
181
181
|
|
182
182
|
BT
|
183
|
-
191.9213
|
183
|
+
191.9213 72.3546 Td
|
184
184
|
/F3.0 4 Tf
|
185
185
|
[<33>] TJ
|
186
186
|
ET
|
187
187
|
|
188
188
|
|
189
189
|
BT
|
190
|
-
200.4252
|
190
|
+
200.4252 72.3546 Td
|
191
191
|
/F1.0 4 Tf
|
192
192
|
[<5045534f20422e3a>] TJ
|
193
193
|
ET
|
194
194
|
|
195
195
|
|
196
196
|
BT
|
197
|
-
217.2756
|
197
|
+
217.2756 72.3546 Td
|
198
198
|
/F3.0 4 Tf
|
199
199
|
[<332e3330302c303030>] TJ
|
200
200
|
ET
|
201
201
|
|
202
202
|
|
203
203
|
BT
|
204
|
-
242.9449
|
204
|
+
242.9449 72.3546 Td
|
205
205
|
/F1.0 4 Tf
|
206
206
|
[<5045534f204ccd512e3a>] TJ
|
207
207
|
ET
|
208
208
|
|
209
209
|
|
210
210
|
BT
|
211
|
-
265.4646
|
211
|
+
265.4646 72.3546 Td
|
212
212
|
/F3.0 4 Tf
|
213
213
|
[<332e3030302c303030>] TJ
|
214
214
|
ET
|
215
215
|
|
216
|
-
|
217
|
-
BT
|
218
|
-
23.2598 61.9177 Td
|
219
|
-
/F1.0 6 Tf
|
220
|
-
[<4f555452415320494e464f524d41> 40 <c7d54553>] TJ
|
221
|
-
ET
|
222
|
-
|
223
|
-
|
224
|
-
BT
|
225
|
-
23.2598 56.9315 Td
|
226
|
-
/F1.0 5 Tf
|
227
|
-
[<556d61206f6273657276> 25 <61e7e36f>] TJ
|
228
|
-
ET
|
229
|
-
|
230
216
|
374.1732 21.5433 202.6772 75.1181 re
|
231
217
|
S
|
232
218
|
|
@@ -281,15 +267,15 @@ xref
|
|
281
267
|
0000000109 00000 n
|
282
268
|
0000000158 00000 n
|
283
269
|
0000000215 00000 n
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
270
|
+
0000002346 00000 n
|
271
|
+
0000002550 00000 n
|
272
|
+
0000002648 00000 n
|
273
|
+
0000002747 00000 n
|
288
274
|
trailer
|
289
275
|
<< /Size 9
|
290
276
|
/Root 2 0 R
|
291
277
|
/Info 1 0 R
|
292
278
|
>>
|
293
279
|
startxref
|
294
|
-
|
280
|
+
2847
|
295
281
|
%%EOF
|
@@ -17,7 +17,7 @@ endobj
|
|
17
17
|
>>
|
18
18
|
endobj
|
19
19
|
4 0 obj
|
20
|
-
<< /Length
|
20
|
+
<< /Length 469
|
21
21
|
>>
|
22
22
|
stream
|
23
23
|
q
|
@@ -40,7 +40,7 @@ ET
|
|
40
40
|
|
41
41
|
|
42
42
|
BT
|
43
|
-
23.2598
|
43
|
+
23.2598 80.0595 Td
|
44
44
|
/F1.0 6 Tf
|
45
45
|
[<556d61206f6273657276> 25 <61e7e36f>] TJ
|
46
46
|
ET
|
@@ -54,13 +54,6 @@ BT
|
|
54
54
|
[<5245534552> 80 <56> 135 <41444f2041> 55 <4f20464953434f>] TJ
|
55
55
|
ET
|
56
56
|
|
57
|
-
|
58
|
-
BT
|
59
|
-
23.2598 14.1283 Td
|
60
|
-
/F1.0 5 Tf
|
61
|
-
[<47657261646f2061747261> 20 <76> 15 <e97320646f2054> 70 <65737465>] TJ
|
62
|
-
ET
|
63
|
-
|
64
57
|
Q
|
65
58
|
|
66
59
|
endstream
|
@@ -98,14 +91,14 @@ xref
|
|
98
91
|
0000000109 00000 n
|
99
92
|
0000000158 00000 n
|
100
93
|
0000000215 00000 n
|
101
|
-
|
102
|
-
|
103
|
-
|
94
|
+
0000000735 00000 n
|
95
|
+
0000000927 00000 n
|
96
|
+
0000001025 00000 n
|
104
97
|
trailer
|
105
98
|
<< /Size 8
|
106
99
|
/Root 2 0 R
|
107
100
|
/Info 1 0 R
|
108
101
|
>>
|
109
102
|
startxref
|
110
|
-
|
103
|
+
1124
|
111
104
|
%%EOF
|
@@ -17,7 +17,7 @@ endobj
|
|
17
17
|
>>
|
18
18
|
endobj
|
19
19
|
4 0 obj
|
20
|
-
<< /Length
|
20
|
+
<< /Length 493
|
21
21
|
>>
|
22
22
|
stream
|
23
23
|
q
|
@@ -40,9 +40,9 @@ ET
|
|
40
40
|
|
41
41
|
|
42
42
|
BT
|
43
|
-
23.2598
|
43
|
+
23.2598 80.0595 Td
|
44
44
|
/F1.0 6 Tf
|
45
|
-
[<
|
45
|
+
[<54> 80 <6f74616c206465204643502d5354> 50 <3a203334382c3936>] TJ
|
46
46
|
ET
|
47
47
|
|
48
48
|
374.1732 21.5433 202.6772 75.1181 re
|
@@ -91,14 +91,14 @@ xref
|
|
91
91
|
0000000109 00000 n
|
92
92
|
0000000158 00000 n
|
93
93
|
0000000215 00000 n
|
94
|
-
|
95
|
-
|
96
|
-
|
94
|
+
0000000759 00000 n
|
95
|
+
0000000951 00000 n
|
96
|
+
0000001049 00000 n
|
97
97
|
trailer
|
98
98
|
<< /Size 8
|
99
99
|
/Root 2 0 R
|
100
100
|
/Info 1 0 R
|
101
101
|
>>
|
102
102
|
startxref
|
103
|
-
|
103
|
+
1148
|
104
104
|
%%EOF
|
@@ -0,0 +1,104 @@
|
|
1
|
+
%PDF-1.3
|
2
|
+
%����
|
3
|
+
1 0 obj
|
4
|
+
<< /Creator <feff0050007200610077006e>
|
5
|
+
/Producer <feff0050007200610077006e>
|
6
|
+
>>
|
7
|
+
endobj
|
8
|
+
2 0 obj
|
9
|
+
<< /Type /Catalog
|
10
|
+
/Pages 3 0 R
|
11
|
+
>>
|
12
|
+
endobj
|
13
|
+
3 0 obj
|
14
|
+
<< /Type /Pages
|
15
|
+
/Count 1
|
16
|
+
/Kids [5 0 R]
|
17
|
+
>>
|
18
|
+
endobj
|
19
|
+
4 0 obj
|
20
|
+
<< /Length 591
|
21
|
+
>>
|
22
|
+
stream
|
23
|
+
q
|
24
|
+
0.3 w
|
25
|
+
|
26
|
+
BT
|
27
|
+
21.2598 98.8195 Td
|
28
|
+
/F2.0 8 Tf
|
29
|
+
[<44> 35 <41444f532041444943494f4e> 20 <414953>] TJ
|
30
|
+
ET
|
31
|
+
|
32
|
+
21.2598 21.5433 352.9134 75.1181 re
|
33
|
+
S
|
34
|
+
|
35
|
+
BT
|
36
|
+
23.2598 90.5634 Td
|
37
|
+
/F1.0 6 Tf
|
38
|
+
[<494e464f524d41> 40 <c7d5455320434f4d504c454d454e54> 93 <41524553>] TJ
|
39
|
+
ET
|
40
|
+
|
41
|
+
|
42
|
+
BT
|
43
|
+
23.2598 80.0595 Td
|
44
|
+
/F1.0 6 Tf
|
45
|
+
[<456e64657265e76f3a2041> 74 <7620646120536175646164652031313235202d20456d20616e65> 15 <786f20616f207375706572206d65726361646f206d61696f7220646f2062616972726f>] TJ
|
46
|
+
ET
|
47
|
+
|
48
|
+
374.1732 21.5433 202.6772 75.1181 re
|
49
|
+
S
|
50
|
+
|
51
|
+
BT
|
52
|
+
376.1732 90.5634 Td
|
53
|
+
/F1.0 6 Tf
|
54
|
+
[<5245534552> 80 <56> 135 <41444f2041> 55 <4f20464953434f>] TJ
|
55
|
+
ET
|
56
|
+
|
57
|
+
Q
|
58
|
+
|
59
|
+
endstream
|
60
|
+
endobj
|
61
|
+
5 0 obj
|
62
|
+
<< /Type /Page
|
63
|
+
/Parent 3 0 R
|
64
|
+
/MediaBox [0 0 595.28 841.89]
|
65
|
+
/Contents 4 0 R
|
66
|
+
/Resources << /ProcSet [/PDF /Text /ImageB /ImageC /ImageI]
|
67
|
+
/Font << /F2.0 6 0 R
|
68
|
+
/F1.0 7 0 R
|
69
|
+
>>
|
70
|
+
>>
|
71
|
+
>>
|
72
|
+
endobj
|
73
|
+
6 0 obj
|
74
|
+
<< /Type /Font
|
75
|
+
/Subtype /Type1
|
76
|
+
/BaseFont /Times-Bold
|
77
|
+
/Encoding /WinAnsiEncoding
|
78
|
+
>>
|
79
|
+
endobj
|
80
|
+
7 0 obj
|
81
|
+
<< /Type /Font
|
82
|
+
/Subtype /Type1
|
83
|
+
/BaseFont /Times-Roman
|
84
|
+
/Encoding /WinAnsiEncoding
|
85
|
+
>>
|
86
|
+
endobj
|
87
|
+
xref
|
88
|
+
0 8
|
89
|
+
0000000000 65535 f
|
90
|
+
0000000015 00000 n
|
91
|
+
0000000109 00000 n
|
92
|
+
0000000158 00000 n
|
93
|
+
0000000215 00000 n
|
94
|
+
0000000857 00000 n
|
95
|
+
0000001049 00000 n
|
96
|
+
0000001147 00000 n
|
97
|
+
trailer
|
98
|
+
<< /Size 8
|
99
|
+
/Root 2 0 R
|
100
|
+
/Info 1 0 R
|
101
|
+
>>
|
102
|
+
startxref
|
103
|
+
1246
|
104
|
+
%%EOF
|