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,192 +17,192 @@ endobj
17
17
  >>
18
18
  endobj
19
19
  4 0 obj
20
- << /Length 2304
20
+ << /Length 2214
21
21
  >>
22
22
  stream
23
23
  q
24
24
  0.3 w
25
- [0.3 0.6] 0 d
25
+ [0.3 0.6] 0.0 d
26
26
  0.3 w
27
27
  /DeviceRGB CS
28
28
  0.000 0.000 0.000 SCN
29
- 21.260 311.887 m
30
- 63.780 311.887 l
29
+ 21.2598 311.8867 m
30
+ 63.7795 311.8867 l
31
31
  S
32
- [ ] 0 d
32
+ [] 0 d
33
33
  0.3 w
34
34
  0.000 0.000 0.000 SCN
35
35
 
36
36
  BT
37
- 23.25984251968504 315.18567716535443 Td
37
+ 23.2598 315.1857 Td
38
38
  /F1.0 6 Tf
39
39
  [<33>] TJ
40
40
  ET
41
41
 
42
- [0.3 0.6] 0 d
42
+ [0.3 0.6] 0.0 d
43
43
  0.3 w
44
44
  0.000 0.000 0.000 SCN
45
- 63.780 311.887 m
46
- 188.504 311.887 l
45
+ 63.7795 311.8867 m
46
+ 188.5039 311.8867 l
47
47
  S
48
- [ ] 0 d
48
+ [] 0 d
49
49
  0.3 w
50
50
  0.000 0.000 0.000 SCN
51
51
 
52
52
  BT
53
- 65.77952755905513 315.18567716535443 Td
53
+ 65.7795 315.1857 Td
54
54
  /F1.0 6 Tf
55
55
  [<50726f6475746f20436f6d2043736f736e20323031202d2049434d53205354>] TJ
56
56
  ET
57
57
 
58
- [0.3 0.6] 0 d
58
+ [0.3 0.6] 0.0 d
59
59
  0.3 w
60
60
  0.000 0.000 0.000 SCN
61
- 188.504 311.887 m
62
- 225.354 311.887 l
61
+ 188.5039 311.8867 m
62
+ 225.3543 311.8867 l
63
63
  S
64
- [ ] 0 d
64
+ [] 0 d
65
65
  0.3 w
66
66
  0.000 0.000 0.000 SCN
67
67
 
68
68
  BT
69
- 190.50393700787401 315.18567716535443 Td
69
+ 190.5039 315.1857 Td
70
70
  /F1.0 6 Tf
71
71
  [<3435363738393031>] TJ
72
72
  ET
73
73
 
74
- [0.3 0.6] 0 d
74
+ [0.3 0.6] 0.0 d
75
75
  0.3 w
76
76
  0.000 0.000 0.000 SCN
77
- 225.354 311.887 m
78
- 248.031 311.887 l
77
+ 225.3543 311.8867 m
78
+ 248.0315 311.8867 l
79
79
  S
80
- [ ] 0 d
80
+ [] 0 d
81
81
  0.3 w
82
82
  0.000 0.000 0.000 SCN
83
- [0.3 0.6] 0 d
83
+ [0.3 0.6] 0.0 d
84
84
  0.3 w
85
85
  0.000 0.000 0.000 SCN
86
- 248.031 311.887 m
87
- 276.378 311.887 l
86
+ 248.0315 311.8867 m
87
+ 276.378 311.8867 l
88
88
  S
89
- [ ] 0 d
89
+ [] 0 d
90
90
  0.3 w
91
91
  0.000 0.000 0.000 SCN
92
92
 
93
93
  BT
94
- 250.03149606299212 315.18567716535443 Td
94
+ 250.0315 315.1857 Td
95
95
  /F1.0 6 Tf
96
96
  [<35343031>] TJ
97
97
  ET
98
98
 
99
- [0.3 0.6] 0 d
99
+ [0.3 0.6] 0.0 d
100
100
  0.3 w
