br_danfe 0.4.3 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. checksums.yaml +4 -4
  2. data/br_danfe.gemspec +2 -2
  3. data/lib/br_danfe/version.rb +1 -1
  4. data/lib/br_danfe.rb +1 -0
  5. data/spec/fixtures/cce/lib/barcode#render.pdf +461 -460
  6. data/spec/fixtures/cce/lib/correction#render.pdf +10 -10
  7. data/spec/fixtures/cce/lib/document#box.pdf +5 -4
  8. data/spec/fixtures/cce/lib/document#box.with.block.pdf +6 -6
  9. data/spec/fixtures/cce/lib/document#text.pad.pdf +5 -5
  10. data/spec/fixtures/cce/lib/document#text.simple.pdf +5 -5
  11. data/spec/fixtures/cce/lib/document#text.size.pdf +5 -5
  12. data/spec/fixtures/cce/lib/document#text.style.pdf +5 -5
  13. data/spec/fixtures/cce/lib/footer#render.pdf +12 -12
  14. data/spec/fixtures/cce/lib/header#render.pdf +6 -6
  15. data/spec/fixtures/cce/lib/nfe_key#render.pdf +8 -8
  16. data/spec/fixtures/cce/lib/protocol#render.pdf +8 -8
  17. data/spec/fixtures/cce/v1.00/cce.fixture.pdf +484 -484
  18. data/spec/fixtures/nfe/lib/dest#render-v2.00.pdf +42 -42
  19. data/spec/fixtures/nfe/lib/dest#render-v3.10.pdf +42 -42
  20. data/spec/fixtures/nfe/lib/dest#render-with_cnpj.pdf +32 -32
  21. data/spec/fixtures/nfe/lib/dest#render-with_cpf.pdf +32 -32
  22. data/spec/fixtures/nfe/lib/dest#render-with_ie.pdf +33 -33
  23. data/spec/fixtures/nfe/lib/det_body#render-csosn.pdf +269 -269
  24. data/spec/fixtures/nfe/lib/det_body#render-cst.pdf +144 -144
  25. data/spec/fixtures/nfe/lib/det_body#render-fci.pdf +71 -71
  26. data/spec/fixtures/nfe/lib/det_body#render-icms_st.pdf +71 -71
  27. data/spec/fixtures/nfe/lib/det_body#render-quantity_with_custom_precision.pdf +68 -68
  28. data/spec/fixtures/nfe/lib/det_body#render-unit_price_with_custom_precision.pdf +68 -68
  29. data/spec/fixtures/nfe/lib/det_header#render.pdf +36 -36
  30. data/spec/fixtures/nfe/lib/document#lcnpj-blank.pdf +6 -6
  31. data/spec/fixtures/nfe/lib/document#lcnpj-invalid.pdf +6 -6
  32. data/spec/fixtures/nfe/lib/document#lcnpj-valid.pdf +7 -7
  33. data/spec/fixtures/nfe/lib/document#lie-blank.pdf +6 -6
  34. data/spec/fixtures/nfe/lib/document#lie-invalid.pdf +6 -6
  35. data/spec/fixtures/nfe/lib/document#lie-valid.pdf +7 -7
  36. data/spec/fixtures/nfe/lib/dup#render.pdf +26 -26
  37. data/spec/fixtures/nfe/lib/emit#render.pdf +19 -19
  38. data/spec/fixtures/nfe/lib/emit_header#render-with_logo.pdf +485 -485
  39. data/spec/fixtures/nfe/lib/emit_header#render-without_logo.pdf +482 -482
  40. data/spec/fixtures/nfe/lib/icmstot#render.pdf +39 -39
  41. data/spec/fixtures/nfe/lib/infadic#render-difal.pdf +13 -13
  42. data/spec/fixtures/nfe/lib/infadic#render-extra_volume.pdf +38 -38
  43. data/spec/fixtures/nfe/lib/infadic#render-extra_volume_difal.pdf +39 -39
  44. data/spec/fixtures/nfe/lib/infadic#render.pdf +11 -11
  45. data/spec/fixtures/nfe/lib/issqn#render.pdf +18 -18
  46. data/spec/fixtures/nfe/lib/ticket#render.pdf +14 -14
  47. data/spec/fixtures/nfe/lib/transp#render-modfrete_0.pdf +27 -27
  48. data/spec/fixtures/nfe/lib/transp#render-modfrete_1.pdf +27 -27
  49. data/spec/fixtures/nfe/lib/transp#render-modfrete_2.pdf +27 -27
  50. data/spec/fixtures/nfe/lib/transp#render-modfrete_9.pdf +27 -27
  51. data/spec/fixtures/nfe/lib/transp#render.pdf +36 -36
  52. data/spec/fixtures/nfe/lib/vol#render-blank-boxes.pdf +16 -16
  53. data/spec/fixtures/nfe/lib/vol#render.pdf +21 -21
  54. data/spec/fixtures/nfe/v2.00/custom_options.fixture.pdf +443 -443
  55. data/spec/fixtures/nfe/v2.00/nfe_simples_nacional.xml.fixture.pdf +440 -440
  56. data/spec/fixtures/nfe/v2.00/nfe_with_extra_volumes.xml.fixture.pdf +1675 -1675
  57. data/spec/fixtures/nfe/v2.00/nfe_with_fci.xml.fixture.pdf +763 -763
  58. data/spec/fixtures/nfe/v2.00/nfe_with_ns.xml.fixture.pdf +1650 -1650
  59. data/spec/fixtures/nfe/v2.00/nfe_without_ns.xml.fixture.pdf +887 -887
  60. data/spec/fixtures/nfe/v3.10/nfe_simples_nacional.xml.fixture.pdf +823 -823
  61. metadata +6 -6
