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,47 +17,47 @@ endobj
17
17
  >>
18
18
  endobj
19
19
  4 0 obj
20
- << /Length 1295
20
+ << /Length 1289
21
21
  >>
22
22
  stream
23
23
  q
24
24
  0.3 w
25
25
 
26
26
  BT
27
- 35 798.694 Td
27
+ 35.0 798.694 Td
28
28
  /F1.0 12 Tf
29
29
  [<546865736520617265207468652041504920646f63756d656e747320666f7220746865206261736520636c617373657320616e64206d6f64756c657320696e207468652063757272656e7420737461626c652072656c65617365206f66205275627920322e322e205468657365>] TJ
30
30
  ET
31
31
 
32
32
 
33
33
  BT
34
- 35 785.3019999999999 Td
34
+ 35.0 785.302 Td
35
35
  /F1.0 12 Tf
36
36
  [<617265207468652041504920646f63756d656e747320666f7220746865206261736520636c617373657320616e64206d6f64756c657320696e207468652063757272656e7420737461626c652072656c65617365206f66205275627920322e322e20546865736520617265>] TJ
37
37
  ET
38
38
 
39
39
 
40
40
  BT
41
- 35 771.91 Td
41
+ 35.0 771.91 Td
42
42
  /F1.0 12 Tf
43
43
  [<7468652041504920646f63756d656e747320666f7220746865206261736520636c617373657320616e64206d6f64756c657320696e207468652063757272656e7420737461626c652072656c65617365206f66205275627920322e322e2054686573652061726520746865>] TJ
44
44
  ET
45
45
 
46
46
 
47
47
  BT
48
- 35 758.518 Td
48
+ 35.0 758.518 Td
49
49
  /F1.0 12 Tf
50
50
  [<41504920646f63756d656e747320666f7220746865206261736520636c617373657320616e64206d6f64756c657320696e207468652063757272656e7420737461626c652072656c65617365206f66205275627920322e322e205468657365206172652074686520415049>] TJ
51
51
  ET
52
52
 
53
53
 
54
54
  BT
55
- 35 745.126 Td
55
+ 35.0 745.126 Td
56
56
  /F1.0 12 Tf
57
57
  [<646f63756d656e747320666f7220746865206261736520636c617373657320616e64206d6f64756c657320696e207468652063757272656e7420737461626c652072656c65617365206f66205275627920322e322e>] TJ
58
58
  ET
59
59
 
60
- 30.000 321.890 535.280 490.000 re
60
+ 30.0 321.89 535.28 490.0 re
61
61
  S
62
62
  Q
63
63
 
@@ -88,13 +88,13 @@ xref
88
88
  0000000109 00000 n
89
89
  0000000158 00000 n
90
90
  0000000215 00000 n
91
- 0000001562 00000 n
92
- 0000001742 00000 n
91
+ 0000001556 00000 n
92
+ 0000001736 00000 n
93
93
  trailer
94
94
  << /Size 7
95
95
  /Root 2 0 R
96
96
  /Info 1 0 R
97
97
  >>
98
98
  startxref
99
- 1841
99
+ 1835
100
100
  %%EOF
@@ -17,12 +17,12 @@ endobj
17
17
  >>
18
18
  endobj
19
19
  4 0 obj
20
- << /Length 45
20
+ << /Length 39
21
21
  >>
22
22
  stream
23
23
  q
24
24
  0.3 w
25
- 30.000 761.890 535.280 50.000 re
25
+ 30.0 761.89 535.28 50.0 re
26
26
  S
27
27
  Q
28
28
 
@@ -34,6 +34,7 @@ endobj
34
34
  /MediaBox [0 0 595.28 841.89]
35
35
  /Contents 4 0 R
36
36
  /Resources << /ProcSet [/PDF /Text /ImageB /ImageC /ImageI]
37
+ /Font << >>
37
38
  >>
38
39
  >>
39
40
  endobj
@@ -44,12 +45,12 @@ xref
44
45
  0000000109 00000 n
45
46
  0000000158 00000 n
46
47
  0000000215 00000 n
47
- 0000000310 00000 n
48
+ 0000000304 00000 n
48
49
  trailer
49
50
  << /Size 6
50
51
  /Root 2 0 R
51
52
  /Info 1 0 R
52
53
  >>
53
54
  startxref
54
- 466
55
+ 472
55
56
  %%EOF
@@ -17,19 +17,19 @@ endobj
17
17
  >>
18
18
  endobj
19
19
  4 0 obj
20
- << /Length 115
20
+ << /Length 111
21
21
  >>