101
101
  0.000 0.000 0.000 SCN
102
- 276.378 311.887 m
103
- 304.724 311.887 l
102
+ 276.378 311.8867 m
103
+ 304.7244 311.8867 l
104
104
  S
105
- [ ] 0 d
105
+ [] 0 d
106
106
  0.3 w
107
107
  0.000 0.000 0.000 SCN
108
108
 
109
109
  BT
110
- 278.37795275590554 315.18567716535443 Td
110
+ 278.378 315.1857 Td
111
111
  /F1.0 6 Tf
112
112
  [<554e>] TJ
113
113
  ET
114
114
 
115
- [0.3 0.6] 0 d
115
+ [0.3 0.6] 0.0 d
116
116
  0.3 w
117
117
  0.000 0.000 0.000 SCN
118
- 304.724 311.887 m
119
- 341.575 311.887 l
118
+ 304.7244 311.8867 m
119
+ 341.5748 311.8867 l
120
120
  S
121
- [ ] 0 d
121
+ [] 0 d
122
122
  0.3 w
123
123
  0.000 0.000 0.000 SCN
124
124
 
125
125
  BT
126
- 324.0748031496063 315.18567716535443 Td
126
+ 324.0748 315.1857 Td
127
127
  /F1.0 6 Tf
128
128
  [<362c34353435>] TJ
129
129
  ET
130
130
 
131
- [0.3 0.6] 0 d
131
+ [0.3 0.6] 0.0 d
132
132
  0.3 w
133
133
  0.000 0.000 0.000 SCN
134
- 341.575 311.887 m
135
- 384.094 311.887 l
134
+ 341.5748 311.8867 m
135
+ 384.0945 311.8867 l
136
136
  S
137
- [ ] 0 d
137
+ [] 0 d
138
138
  0.3 w
139
139
  0.000 0.000 0.000 SCN
140
140
 
141
141
  BT
142
- 372.5944881889764 315.18567716535443 Td
142
+ 372.5945 315.1857 Td
143
143
  /F1.0 6 Tf
144
144
  [<312c3033>] TJ
145
145
  ET
146
146
 
147
- [0.3 0.6] 0 d
147
+ [0.3 0.6] 0.0 d
148
148
  0.3 w
149
149
  0.000 0.000 0.000 SCN
150
- 384.094 311.887 m
151
- 426.614 311.887 l
150
+ 384.0945 311.8867 m
151
+ 426.6142 311.8867 l
152
152
  S
153
- [ ] 0 d
153
+ [] 0 d
154
154
  0.3 w
155
155
  0.000 0.000 0.000 SCN
156
156
 
157
157
  BT
158
- 415.1141732283465 315.18567716535443 Td
158
+ 415.1142 315.1857 Td
159
159
  /F1.0 6 Tf
160
160
  [<362c3635>] TJ
161
161
  ET
162
162
 
163
- [0.3 0.6] 0 d
163
+ [0.3 0.6] 0.0 d
164
164
  0.3 w
165
165
  0.000 0.000 0.000 SCN
166
- 426.614 311.887 m
167
- 469.134 311.887 l
166
+ 426.6142 311.8867 m
167
+ 469.1339 311.8867 l
168
168
  S
169
- [ ] 0 d
169
+ [] 0 d
170
170
  0.3 w
171
171
  0.000 0.000 0.000 SCN
172
- [0.3 0.6] 0 d
172
+ [0.3 0.6] 0.0 d
173
173
  0.3 w
174
174
  0.000 0.000 0.000 SCN
175
- 469.134 311.887 m
176
- 497.480 311.887 l
175
+ 469.1339 311.8867 m
176
+ 497.4803 311.8867 l
177
177
  S
178
- [ ] 0 d
178
+ [] 0 d
179
179
  0.3 w
180
180
  0.000 0.000 0.000 SCN
181
- [0.3 0.6] 0 d
181
+ [0.3 0.6] 0.0 d
182
182
  0.3 w