@@ -17,206 +17,206 @@ endobj
17
17
  >>
18
18
  endobj
19
19
  4 0 obj
20
- << /Length 2822
20
+ << /Length 2421
21
21
  >>
22
22
  stream
23
23
  q
24
24
  0.3 w
25
25
 
26
26
  BT
27
- 21.25984251968504 596.8667086614174 Td
27
+ 21.2598 596.8667 Td
28
28
  /F2.0 8 Tf
29
29
  [<44455354494e> 20 <41> 95 <54> 90 <c152494f202f2052454d4554454e5445>] TJ
30
30
  ET
31
31
 
32
- 21.260 571.748 335.055 22.677 re
32
+ 21.2598 571.748 335.0551 22.6772 re
33
33
  S
34
34
 
35
35
  BT
36
- 23.25984251968504 588.3271968503939 Td
36
+ 23.2598 588.3272 Td
37
37
  /F1.0 6 Tf
38
38
  [<4e4f4d452f52415ac3> 55 <4f20534f4349414c>] TJ
39
39
  ET
40
40
 
41
41
 
42
42
  BT
43
- 23.25984251968504 574.5951968503938 Td
43
+ 23.2598 574.5952 Td
44
44
  /F1.0 10 Tf
45
45
  [<5363686e656964657220456c6563747269632042726173696c204c746461>] TJ
46
46
  ET
47
47
 
48
- 356.315 571.748 123.874 22.677 re
48
+ 356.315 571.748 123.874 22.6772 re
49
49
  S
50
50
 
51
51
  BT
52
- 358.3149606299213 588.3271968503939 Td
52
+ 358.315 588.3272 Td
53
53
  /F1.0 6 Tf
54
54
  [<434e504a2f435046>] TJ
55
55
  ET
56
56
 
57
57
 
58
58
  BT
59
- 358.3149606299213 574.5951968503938 Td
59
+ 358.315 574.5952 Td
60
60
  /F1.0 10 Tf
61
61
  [<38322e3734332e3238372f303030382d3830>] TJ
62
62
  ET
63
63
 
64
- 21.260 549.071 273.827 22.677 re
64
+ 21.2598 549.0709 273.8268 22.6772 re
65
65
  S
66
66
 
67
67
  BT
68
- 23.25984251968504 565.6500314960631 Td
68
+ 23.2598 565.65 Td
69
69
  /F1.0 6 Tf
70
70
  [<454e44455245c74f>] TJ
71
71
  ET
72
72
 
73
73
 
74
74
  BT
75
- 23.25984251968504 551.918031496063 Td
75
+ 23.2598 551.918 Td
76
76
  /F1.0 10 Tf
