br_danfe 1.2.2 → 1.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (138) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +19 -16
  3. data/README.md +10 -4
  4. data/br_danfe.gemspec +3 -3
  5. data/lib/br_danfe/version.rb +1 -1
  6. data/spec/fixtures/cce/lib/barcode#render.pdf +14 -14
  7. data/spec/fixtures/cce/lib/correction#render.pdf +0 -0
  8. data/spec/fixtures/cce/lib/document#box.pdf +14 -14
  9. data/spec/fixtures/cce/lib/document#box.with.block.pdf +0 -0
  10. data/spec/fixtures/cce/lib/document#text.align.pdf +0 -0
  11. data/spec/fixtures/cce/lib/document#text.pad.pdf +0 -0
  12. data/spec/fixtures/cce/lib/document#text.simple.pdf +0 -0
  13. data/spec/fixtures/cce/lib/document#text.size.pdf +0 -0
  14. data/spec/fixtures/cce/lib/document#text.style.pdf +0 -0
  15. data/spec/fixtures/cce/lib/footer#render.pdf +0 -0
  16. data/spec/fixtures/cce/lib/header#render.pdf +0 -0
  17. data/spec/fixtures/cce/lib/nfe_key#render.pdf +0 -0
  18. data/spec/fixtures/cce/lib/protocol#render.pdf +0 -0
  19. data/spec/fixtures/cce/v1.00/cce.fixture.pdf +265 -149
  20. data/spec/fixtures/mdfe/lib/fisco_control#barcode.pdf +0 -0
  21. data/spec/fixtures/mdfe/lib/fisco_control#without-barcode.pdf +0 -0
  22. data/spec/fixtures/mdfe/lib/header#render-qr-code.pdf +0 -0
  23. data/spec/fixtures/mdfe/lib/header#render-with_logo.pdf +0 -0
  24. data/spec/fixtures/mdfe/lib/header#render-without-qr-code.pdf +0 -0
  25. data/spec/fixtures/mdfe/lib/header#render-without_logo.pdf +0 -0
  26. data/spec/fixtures/mdfe/lib/mdfe-with-multiple-pages.pdf +344 -176
  27. data/spec/fixtures/mdfe/lib/mdfe.fixture.pdf +336 -168
  28. data/spec/fixtures/mdfe/lib/notes#render-big-aditional-information.pdf +219 -151
  29. data/spec/fixtures/nfce/lib/document#render.pdf +20 -20
  30. data/spec/fixtures/nfce/lib/footer#render-with_additional_information.pdf +0 -0
  31. data/spec/fixtures/nfce/lib/footer#render.pdf +0 -0
  32. data/spec/fixtures/nfce/lib/header#render-homologation.pdf +0 -0
  33. data/spec/fixtures/nfce/lib/header#render-long_name_with_logo.pdf +0 -0
  34. data/spec/fixtures/nfce/lib/header#render-long_name_without_logo.pdf +0 -0
  35. data/spec/fixtures/nfce/lib/header#render-short_name_with_logo.pdf +0 -0
  36. data/spec/fixtures/nfce/lib/header#render-short_name_without_logo.pdf +0 -0
  37. data/spec/fixtures/nfce/lib/key#render.pdf +0 -0
  38. data/spec/fixtures/nfce/lib/nfce_identification#render.pdf +0 -0
  39. data/spec/fixtures/nfce/lib/product_list#render-with_many_products.pdf +0 -0
  40. data/spec/fixtures/nfce/lib/product_list#render-with_many_products_and_long_names.pdf +0 -0
  41. data/spec/fixtures/nfce/lib/product_list#render-with_single_product.pdf +0 -0
  42. data/spec/fixtures/nfce/lib/product_list#render-with_single_product_and_long_name.pdf +0 -0
  43. data/spec/fixtures/nfce/lib/recipient#render-company.pdf +0 -0
  44. data/spec/fixtures/nfce/lib/recipient#render-consumer_without_document.pdf +0 -0
  45. data/spec/fixtures/nfce/lib/recipient#render-foreign.pdf +0 -0
  46. data/spec/fixtures/nfce/lib/recipient#render-individual.pdf +0 -0
  47. data/spec/fixtures/nfce/lib/recipient#render-unidentified_consumer.pdf +0 -0
  48. data/spec/fixtures/nfce/lib/total_list#does_not_render-payment_methods.pdf +0 -0
  49. data/spec/fixtures/nfce/lib/total_list#render-grouped_payment_methods.pdf +0 -0
  50. data/spec/fixtures/nfce/lib/total_list#render-totals.pdf +0 -0
  51. data/spec/fixtures/nfce/lib/total_list#render-without_payment.pdf +0 -0
  52. data/spec/fixtures/nfce/lib/total_list#render.pdf +0 -0
  53. data/spec/fixtures/nfce/v4.00/multiples_xmls_on_the_same_pdf.pdf +336 -205
  54. data/spec/fixtures/nfce/v4.00/nfce-unauthorized-hom.fixture.pdf +0 -0
  55. data/spec/fixtures/nfce/v4.00/nfce-unauthorized-prod.fixture.pdf +0 -0
  56. data/spec/fixtures/nfce/v4.00/rendered_nfce.fixture.pdf +0 -0
  57. data/spec/fixtures/nfce/v4.00/saved_nfce.fixture.pdf +0 -0
  58. data/spec/fixtures/nfe/lib/dest#render-v2.00.pdf +0 -0
  59. data/spec/fixtures/nfe/lib/dest#render-v3.10.pdf +0 -0
  60. data/spec/fixtures/nfe/lib/dest#render-v4.00.pdf +0 -0
  61. data/spec/fixtures/nfe/lib/dest#render-with-address-bigger.pdf +0 -0
  62. data/spec/fixtures/nfe/lib/dest#render-with_cnpj.pdf +0 -0
  63. data/spec/fixtures/nfe/lib/dest#render-with_cpf.pdf +0 -0
  64. data/spec/fixtures/nfe/lib/dest#render-with_ie.pdf +0 -0
  65. data/spec/fixtures/nfe/lib/dest#render-without-address-complement.pdf +0 -0
  66. data/spec/fixtures/nfe/lib/det_body#render-csosn.pdf +144 -82
  67. data/spec/fixtures/nfe/lib/det_body#render-cst.pdf +129 -81
  68. data/spec/fixtures/nfe/lib/det_body#render-fci.pdf +124 -85
  69. data/spec/fixtures/nfe/lib/det_body#render-icms_st.pdf +133 -89
  70. data/spec/fixtures/nfe/lib/det_body#render-quantity_with_custom_precision.pdf +122 -84
  71. data/spec/fixtures/nfe/lib/det_body#render-three_pages.pdf +140 -85
  72. data/spec/fixtures/nfe/lib/det_body#render-two_pages.pdf +140 -85
  73. data/spec/fixtures/nfe/lib/det_body#render-unit_price_with_custom_precision.pdf +122 -84
  74. data/spec/fixtures/nfe/lib/det_body#render-with_entrega.pdf +118 -64
  75. data/spec/fixtures/nfe/lib/det_body#render-with_infadprod.pdf +131 -76
  76. data/spec/fixtures/nfe/lib/det_body#render-with_issqn.pdf +140 -85
  77. data/spec/fixtures/nfe/lib/det_body#render-without_issqn.pdf +140 -85
  78. data/spec/fixtures/nfe/lib/document#lcnpj-blank.pdf +0 -0
  79. data/spec/fixtures/nfe/lib/document#lcnpj-invalid.pdf +0 -0
  80. data/spec/fixtures/nfe/lib/document#lcnpj-valid.pdf +0 -0
  81. data/spec/fixtures/nfe/lib/document#lie-blank-uf-invalid.pdf +0 -0
  82. data/spec/fixtures/nfe/lib/document#lie-blank.pdf +0 -0
  83. data/spec/fixtures/nfe/lib/document#lie-invalid.pdf +0 -0
  84. data/spec/fixtures/nfe/lib/document#lie-valid.pdf +0 -0
  85. data/spec/fixtures/nfe/lib/dup#render-with_entrega.pdf +0 -0
  86. data/spec/fixtures/nfe/lib/dup#render.pdf +0 -0
  87. data/spec/fixtures/nfe/lib/emit_header#render-nfe_key.pdf +283 -151
  88. data/spec/fixtures/nfe/lib/emit_header#render-second_page.pdf +283 -151
  89. data/spec/fixtures/nfe/lib/emit_header#render-with_logo.pdf +283 -151
  90. data/spec/fixtures/nfe/lib/emit_header#render-without_logo.pdf +264 -132
  91. data/spec/fixtures/nfe/lib/entrega#render-v2.00.pdf +0 -0
  92. data/spec/fixtures/nfe/lib/entrega#render-with-address-bigger.pdf +0 -0
  93. data/spec/fixtures/nfe/lib/entrega#render-with_cpf.pdf +0 -0
  94. data/spec/fixtures/nfe/lib/icmstot#render-with_entrega.pdf +0 -0
  95. data/spec/fixtures/nfe/lib/icmstot#render.pdf +0 -0
  96. data/spec/fixtures/nfe/lib/infadic#render-all_the_informations.pdf +0 -0
  97. data/spec/fixtures/nfe/lib/infadic#render-difal.pdf +0 -0
  98. data/spec/fixtures/nfe/lib/infadic#render-extra_volume.pdf +0 -0
  99. data/spec/fixtures/nfe/lib/infadic#render-with_complementary_information.pdf +0 -0
  100. data/spec/fixtures/nfe/lib/infadic#render-with_dup_additional_information.pdf +0 -0
  101. data/spec/fixtures/nfe/lib/infadic#render-with_fisco_additional_information.pdf +0 -0
  102. data/spec/fixtures/nfe/lib/infadic#render-with_street_data.pdf +0 -0
  103. data/spec/fixtures/nfe/lib/infadic#render-without_dup_additional_information.pdf +0 -0
  104. data/spec/fixtures/nfe/lib/infadic#render.pdf +0 -0
  105. data/spec/fixtures/nfe/lib/infadic_vol#render-extra_volume.pdf +0 -0
  106. data/spec/fixtures/nfe/lib/issqn#render-with_entrega.pdf +0 -0
  107. data/spec/fixtures/nfe/lib/issqn#render-with_issqn.pdf +0 -0
  108. data/spec/fixtures/nfe/lib/issqn#render-with_one_issqn_value.pdf +0 -0
  109. data/spec/fixtures/nfe/lib/issqn#render-without_issqn.pdf +14 -14
  110. data/spec/fixtures/nfe/lib/ticket#render.pdf +0 -0
  111. data/spec/fixtures/nfe/lib/ticket#render_with_dEmit.pdf +0 -0
  112. data/spec/fixtures/nfe/lib/ticket#render_with_dhEmit.pdf +0 -0
  113. data/spec/fixtures/nfe/lib/transp#render-modfrete_0.pdf +0 -0
  114. data/spec/fixtures/nfe/lib/transp#render-modfrete_1.pdf +0 -0
  115. data/spec/fixtures/nfe/lib/transp#render-modfrete_2.pdf +0 -0
  116. data/spec/fixtures/nfe/lib/transp#render-modfrete_3.pdf +0 -0
  117. data/spec/fixtures/nfe/lib/transp#render-modfrete_4.pdf +0 -0
  118. data/spec/fixtures/nfe/lib/transp#render-modfrete_9.pdf +0 -0
  119. data/spec/fixtures/nfe/lib/transp#render-with_entrega.pdf +0 -0
  120. data/spec/fixtures/nfe/lib/transp#render.pdf +0 -0
  121. data/spec/fixtures/nfe/lib/vol#render-blank-boxes.pdf +0 -0
  122. data/spec/fixtures/nfe/lib/vol#render-with_entrega.pdf +0 -0
  123. data/spec/fixtures/nfe/lib/vol#render.pdf +0 -0
  124. data/spec/fixtures/nfe/v2.00/custom_options.fixture.pdf +312 -185
  125. data/spec/fixtures/nfe/v2.00/nfe_simples_nacional.xml.fixture.pdf +293 -166
  126. data/spec/fixtures/nfe/v2.00/nfe_with_entrega.xml.fixture.pdf +296 -166
  127. data/spec/fixtures/nfe/v2.00/nfe_with_extra_volumes.xml.fixture.pdf +419 -221
  128. data/spec/fixtures/nfe/v2.00/nfe_with_fci.xml.fixture.pdf +311 -163
  129. data/spec/fixtures/nfe/v2.00/nfe_with_ns.xml.fixture.pdf +309 -171
  130. data/spec/fixtures/nfe/v2.00/nfe_without_ns.xml.fixture.pdf +303 -152
  131. data/spec/fixtures/nfe/v3.10/multiples.xmls.on.the.same.pdf.pdf +320 -152
  132. data/spec/fixtures/nfe/v3.10/nfe_simples_nacional.xml.fixture.pdf +312 -144
  133. data/spec/fixtures/nfe/v3.10/with_footer.fixture.pdf +323 -169
  134. data/spec/fixtures/nfe/v3.10/with_issqn.fixture.pdf +314 -138
  135. data/spec/fixtures/nfe/v3.10/with_three_pages.fixture.pdf +330 -159
  136. data/spec/fixtures/nfe/v3.10/without_issqn.fixture.pdf +319 -148
  137. data/spec/fixtures/qr_code/qr_code#render.pdf +0 -0
  138. metadata +9 -9