183
183
  0.000 0.000 0.000 SCN
184
- 497.480 311.887 m
185
- 525.827 311.887 l
184
+ 497.4803 311.8867 m
185
+ 525.8268 311.8867 l
186
186
  S
187
- [ ] 0 d
187
+ [] 0 d
188
188
  0.3 w
189
189
  0.000 0.000 0.000 SCN
190
- [0.3 0.6] 0 d
190
+ [0.3 0.6] 0.0 d
191
191
  0.3 w
192
192
  0.000 0.000 0.000 SCN
193
- 525.827 311.887 m
194
- 551.339 311.887 l
193
+ 525.8268 311.8867 m
194
+ 551.3386 311.8867 l
195
195
  S
196
- [ ] 0 d
196
+ [] 0 d
197
197
  0.3 w
198
198
  0.000 0.000 0.000 SCN
199
- [0.3 0.6] 0 d
199
+ [0.3 0.6] 0.0 d
200
200
  0.3 w
201
201
  0.000 0.000 0.000 SCN
202
- 551.339 311.887 m
203
- 575.717 311.887 l
202
+ 551.3386 311.8867 m
203
+ 575.7165 311.8867 l
204
204
  S
205
- [ ] 0 d
205
+ [] 0 d
206
206
  0.3 w
207
207
  0.000 0.000 0.000 SCN
208
208
  Q
@@ -234,13 +234,13 @@ xref
234
234
  0000000109 00000 n
235
235
  0000000158 00000 n
236
236
  0000000215 00000 n
237
- 0000002571 00000 n
238
- 0000002751 00000 n
237
+ 0000002481 00000 n
238
+ 0000002661 00000 n
239
239
  trailer
240
240
  << /Size 7
241
241
  /Root 2 0 R
242
242
  /Info 1 0 R
243
243
  >>
244
244
  startxref
245
- 2850
245
+ 2760
246
246
  %%EOF
@@ -17,192 +17,192 @@ endobj
17
17
  >>
18
18
  endobj
19
19
  4 0 obj
20
- << /Length 2304
20
+ << /Length 2214
21
21
  >>
22
22
  stream
23
23
  q
24
24
  0.3 w
25
- [0.3 0.6] 0 d
25
+ [0.3 0.6] 0.0 d
26
26
  0.3 w
27
27
  /DeviceRGB CS
28
28
  0.000 0.000 0.000 SCN
29
- 21.260 311.887 m
30
- 63.780 311.887 l
29
+ 21.2598 311.8867 m
30
+ 63.7795 311.8867 l
31
31
  S
32
- [ ] 0 d
32
+ [] 0 d
33
33
  0.3 w
34
34
  0.000 0.000 0.000 SCN
35
35
 
36
36
  BT
37
- 23.25984251968504 315.18567716535443 Td
37
+ 23.2598 315.1857 Td
38
38
  /F1.0 6 Tf
39
39
  [<33>] TJ
40
40
  ET
41
41
 
42
- [0.3 0.6] 0 d
42
+ [0.3 0.6] 0.0 d
43
43
  0.3 w
44
44
  0.000 0.000 0.000 SCN
45
- 63.780 311.887 m
46
- 188.504 311.887 l
45
+ 63.7795 311.8867 m
46
+ 188.5039 311.8867 l
47
47
  S
48
- [ ] 0 d
48
+ [] 0 d
49
49
  0.3 w
50
50
  0.000 0.000 0.000 SCN
51
51
 
52
52
  BT
53
- 65.77952755905513 315.18567716535443 Td
53
+ 65.7795 315.1857 Td
54
54
  /F1.0 6 Tf
55
55
  [<50726f6475746f20436f6d2043736f736e20323031202d2049434d53205354>] TJ
56
56
  ET
57
57
 
58
- [0.3 0.6] 0 d
58
+ [0.3 0.6] 0.0 d
59
59
  0.3 w