77
77
  [<41> 74 <7620646120536175646164652031313235>] TJ
78
78
  ET
79
79
 
80
- 295.087 549.071 122.740 22.677 re
80
+ 295.0866 549.0709 122.7402 22.6772 re
81
81
  S
82
82
 
83
83
  BT
84
- 297.0866141732284 565.6500314960631 Td
84
+ 297.0866 565.65 Td
85
85
  /F1.0 6 Tf
86
86
  [<42> 35 <41495252> 40 <4f>] TJ
87
87
  ET
88
88
 
89
89
 
90
90
  BT
91
- 297.0866141732284 551.918031496063 Td
91
+ 297.0866 551.918 Td
92
92
  /F1.0 10 Tf
93
93
  [<46727574616c>] TJ
94
94
  ET
95
95
 
96
- 417.827 549.071 62.362 22.677 re
96
+ 417.8268 549.0709 62.3622 22.6772 re
97
97
  S
98
98
 
99
99
  BT
100
- 419.82677165354335 565.6500314960631 Td
100
+ 419.8268 565.65 Td
101
101
  /F1.0 6 Tf
102
102
  [<434550>] TJ
103
103
  ET
104
104
 
105
105
 
106
106
  BT
107
- 419.82677165354335 551.918031496063 Td
107
+ 419.8268 551.918 Td
108
108
  /F1.0 10 Tf
109
109
  [<31332e3137312d333230>] TJ
110
110
  ET
111
111
 
112
- 21.260 526.394 187.370 22.677 re
112
+ 21.2598 526.3937 187.3701 22.6772 re
113
113
  S
114
114
 
115
115
  BT
116
- 23.25984251968504 542.9728661417323 Td
116
+ 23.2598 542.9729 Td
117
117
  /F1.0 6 Tf
118
118
  [<4d554e4943cd50494f>] TJ
119
119
  ET
120
120
 
121
121
 
122
122
  BT
123
- 23.25984251968504 529.2408661417323 Td
123
+ 23.2598 529.2409 Td
124
124
  /F1.0 10 Tf
125
125
  [<53554d415245>] TJ
126
126
  ET
127
127
 
128
- 208.630 526.394 115.087 22.677 re
128
+ 208.6299 526.3937 115.0866 22.6772 re
129
129
  S
130
130
 
131
131
  BT
132
- 210.62992125984258 542.9728661417323 Td
132
+ 210.6299 542.9729 Td
133
133
  /F1.0 6 Tf
134
134
  [<464f4e452f46> 74 <4158>] TJ
135
135
  ET
136
136
 
137
137
 
138
138
  BT
139
- 210.62992125984258 529.2408661417323 Td
139
+ 210.6299 529.2409 Td
140
140
  /F1.0 10 Tf
141
141
  [<2831392920323130342d36333030>] TJ
142
142
  ET
143
143
 
144
- 323.717 526.394 32.315 22.677 re
144
+ 323.7165 526.3937 32.315 22.6772 re
145
145
  S
146
146
 
147
147
  BT
148
- 325.71653543307093 542.9728661417323 Td
148
+ 325.7165 542.9729 Td
149
149
  /F1.0 6 Tf
150
150
  [<5546>] TJ
151
151
  ET
152
152
 
153
153
 
154
154
  BT
155
- 325.71653543307093 529.2408661417323 Td
155
+ 325.7165 529.2409 Td
156
156
  /F1.0 10 Tf
157
157
  [<5350>] TJ
158
158
  ET
159
159
 
160
- 356.031 526.394 124.157 22.677 re
160
+ 356.0315 526.3937 124.1575 22.6772 re
161
161
  S
162
162
 
163
163
  BT
164
- 358.0314960629922 542.9728661417323 Td
164
+ 358.0315 542.9729 Td
165
165
  /F1.0 6 Tf
166
166
  [<494e53435249c7c3> 55 <4f20455354> 93 <414455> 40 <414c>] TJ
167
167
  ET
168
168
 
169
169
 
170
170
  BT
171
- 358.0314960629922 529.2408661417323 Td
171
+ 358.0315 529.2409 Td
172
172
  /F1.0 10 Tf
173
173
  [<3637312e3030382e3337352e313130>] TJ