22
22
  stream
23
23
  q
24
24
  0.3 w
25
25
 
26
26
  BT
27
- 35 798.694 Td
27
+ 35.0 798.694 Td
28
28
  /F1.0 12 Tf
29
29
  [<73616d706c65207465> 15 <7874>] TJ
30
30
  ET
31
31
 
32
- 30.000 761.890 535.280 50.000 re
32
+ 30.0 761.89 535.28 50.0 re
33
33
  S
34
34
  Q
35
35
 
@@ -60,13 +60,13 @@ xref
60
60
  0000000109 00000 n
61
61
  0000000158 00000 n
62
62
  0000000215 00000 n
63
- 0000000381 00000 n
64
- 0000000561 00000 n
63
+ 0000000377 00000 n
64
+ 0000000557 00000 n
65
65
  trailer
66
66
  << /Size 7
67
67
  /Root 2 0 R
68
68
  /Info 1 0 R
69
69
  >>
70
70
  startxref
71
- 660
71
+ 656
72
72
  %%EOF
@@ -17,14 +17,14 @@ endobj
17
17
  >>
18
18
  endobj
19
19
  4 0 obj
20
- << /Length 84
20
+ << /Length 86
21
21
  >>
22
22
  stream
23
23
  q
24
24
  0.3 w
25
25
 
26
26
  BT
27
- 30 753.694 Td
27
+ 30.0 753.694 Td
28
28
  /F1.0 12 Tf
29
29
  [<7465> 15 <7874207769746820706164>] TJ
30
30
  ET
@@ -58,13 +58,13 @@ xref
58
58
  0000000109 00000 n
59
59
  0000000158 00000 n
60
60
  0000000215 00000 n
61
- 0000000349 00000 n
62
- 0000000529 00000 n
61
+ 0000000351 00000 n
62
+ 0000000531 00000 n
63
63
  trailer
64
64
  << /Size 7
65
65
  /Root 2 0 R
66
66
  /Info 1 0 R
67
67
  >>
68
68
  startxref
69
- 628
69
+ 630
70
70
  %%EOF
@@ -17,14 +17,14 @@ endobj
17
17
  >>
18
18
  endobj
19
19
  4 0 obj
20
- << /Length 80
20
+ << /Length 82
21
21
  >>
22
22
  stream
23
23
  q
24
24
  0.3 w
25
25
 
26
26
  BT
27
- 30 803.694 Td
27
+ 30.0 803.694 Td
28
28
  /F1.0 12 Tf
29
29
  [<73696d706c65207465> 15 <7874>] TJ
30
30
  ET
@@ -58,13 +58,13 @@ xref
58
58
  0000000109 00000 n
59
59
  0000000158 00000 n
60
60
  0000000215 00000 n
61
- 0000000345 00000 n
62
- 0000000525 00000 n
61
+ 0000000347 00000 n
62
+ 0000000527 00000 n
63
63
  trailer
64
64
  << /Size 7
65
65
  /Root 2 0 R
66
66
  /Info 1 0 R
67
67
  >>
68
68
  startxref
69
- 624
69
+ 626
70
70
  %%EOF
@@ -17,14 +17,14 @@ endobj
17
17
  >>
18
18
  endobj
19
19
  4 0 obj
20
- << /Length 84
20
+ << /Length 76
21
21
  >>
22
22
  stream
23
23
  q
24
24
  0.3 w
25
25
 
26
26
  BT
27
- 30 794.8149999999999 Td
27
+ 30.0 794.815 Td
28
28
  /F1.0 25 Tf
29
29
  [<626967207465> 15 <7874>] TJ
30
30
  ET
@@ -58,13 +58,13 @@ xref
58
58
  0000000109 00000 n
59
59
  0000000158 00000 n
60
60
  0000000215 00000 n
61
- 0000000349 00000 n
62
- 0000000529 00000 n
61
+ 0000000341 00000 n
62
+ 0000000521 00000 n
63
63
  trailer
64
64
  << /Size 7
65
65
  /Root 2 0 R
66
66
  /Info 1 0 R
67
67
  >>
68
68
  startxref
69
- 628
69
+ 620
70
70
  %%EOF
@@ -17,14 +17,14 @@ endobj
17
17
  >>
18
18
  endobj
19
19
  4 0 obj
20
- << /Length 70
20
+ << /Length 72
21
21
  >>
22
22
  stream
23
23
  q
24
24
  0.3 w
25
25
 
26
26
  BT
27
- 30 803.694 Td
27
+ 30.0 803.694 Td
28
28
  /F2.0 12 Tf