60
60
  0.000 0.000 0.000 SCN
61
- 188.504 311.887 m
62
- 225.354 311.887 l
61
+ 188.5039 311.8867 m
62
+ 225.3543 311.8867 l
63
63
  S
64
- [ ] 0 d
64
+ [] 0 d
65
65
  0.3 w
66
66
  0.000 0.000 0.000 SCN
67
67
 
68
68
  BT
69
- 190.50393700787401 315.18567716535443 Td
69
+ 190.5039 315.1857 Td
70
70
  /F1.0 6 Tf
71
71
  [<3435363738393031>] TJ
72
72
  ET
73
73
 
74
- [0.3 0.6] 0 d
74
+ [0.3 0.6] 0.0 d
75
75
  0.3 w
76
76
  0.000 0.000 0.000 SCN
77
- 225.354 311.887 m
78
- 248.031 311.887 l
77
+ 225.3543 311.8867 m
78
+ 248.0315 311.8867 l
79
79
  S
80
- [ ] 0 d
80
+ [] 0 d
81
81
  0.3 w
82
82
  0.000 0.000 0.000 SCN
83
- [0.3 0.6] 0 d
83
+ [0.3 0.6] 0.0 d
84
84
  0.3 w
85
85
  0.000 0.000 0.000 SCN
86
- 248.031 311.887 m
87
- 276.378 311.887 l
86
+ 248.0315 311.8867 m
87
+ 276.378 311.8867 l
88
88
  S
89
- [ ] 0 d
89
+ [] 0 d
90
90
  0.3 w
91
91
  0.000 0.000 0.000 SCN
92
92
 
93
93
  BT
94
- 250.03149606299212 315.18567716535443 Td
94
+ 250.0315 315.1857 Td
95
95
  /F1.0 6 Tf
96
96
  [<35343031>] TJ
97
97
  ET
98
98
 
99
- [0.3 0.6] 0 d
99
+ [0.3 0.6] 0.0 d
100
100
  0.3 w
101
101
  0.000 0.000 0.000 SCN
102
- 276.378 311.887 m
103
- 304.724 311.887 l
102
+ 276.378 311.8867 m
103
+ 304.7244 311.8867 l
104
104
  S
105
- [ ] 0 d
105
+ [] 0 d
106
106
  0.3 w
107
107
  0.000 0.000 0.000 SCN
108
108
 
109
109
  BT
110
- 278.37795275590554 315.18567716535443 Td
110
+ 278.378 315.1857 Td
111
111
  /F1.0 6 Tf
112
112
  [<554e>] TJ
113
113
  ET
114
114
 
115
- [0.3 0.6] 0 d
115
+ [0.3 0.6] 0.0 d
116
116
  0.3 w
117
117
  0.000 0.000 0.000 SCN
118
- 304.724 311.887 m
119
- 341.575 311.887 l
118
+ 304.7244 311.8867 m
119
+ 341.5748 311.8867 l
120
120
  S
121
- [ ] 0 d
121
+ [] 0 d
122
122
  0.3 w
123
123
  0.000 0.000 0.000 SCN
124
124
 
125
125
  BT
126
- 330.0748031496063 315.18567716535443 Td
126
+ 330.0748 315.1857 Td
127
127
  /F1.0 6 Tf
128
128
  [<362c3030>] TJ
129
129
  ET
130
130
 
131
- [0.3 0.6] 0 d
131
+ [0.3 0.6] 0.0 d
132
132
  0.3 w
133
133
  0.000 0.000 0.000 SCN
134
- 341.575 311.887 m
135
- 384.094 311.887 l
134
+ 341.5748 311.8867 m
135
+ 384.0945 311.8867 l
136
136
  S
137
- [ ] 0 d
137
+ [] 0 d
138
138
  0.3 w
139
139
  0.000 0.000 0.000 SCN
140
140
 
141
141
  BT