174
174
  ET
175
175
 
176
- 493.228 571.748 82.772 22.677 re
176
+ 493.2283 571.748 82.7717 22.6772 re
177
177
  S
178
178
 
179
179
  BT
180
- 495.228346456693 588.3271968503939 Td
180
+ 495.2283 588.3272 Td
181
181
  /F1.0 6 Tf
182
182
  [<44> 40 <41> 111 <54> 93 <412044> 40 <4120454d495353c3> 55 <4f>] TJ
183
183
  ET
184
184
 
185
185
 
186
186
  BT
187
- 528.44 574.5951968503938 Td
187
+ 528.44 574.5952 Td
188
188
  /F1.0 10 Tf
189
189
  [<32392f31302f32303131>] TJ
190
190
  ET
191
191
 
192
- 493.228 549.071 82.772 22.677 re
192
+ 493.2283 549.0709 82.7717 22.6772 re
193
193
  S
194
194
 
195
195
  BT
196
- 495.228346456693 565.6500314960631 Td
196
+ 495.2283 565.65 Td
197
197
  /F1.0 6 Tf
198
198
  [<44> 40 <41> 111 <54> 93 <412044> 40 <4120454e54524144> 40 <412f5341cd44> 40 <41>] TJ
199
199
  ET
200
200
 
201
201
 
202
202
  BT
203
- 528.44 551.918031496063 Td
203
+ 528.44 551.918 Td
204
204
  /F1.0 10 Tf
205
205
  [<33302f31302f32303131>] TJ
206
206
  ET
207
207
 
208
- 493.228 526.394 82.772 22.677 re
208
+ 493.2283 526.3937 82.7717 22.6772 re
209
209
  S
210
210
 
211
211
  BT
212
- 495.228346456693 542.9728661417323 Td
212
+ 495.2283 542.9729 Td
213
213
  /F1.0 6 Tf
214
214
  [<484f524120444520454e54524144> 40 <412f5341cd44> 40 <41>] TJ
215
215
  ET
216
216
 
217
217
 
218
218
  BT
219
- 538.44 529.2408661417323 Td
219
+ 538.44 529.2409 Td
220
220
  /F1.0 10 Tf
221
221
  [<31353a33323a3435>] TJ
222
222
  ET
@@ -258,14 +258,14 @@ xref
258
258
  0000000109 00000 n
259
259
  0000000158 00000 n
260
260
  0000000215 00000 n
261
- 0000003089 00000 n
262
- 0000003281 00000 n
263
- 0000003379 00000 n
261
+ 0000002688 00000 n
262
+ 0000002880 00000 n
263
+ 0000002978 00000 n
264
264
  trailer
265
265
  << /Size 8
266
266
  /Root 2 0 R
267
267
  /Info 1 0 R
268
268
  >>
269
269
  startxref
270
- 3478
270
+ 3077
271
271
  %%EOF
@@ -17,206 +17,206 @@ endobj
17
17
  >>
18
18
  endobj
19
19
  4 0 obj
20
- << /Length 2822
20
+ << /Length 2421
21
21
  >>
22
22
  stream
23
23
  q
24
24
  0.3 w
25
25
 
26
26
  BT
27
- 21.25984251968504 596.8667086614174 Td
27
+ 21.2598 596.8667 Td
28
28
  /F2.0 8 Tf
29
29
  [<44455354494e> 20 <41> 95 <54> 90 <c152494f202f2052454d4554454e5445>] TJ
30
30
  ET
31
31
 
32
- 21.260 571.748 335.055 22.677 re
32
+ 21.2598 571.748 335.0551 22.6772 re
33
33
  S
34
34
 
35
35
  BT
36
- 23.25984251968504 588.3271968503939 Td
36
+ 23.2598 588.3272 Td
37
37
  /F1.0 6 Tf
38
38
  [<4e4f4d452f52415ac3> 55 <4f20534f4349414c>] TJ
39
39
  ET
40
40
 
41
41
 
42
42
  BT
43
- 23.25984251968504 574.5951968503938 Td
43
+ 23.2598 574.5952 Td
44
44
  /F1.0 10 Tf
45
45
  [<5363686e656964657220456c6563747269632042726173696c204c746461>] TJ