29
29
  [<626f6c642074657874>] TJ
30
30
  ET
@@ -58,13 +58,13 @@ xref
58
58
  0000000109 00000 n
59
59
  0000000158 00000 n
60
60
  0000000215 00000 n
61
- 0000000335 00000 n
62
- 0000000515 00000 n
61
+ 0000000337 00000 n
62
+ 0000000517 00000 n
63
63
  trailer
64
64
  << /Size 7
65
65
  /Root 2 0 R
66
66
  /Info 1 0 R
67
67
  >>
68
68
  startxref
69
- 613
69
+ 615
70
70
  %%EOF
@@ -17,61 +17,61 @@ endobj
17
17
  >>
18
18
  endobj
19
19
  4 0 obj
20
- << /Length 1419
20
+ << /Length 1417
21
21
  >>
22
22
  stream
23
23
  q
24
24
  0.3 w
25
25
 
26
26
  BT
27
- 35 798.694 Td
27
+ 35.0 798.694 Td
28
28
  /F1.0 12 Tf
29
29
  [<4120436172746120646520436f727265e7e36f20e9206469736369706c696e6164612070656c6f20a720316f2d4120646f206172742e20376f20646f20436f6e> 40 <76> 15 <ea6e696f20532f4e2c2064652031352064652064657a656d62726f20646520313937302065>] TJ
30
30
  ET
31
31
 
32
32
 
33
33
  BT
34
- 35 785.302 Td
34
+ 35.0 785.302 Td
35
35
  /F1.0 12 Tf
36
36
  [<706f646520736572207574696c697a6164612070617261207265> 15 <67756c6172697a61e7e36f206465206572726f206f636f727269646f206e6120656d697373e36f20646520646f63756d656e746f2066> 20 <697363616c2c20646573646520717565206f206572726f206ee36f>] TJ
37
37
  ET
38
38
 
39
39
 
40
40
  BT
41
- 35 771.91 Td
41
+ 35.0 771.91 Td
42
42
  /F1.0 12 Tf
43
43
  [<657374656a612072656c6163696f6e61646f20636f6d3a>] TJ
44
44
  ET
45
45
 
46
46
 
47
47
  BT
48
- 35 758.518 Td
48
+ 35.0 758.518 Td
49
49
  /F1.0 12 Tf
50
50
  [<492e2061732076> 25 <617269e1> 20 <76> 15 <656973207175652064657465726d696e616d206f2076> 25 <616c6f7220646f20696d706f73746f207461697320636f6d6f3a20626173652064652063e16c63756c6f2c20616ced71756f74612c206469666572656ee76120646520707265e76f2c>] TJ
51
51
  ET
52
52
 
53
53
 
54
54
  BT
55
- 35 745.126 Td
55
+ 35.0 745.126 Td
56
56
  /F1.0 12 Tf
57
57
  [<7175616e7469646164652c2076> 25 <616c6f72206461206f70657261e7e36f206f7520646120707265737461e7e36f3b>] TJ
58
58
  ET
59
59
 
60
60
 
61
61
  BT
62
- 35 731.7339999999999 Td
62
+ 35.0 731.734 Td
63
63
  /F1.0 12 Tf
64
64
  [<49492e206120636f727265e7e36f206465206461646f7320636164617374726169732071756520696d706c69717565206d7564616ee76120646f2072656d6574656e7465206f7520646f2064657374696e6174e172696f3b>] TJ
65
65
  ET
66
66
 
67
67
 
68
68
  BT
69
- 35 718.342 Td
69
+ 35.0 718.342 Td
70
70
  /F1.0 12 Tf
71
71
  [<4949492e2061206461746120646520656d697373e36f206f75206465207361ed64612e>] TJ
72
72
  ET
73
73
 
74
- 30.000 701.890 535.280 110.000 re
74
+ 30.0 701.89 535.28 110.0 re
75
75
  S
76
76
  Q
77
77
 
@@ -102,13 +102,13 @@ xref
102
102
  0000000109 00000 n
103
103
  0000000158 00000 n
104
104
  0000000215 00000 n
105
- 0000001686 00000 n
106
- 0000001866 00000 n
105
+ 0000001684 00000 n
106
+ 0000001864 00000 n
107
107
  trailer
108
108
  << /Size 7
109
109
  /Root 2 0 R
110
110
  /Info 1 0 R
111
111
  >>
112
112
  startxref
113
- 1965
113
+ 1963
114
114
  %%EOF
@@ -17,19 +17,19 @@ endobj
17
17
  >>