@@ -6,14 +6,14 @@
6
6
  >>
7
7
  endobj
8
8
  2 0 obj
9
- << /Type /Catalog
10
- /Pages 3 0 R
9
+ << /Pages 3 0 R
10
+ /Type /Catalog
11
11
  >>
12
12
  endobj
13
13
  3 0 obj
14
- << /Type /Pages
15
- /Count 1
14
+ << /Count 1
16
15
  /Kids [5 0 R]
16
+ /Type /Pages
17
17
  >>
18
18
  endobj
19
19
  4 0 obj
@@ -27,17 +27,17 @@ Q
27
27
  endstream
28
28
  endobj
29
29
  5 0 obj
30
- << /Type /Page
31
- /Parent 3 0 R
32
- /MediaBox [0 0 595.28 841.89]
33
- /CropBox [0 0 595.28 841.89]
30
+ << /ArtBox [0 0 595.28 841.89]
34
31
  /BleedBox [0 0 595.28 841.89]
35
- /TrimBox [0 0 595.28 841.89]
36
- /ArtBox [0 0 595.28 841.89]
37
32
  /Contents 4 0 R
38
- /Resources << /ProcSet [/PDF /Text /ImageB /ImageC /ImageI]
39
- /Font << >>
33
+ /CropBox [0 0 595.28 841.89]
34
+ /MediaBox [0 0 595.28 841.89]
35
+ /Parent 3 0 R
36
+ /Resources << /Font << >>
37
+ /ProcSet [/PDF /Text /ImageB /ImageC /ImageI]
40
38
  >>
39
+ /TrimBox [0 0 595.28 841.89]
40
+ /Type /Page
41
41
  >>
42
42
  endobj
43
43
  xref
@@ -49,9 +49,9 @@ xref
49
49
  0000000215 00000 n
50
50
  0000000275 00000 n
51
51
  trailer
52
- << /Size 6
52
+ << /Info 1 0 R
53
53
  /Root 2 0 R
54
- /Info 1 0 R
54
+ /Size 6
55
55
  >>
56
56
  startxref
57
57
  559
Binary file