46
46
  ET
47
47
 
48
- 356.315 571.748 123.874 22.677 re
48
+ 356.315 571.748 123.874 22.6772 re
49
49
  S
50
50
 
51
51
  BT
52
- 358.3149606299213 588.3271968503939 Td
52
+ 358.315 588.3272 Td
53
53
  /F1.0 6 Tf
54
54
  [<434e504a2f435046>] TJ
55
55
  ET
56
56
 
57
57
 
58
58
  BT
59
- 358.3149606299213 574.5951968503938 Td
59
+ 358.315 574.5952 Td
60
60
  /F1.0 10 Tf
61
61
  [<38322e3734332e3238372f303030382d3830>] TJ
62
62
  ET
63
63
 
64
- 21.260 549.071 273.827 22.677 re
64
+ 21.2598 549.0709 273.8268 22.6772 re
65
65
  S
66
66
 
67
67
  BT
68
- 23.25984251968504 565.6500314960631 Td
68
+ 23.2598 565.65 Td
69
69
  /F1.0 6 Tf
70
70
  [<454e44455245c74f>] TJ
71
71
  ET
72
72
 
73
73
 
74
74
  BT
75
- 23.25984251968504 551.918031496063 Td
75
+ 23.2598 551.918 Td
76
76
  /F1.0 10 Tf
77
77
  [<41> 74 <7620646120536175646164652031313235>] TJ
78
78
  ET
79
79
 
80
- 295.087 549.071 122.740 22.677 re
80
+ 295.0866 549.0709 122.7402 22.6772 re
81
81
  S
82
82
 
83
83
  BT
84
- 297.0866141732284 565.6500314960631 Td
84
+ 297.0866 565.65 Td
85
85
  /F1.0 6 Tf
86
86
  [<42> 35 <41495252> 40 <4f>] TJ
87
87
  ET
88
88
 
89
89
 
90
90
  BT
91
- 297.0866141732284 551.918031496063 Td
91
+ 297.0866 551.918 Td
92
92
  /F1.0 10 Tf
93
93
  [<46727574616c>] TJ
94
94
  ET
95
95
 
96
- 417.827 549.071 62.362 22.677 re
96
+ 417.8268 549.0709 62.3622 22.6772 re
97
97
  S
98
98
 
99
99
  BT
100
- 419.82677165354335 565.6500314960631 Td
100
+ 419.8268 565.65 Td
101
101
  /F1.0 6 Tf
102
102
  [<434550>] TJ
103
103
  ET
104
104
 
105
105
 
106
106
  BT
107
- 419.82677165354335 551.918031496063 Td
107
+ 419.8268 551.918 Td
108
108
  /F1.0 10 Tf
109
109
  [<31332e3137312d333230>] TJ
110
110
  ET
111
111
 
112
- 21.260 526.394 187.370 22.677 re
112
+ 21.2598 526.3937 187.3701 22.6772 re
113
113
  S
114
114
 
115
115
  BT
116
- 23.25984251968504 542.9728661417323 Td
116
+ 23.2598 542.9729 Td
117
117
  /F1.0 6 Tf
118
118
  [<4d554e4943cd50494f>] TJ
119
119
  ET
120
120
 
121
121
 
122
122
  BT
123
- 23.25984251968504 529.2408661417323 Td
123
+ 23.2598 529.2409 Td
124
124
  /F1.0 10 Tf
125
125
  [<53554d415245>] TJ
126
126
  ET
127
127
 
128
- 208.630 526.394 115.087 22.677 re
128
+ 208.6299 526.3937 115.0866 22.6772 re
129
129
  S
130
130
 
131
131
  BT
132
- 210.62992125984258 542.9728661417323 Td
132
+ 210.6299 542.9729 Td
133
133
  /F1.0 6 Tf
134
134
  [<464f4e452f46> 74 <4158>] TJ
135
135
  ET
136
136
 
137
137
 
138
138
  BT
139
- 210.62992125984258 529.2408661417323 Td
139
+ 210.6299 529.2409 Td
140
140
  /F1.0 10 Tf
141
141
  [<2831392920323130342d36333030>] TJ
142
142
  ET
143
143
 