18
18
  endobj
19
19
  4 0 obj
20
- << /Length 181
20
+ << /Length 154
21
21
  >>
22
22
  stream
23
23
  q
24
24
  0.3 w
25
25
 
26
26
  BT
27
- 122.06499999999997 783.8149999999999 Td
27
+ 122.065 783.815 Td
28
28
  /F1.0 25 Tf
29
29
  [<436172746120646520436f727265e7e36f20456c657472f46e696361202d20434365>] TJ
30
30
  ET
31
31
 
32
- 30.000 771.890 535.280 40.000 re
32
+ 30.0 771.89 535.28 40.0 re
33
33
  S
34
34
  Q
35
35
 
@@ -60,13 +60,13 @@ xref
60
60
  0000000109 00000 n
61
61
  0000000158 00000 n
62
62
  0000000215 00000 n
63
- 0000000447 00000 n
64
- 0000000627 00000 n
63
+ 0000000420 00000 n
64
+ 0000000600 00000 n
65
65
  trailer
66
66
  << /Size 7
67
67
  /Root 2 0 R
68
68
  /Info 1 0 R
69
69
  >>
70
70
  startxref
71
- 726
71
+ 699
72
72
  %%EOF
@@ -17,26 +17,26 @@ endobj
17
17
  >>
18
18
  endobj
19
19
  4 0 obj
20
- << /Length 279
20
+ << /Length 256
21
21
  >>
22
22
  stream
23
23
  q
24
24
  0.3 w
25
25
 
26
26
  BT
27
- 35 801.4259999999999 Td
27
+ 35.0 801.426 Td
28
28
  /F2.0 8 Tf
29
29
  [<434841> 145 <56452044452041> 55 <434553534f>] TJ
30
30
  ET
31
31
 
32
32
 
33
33
  BT
34
- 35 784.4699999999999 Td
34
+ 35.0 784.47 Td
35
35
  /F1.0 12 Tf
36
36
  [<3432313530333033383833333639303030313838353530303130303030303030333831303030303030333831>] TJ
37
37
  ET
38
38
 
39
- 30.000 775.890 535.280 36.000 re
39
+ 30.0 775.89 535.28 36.0 re
40
40
  S
41
41
  Q
42
42
 
@@ -75,14 +75,14 @@ xref
75
75
  0000000109 00000 n
76
76
  0000000158 00000 n
77
77
  0000000215 00000 n
78
- 0000000545 00000 n
79
- 0000000737 00000 n
80
- 0000000835 00000 n
78
+ 0000000522 00000 n
79
+ 0000000714 00000 n
80
+ 0000000812 00000 n
81
81
  trailer
82
82
  << /Size 8
83
83
  /Root 2 0 R
84
84
  /Info 1 0 R
85
85
  >>
86
86
  startxref
87
- 934
87
+ 911
88
88
  %%EOF
@@ -17,26 +17,26 @@ endobj
17
17
  >>
18
18
  endobj
19
19
  4 0 obj
20
- << /Length 268
20
+ << /Length 245
21
21
  >>
22
22
  stream
23
23
  q
24
24
  0.3 w
25
25
 
26
26
  BT
27
- 35 801.4259999999999 Td
27
+ 35.0 801.426 Td
28
28
  /F2.0 8 Tf
29
29
  [<5052> 30 <4f> 40 <54> 18 <4f434f4c4f2044452041> 50 <5554> 18 <4f52495a41> 55 <c7c3> 45 <4f>] TJ
30
30
  ET
31
31
 
32
32
 
33
33
  BT
34
- 35 784.4699999999999 Td
34
+ 35.0 784.47 Td
35
35
  /F1.0 12 Tf
36
36
  [<333432313530303030313738363233>] TJ
37
37
  ET
38
38
 
39
- 30.000 775.890 535.280 36.000 re
39
+ 30.0 775.89 535.28 36.0 re
40
40
  S
41
41
  Q
42
42
 
@@ -75,14 +75,14 @@ xref
75
75
  0000000109 00000 n
76
76
  0000000158 00000 n
77
77
  0000000215 00000 n
78
- 0000000534 00000 n
79
- 0000000726 00000 n
80
- 0000000824 00000 n
78
+ 0000000511 00000 n
79
+ 0000000703 00000 n
80
+ 0000000801 00000 n
81
81
  trailer
82
82
  << /Size 8
83
83
  /Root 2 0 R
84
84
  /Info 1 0 R
85
85
  >>
86
86
  startxref
87
- 923
87
+ 900
88
88
  %%EOF