142
- 366.5944881889764 315.18567716535443 Td
142
+ 366.5945 315.1857 Td
143
143
  /F1.0 6 Tf
144
144
  [<312c31333132>] TJ
145
145
  ET
146
146
 
147
- [0.3 0.6] 0 d
147
+ [0.3 0.6] 0.0 d
148
148
  0.3 w
149
149
  0.000 0.000 0.000 SCN
150
- 384.094 311.887 m
151
- 426.614 311.887 l
150
+ 384.0945 311.8867 m
151
+ 426.6142 311.8867 l
152
152
  S
153
- [ ] 0 d
153
+ [] 0 d
154
154
  0.3 w
155
155
  0.000 0.000 0.000 SCN
156
156
 
157
157
  BT
158
- 415.1141732283465 315.18567716535443 Td
158
+ 415.1142 315.1857 Td
159
159
  /F1.0 6 Tf
160
160
  [<362c3739>] TJ
161
161
  ET
162
162
 
163
- [0.3 0.6] 0 d
163
+ [0.3 0.6] 0.0 d
164
164
  0.3 w
165
165
  0.000 0.000 0.000 SCN
166
- 426.614 311.887 m
167
- 469.134 311.887 l
166
+ 426.6142 311.8867 m
167
+ 469.1339 311.8867 l
168
168
  S
169
- [ ] 0 d
169
+ [] 0 d
170
170
  0.3 w
171
171
  0.000 0.000 0.000 SCN
172
- [0.3 0.6] 0 d
172
+ [0.3 0.6] 0.0 d
173
173
  0.3 w
174
174
  0.000 0.000 0.000 SCN
175
- 469.134 311.887 m
176
- 497.480 311.887 l
175
+ 469.1339 311.8867 m
176
+ 497.4803 311.8867 l
177
177
  S
178
- [ ] 0 d
178
+ [] 0 d
179
179
  0.3 w
180
180
  0.000 0.000 0.000 SCN
181
- [0.3 0.6] 0 d
181
+ [0.3 0.6] 0.0 d
182
182
  0.3 w
183
183
  0.000 0.000 0.000 SCN
184
- 497.480 311.887 m
185
- 525.827 311.887 l
184
+ 497.4803 311.8867 m
185
+ 525.8268 311.8867 l
186
186
  S
187
- [ ] 0 d
187
+ [] 0 d
188
188
  0.3 w
189
189
  0.000 0.000 0.000 SCN
190
- [0.3 0.6] 0 d
190
+ [0.3 0.6] 0.0 d
191
191
  0.3 w
192
192
  0.000 0.000 0.000 SCN
193
- 525.827 311.887 m
194
- 551.339 311.887 l
193
+ 525.8268 311.8867 m
194
+ 551.3386 311.8867 l
195
195
  S
196
- [ ] 0 d
196
+ [] 0 d
197
197
  0.3 w
198
198
  0.000 0.000 0.000 SCN
199
- [0.3 0.6] 0 d
199
+ [0.3 0.6] 0.0 d
200
200
  0.3 w
201
201
  0.000 0.000 0.000 SCN
202
- 551.339 311.887 m
203
- 575.717 311.887 l
202
+ 551.3386 311.8867 m
203
+ 575.7165 311.8867 l
204
204
  S
205
- [ ] 0 d
205
+ [] 0 d
206
206
  0.3 w
207
207
  0.000 0.000 0.000 SCN
208
208
  Q
@@ -234,13 +234,13 @@ xref
234
234
  0000000109 00000 n
235
235
  0000000158 00000 n
236
236
  0000000215 00000 n
237
- 0000002571 00000 n
238
- 0000002751 00000 n
237
+ 0000002481 00000 n
238
+ 0000002661 00000 n
239
239
  trailer
240
240
  << /Size 7
241
241
  /Root 2 0 R
242
242
  /Info 1 0 R
243
243
  >>
244
244
  startxref
245
- 2850
245
+ 2760
246
246
  %%EOF