144
- 323.717 526.394 32.315 22.677 re
144
+ 323.7165 526.3937 32.315 22.6772 re
145
145
  S
146
146
 
147
147
  BT
148
- 325.71653543307093 542.9728661417323 Td
148
+ 325.7165 542.9729 Td
149
149
  /F1.0 6 Tf
150
150
  [<5546>] TJ
151
151
  ET
152
152
 
153
153
 
154
154
  BT
155
- 325.71653543307093 529.2408661417323 Td
155
+ 325.7165 529.2409 Td
156
156
  /F1.0 10 Tf
157
157
  [<5350>] TJ
158
158
  ET
159
159
 
160
- 356.031 526.394 124.157 22.677 re
160
+ 356.0315 526.3937 124.1575 22.6772 re
161
161
  S
162
162
 
163
163
  BT
164
- 358.0314960629922 542.9728661417323 Td
164
+ 358.0315 542.9729 Td
165
165
  /F1.0 6 Tf
166
166
  [<494e53435249c7c3> 55 <4f20455354> 93 <414455> 40 <414c>] TJ
167
167
  ET
168
168
 
169
169
 
170
170
  BT
171
- 358.0314960629922 529.2408661417323 Td
171
+ 358.0315 529.2409 Td
172
172
  /F1.0 10 Tf
173
173
  [<3637312e3030382e3337352e313130>] TJ
174
174
  ET
175
175
 
176
- 493.228 571.748 82.772 22.677 re
176
+ 493.2283 571.748 82.7717 22.6772 re
177
177
  S
178
178
 
179
179
  BT
180
- 495.228346456693 588.3271968503939 Td
180
+ 495.2283 588.3272 Td
181
181
  /F1.0 6 Tf
182
182
  [<44> 40 <41> 111 <54> 93 <412044> 40 <4120454d495353c3> 55 <4f>] TJ
183
183
  ET
184
184
 
185
185
 
186
186
  BT
187
- 528.44 574.5951968503938 Td
187
+ 528.44 574.5952 Td
188
188
  /F1.0 10 Tf
189
189
  [<32392f31302f32303131>] TJ
190
190
  ET
191
191
 
192
- 493.228 549.071 82.772 22.677 re
192
+ 493.2283 549.0709 82.7717 22.6772 re
193
193
  S
194
194
 
195
195
  BT
196
- 495.228346456693 565.6500314960631 Td
196
+ 495.2283 565.65 Td
197
197
  /F1.0 6 Tf
198
198
  [<44> 40 <41> 111 <54> 93 <412044> 40 <4120454e54524144> 40 <412f5341cd44> 40 <41>] TJ
199
199
  ET
200
200
 
201
201
 
202
202
  BT
203
- 528.44 551.918031496063 Td
203
+ 528.44 551.918 Td
204
204
  /F1.0 10 Tf
205
205
  [<33302f31302f32303131>] TJ
206
206
  ET
207
207
 
208
- 493.228 526.394 82.772 22.677 re
208
+ 493.2283 526.3937 82.7717 22.6772 re
209
209
  S
210
210
 
211
211
  BT
212
- 495.228346456693 542.9728661417323 Td
212
+ 495.2283 542.9729 Td
213
213
  /F1.0 6 Tf
214
214
  [<484f524120444520454e54524144> 40 <412f5341cd44> 40 <41>] TJ
215
215
  ET
216
216
 
217
217
 
218
218
  BT
219
- 538.44 529.2408661417323 Td
219
+ 538.44 529.2409 Td
220
220
  /F1.0 10 Tf
221
221
  [<31333a33323a3435>] TJ
222
222
  ET
@@ -258,14 +258,14 @@ xref
258
258
  0000000109 00000 n
259
259
  0000000158 00000 n
260
260
  0000000215 00000 n
261
- 0000003089 00000 n
262
- 0000003281 00000 n
263
- 0000003379 00000 n
261
+ 0000002688 00000 n
262
+ 0000002880 00000 n
263
+ 0000002978 00000 n
264
264
  trailer
265
265
  << /Size 8
266
266
  /Root 2 0 R
267
267
  /Info 1 0 R
268
268
  >>
269
269
  startxref
270
- 3478
270
+ 3077
271
271
  %%EOF