@mmachadosantos/nfe-danfe-pdf 1.0.4

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 (135) hide show
  1. package/README.md +719 -0
  2. package/lib/application/helpers/generate-pdf/fontes/Times New Roman Bold Italic.ttf +0 -0
  3. package/lib/application/helpers/generate-pdf/fontes/Times New Roman Bold.ttf +0 -0
  4. package/lib/application/helpers/generate-pdf/fontes/Times New Roman Italic.ttf +0 -0
  5. package/lib/application/helpers/generate-pdf/fontes/Times New Roman.ttf +0 -0
  6. package/lib/application/helpers/generate-pdf/fontes/barlow-condensed/BarlowCondensed-Black.ttf +0 -0
  7. package/lib/application/helpers/generate-pdf/fontes/barlow-condensed/BarlowCondensed-BlackItalic.ttf +0 -0
  8. package/lib/application/helpers/generate-pdf/fontes/barlow-condensed/BarlowCondensed-Bold.ttf +0 -0
  9. package/lib/application/helpers/generate-pdf/fontes/barlow-condensed/BarlowCondensed-BoldItalic.ttf +0 -0
  10. package/lib/application/helpers/generate-pdf/fontes/barlow-condensed/BarlowCondensed-ExtraBold.ttf +0 -0
  11. package/lib/application/helpers/generate-pdf/fontes/barlow-condensed/BarlowCondensed-ExtraBoldItalic.ttf +0 -0
  12. package/lib/application/helpers/generate-pdf/fontes/barlow-condensed/BarlowCondensed-ExtraLight.ttf +0 -0
  13. package/lib/application/helpers/generate-pdf/fontes/barlow-condensed/BarlowCondensed-ExtraLightItalic.ttf +0 -0
  14. package/lib/application/helpers/generate-pdf/fontes/barlow-condensed/BarlowCondensed-Italic.ttf +0 -0
  15. package/lib/application/helpers/generate-pdf/fontes/barlow-condensed/BarlowCondensed-Light.ttf +0 -0
  16. package/lib/application/helpers/generate-pdf/fontes/barlow-condensed/BarlowCondensed-LightItalic.ttf +0 -0
  17. package/lib/application/helpers/generate-pdf/fontes/barlow-condensed/BarlowCondensed-Medium.ttf +0 -0
  18. package/lib/application/helpers/generate-pdf/fontes/barlow-condensed/BarlowCondensed-MediumItalic.ttf +0 -0
  19. package/lib/application/helpers/generate-pdf/fontes/barlow-condensed/BarlowCondensed-Regular.ttf +0 -0
  20. package/lib/application/helpers/generate-pdf/fontes/barlow-condensed/BarlowCondensed-SemiBold.ttf +0 -0
  21. package/lib/application/helpers/generate-pdf/fontes/barlow-condensed/BarlowCondensed-SemiBoldItalic.ttf +0 -0
  22. package/lib/application/helpers/generate-pdf/fontes/barlow-condensed/BarlowCondensed-Thin.ttf +0 -0
  23. package/lib/application/helpers/generate-pdf/fontes/barlow-condensed/BarlowCondensed-ThinItalic.ttf +0 -0
  24. package/lib/application/helpers/generate-pdf/fontes/roboto-condensed/RobotoCondensed-Bold.ttf +0 -0
  25. package/lib/application/helpers/generate-pdf/fontes/roboto-condensed/RobotoCondensed-BoldItalic.ttf +0 -0
  26. package/lib/application/helpers/generate-pdf/fontes/roboto-condensed/RobotoCondensed-Italic.ttf +0 -0
  27. package/lib/application/helpers/generate-pdf/fontes/roboto-condensed/RobotoCondensed-Light.ttf +0 -0
  28. package/lib/application/helpers/generate-pdf/fontes/roboto-condensed/RobotoCondensed-LightItalic.ttf +0 -0
  29. package/lib/application/helpers/generate-pdf/fontes/roboto-condensed/RobotoCondensed-Regular.ttf +0 -0
  30. package/lib/application/helpers/generate-pdf/nfe/campo.d.ts +2 -0
  31. package/lib/application/helpers/generate-pdf/nfe/campo.js +15 -0
  32. package/lib/application/helpers/generate-pdf/nfe/cria-layout.d.ts +2 -0
  33. package/lib/application/helpers/generate-pdf/nfe/cria-layout.js +149 -0
  34. package/lib/application/helpers/generate-pdf/nfe/default.d.ts +23 -0
  35. package/lib/application/helpers/generate-pdf/nfe/default.js +26 -0
  36. package/lib/application/helpers/generate-pdf/nfe/gerar-itens.d.ts +2 -0
  37. package/lib/application/helpers/generate-pdf/nfe/gerar-itens.js +291 -0
  38. package/lib/application/helpers/generate-pdf/nfe/get-dados-adicionais.d.ts +2 -0
  39. package/lib/application/helpers/generate-pdf/nfe/get-dados-adicionais.js +269 -0
  40. package/lib/application/helpers/generate-pdf/nfe/get-dados-emitente.d.ts +2 -0
  41. package/lib/application/helpers/generate-pdf/nfe/get-dados-emitente.js +319 -0
  42. package/lib/application/helpers/generate-pdf/nfe/get-destinatario-remetente.d.ts +2 -0
  43. package/lib/application/helpers/generate-pdf/nfe/get-destinatario-remetente.js +154 -0
  44. package/lib/application/helpers/generate-pdf/nfe/get-fatura-duplicata.d.ts +2 -0
  45. package/lib/application/helpers/generate-pdf/nfe/get-fatura-duplicata.js +118 -0
  46. package/lib/application/helpers/generate-pdf/nfe/get-homologacao.d.ts +2 -0
  47. package/lib/application/helpers/generate-pdf/nfe/get-homologacao.js +36 -0
  48. package/lib/application/helpers/generate-pdf/nfe/get-imposto.d.ts +2 -0
  49. package/lib/application/helpers/generate-pdf/nfe/get-imposto.js +219 -0
  50. package/lib/application/helpers/generate-pdf/nfe/get-iss.d.ts +2 -0
  51. package/lib/application/helpers/generate-pdf/nfe/get-iss.js +73 -0
  52. package/lib/application/helpers/generate-pdf/nfe/get-menu-itens.d.ts +2 -0
  53. package/lib/application/helpers/generate-pdf/nfe/get-menu-itens.js +199 -0
  54. package/lib/application/helpers/generate-pdf/nfe/get-nota-cancelada.d.ts +2 -0
  55. package/lib/application/helpers/generate-pdf/nfe/get-nota-cancelada.js +16 -0
  56. package/lib/application/helpers/generate-pdf/nfe/get-recibo.d.ts +2 -0
  57. package/lib/application/helpers/generate-pdf/nfe/get-recibo.js +101 -0
  58. package/lib/application/helpers/generate-pdf/nfe/get-transporte.d.ts +2 -0
  59. package/lib/application/helpers/generate-pdf/nfe/get-transporte.js +179 -0
  60. package/lib/application/helpers/generate-pdf/nfe/italico.d.ts +2 -0
  61. package/lib/application/helpers/generate-pdf/nfe/italico.js +16 -0
  62. package/lib/application/helpers/generate-pdf/nfe/linha-horizontal-tracejada.d.ts +2 -0
  63. package/lib/application/helpers/generate-pdf/nfe/linha-horizontal-tracejada.js +7 -0
  64. package/lib/application/helpers/generate-pdf/nfe/linha-horizontal.d.ts +2 -0
  65. package/lib/application/helpers/generate-pdf/nfe/linha-horizontal.js +26 -0
  66. package/lib/application/helpers/generate-pdf/nfe/linha-vertical.d.ts +2 -0
  67. package/lib/application/helpers/generate-pdf/nfe/linha-vertical.js +14 -0
  68. package/lib/application/helpers/generate-pdf/nfe/load-fontes.d.ts +2 -0
  69. package/lib/application/helpers/generate-pdf/nfe/load-fontes.js +30 -0
  70. package/lib/application/helpers/generate-pdf/nfe/negrito.d.ts +2 -0
  71. package/lib/application/helpers/generate-pdf/nfe/negrito.js +16 -0
  72. package/lib/application/helpers/generate-pdf/nfe/normal.d.ts +2 -0
  73. package/lib/application/helpers/generate-pdf/nfe/normal.js +16 -0
  74. package/lib/application/helpers/generate-pdf/nfe/options-doc.d.ts +10 -0
  75. package/lib/application/helpers/generate-pdf/nfe/options-doc.js +14 -0
  76. package/lib/application/helpers/generate-pdf/nfe/secao.d.ts +2 -0
  77. package/lib/application/helpers/generate-pdf/nfe/secao.js +16 -0
  78. package/lib/application/helpers/generate-pdf/nfe/titulo.d.ts +2 -0
  79. package/lib/application/helpers/generate-pdf/nfe/titulo.js +17 -0
  80. package/lib/application/helpers/xml/deserialize.d.ts +2 -0
  81. package/lib/application/helpers/xml/deserialize.js +24 -0
  82. package/lib/application/helpers/xml/index.d.ts +1 -0
  83. package/lib/application/helpers/xml/index.js +17 -0
  84. package/lib/domain/use-cases/pdf/index.d.ts +2 -0
  85. package/lib/domain/use-cases/pdf/index.js +25 -0
  86. package/lib/domain/use-cases/pdf/pdf-NFCe.d.ts +2 -0
  87. package/lib/domain/use-cases/pdf/pdf-NFCe.js +687 -0
  88. package/lib/domain/use-cases/pdf/pdf-NFe.d.ts +2 -0
  89. package/lib/domain/use-cases/pdf/pdf-NFe.js +54 -0
  90. package/lib/domain/use-cases/utils/clean-html-entities.d.ts +2 -0
  91. package/lib/domain/use-cases/utils/clean-html-entities.js +45 -0
  92. package/lib/domain/use-cases/utils/current-date.d.ts +1 -0
  93. package/lib/domain/use-cases/utils/current-date.js +7 -0
  94. package/lib/domain/use-cases/utils/format-cnpj.d.ts +1 -0
  95. package/lib/domain/use-cases/utils/format-cnpj.js +8 -0
  96. package/lib/domain/use-cases/utils/format-cpf.d.ts +1 -0
  97. package/lib/domain/use-cases/utils/format-cpf.js +8 -0
  98. package/lib/domain/use-cases/utils/format-date-time.d.ts +1 -0
  99. package/lib/domain/use-cases/utils/format-date-time.js +10 -0
  100. package/lib/domain/use-cases/utils/format-date.d.ts +1 -0
  101. package/lib/domain/use-cases/utils/format-date.js +9 -0
  102. package/lib/domain/use-cases/utils/format-key.d.ts +1 -0
  103. package/lib/domain/use-cases/utils/format-key.js +6 -0
  104. package/lib/domain/use-cases/utils/format-number.d.ts +1 -0
  105. package/lib/domain/use-cases/utils/format-number.js +6 -0
  106. package/lib/domain/use-cases/utils/format-phone.d.ts +1 -0
  107. package/lib/domain/use-cases/utils/format-phone.js +20 -0
  108. package/lib/domain/use-cases/utils/format-plate.d.ts +1 -0
  109. package/lib/domain/use-cases/utils/format-plate.js +16 -0
  110. package/lib/domain/use-cases/utils/format-postal-code.d.ts +1 -0
  111. package/lib/domain/use-cases/utils/format-postal-code.js +8 -0
  112. package/lib/domain/use-cases/utils/format-protocol.d.ts +1 -0
  113. package/lib/domain/use-cases/utils/format-protocol.js +8 -0
  114. package/lib/domain/use-cases/utils/format-state-registration.d.ts +1 -0
  115. package/lib/domain/use-cases/utils/format-state-registration.js +152 -0
  116. package/lib/domain/use-cases/utils/format-time.d.ts +1 -0
  117. package/lib/domain/use-cases/utils/format-time.js +8 -0
  118. package/lib/domain/use-cases/utils/index.d.ts +15 -0
  119. package/lib/domain/use-cases/utils/index.js +31 -0
  120. package/lib/domain/use-cases/utils/return-font-size-carrier.d.ts +1 -0
  121. package/lib/domain/use-cases/utils/return-font-size-carrier.js +23 -0
  122. package/lib/index.d.ts +1 -0
  123. package/lib/index.js +5 -0
  124. package/lib/tsconfig.tsbuildinfo +1 -0
  125. package/lib/types/generate-pdf.d.ts +266 -0
  126. package/lib/types/generate-pdf.js +2 -0
  127. package/lib/types/index.d.ts +3 -0
  128. package/lib/types/index.js +19 -0
  129. package/lib/types/nfe-proc.d.ts +42 -0
  130. package/lib/types/nfe-proc.js +2 -0
  131. package/lib/types/schema.d.ts +876 -0
  132. package/lib/types/schema.js +2 -0
  133. package/lib/utils/index.d.ts +1 -0
  134. package/lib/utils/index.js +6 -0
  135. package/package.json +59 -0
@@ -0,0 +1,199 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getMenuItens = getMenuItens;
4
+ const default_1 = require("./default");
5
+ const linha_horizontal_1 = require("./linha-horizontal");
6
+ const linha_vertical_1 = require("./linha-vertical");
7
+ const secao_1 = require("./secao");
8
+ const titulo_1 = require("./titulo");
9
+ function getMenuItens({ y, doc, ajusteX, ajusteY, margemEsquerda, margemTopo, margemDireita, finalEspacoDet, larguraDoFormulario }) {
10
+ doc
11
+ .lineWidth(0.5)
12
+ .roundedRect(margemEsquerda + ajusteX, margemTopo + ajusteY + y + 17, larguraDoFormulario, finalEspacoDet - (y + 17), 3)
13
+ .stroke()
14
+ .lineWidth(1);
15
+ (0, linha_horizontal_1.linhaHorizontal)({ x1: -0.5, x2: 0.5, y: y + 32, doc, ajusteX, ajusteY, margemDireita, margemEsquerda, margemTopo });
16
+ (0, linha_vertical_1.linhaVertical)({ y1: y + 17, y2: finalEspacoDet, x: 53, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
17
+ (0, linha_vertical_1.linhaVertical)({ y1: y + 17, y2: finalEspacoDet, x: 236.5, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
18
+ (0, linha_vertical_1.linhaVertical)({ y1: y + 17, y2: finalEspacoDet, x: 267, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
19
+ (0, linha_vertical_1.linhaVertical)({ y1: y + 17, y2: finalEspacoDet, x: 293.5, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
20
+ (0, linha_vertical_1.linhaVertical)({ y1: y + 17, y2: finalEspacoDet, x: 315, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
21
+ (0, linha_vertical_1.linhaVertical)({ y1: y + 17, y2: finalEspacoDet, x: 333, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
22
+ (0, linha_vertical_1.linhaVertical)({ y1: y + 17, y2: finalEspacoDet, x: 373, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
23
+ (0, linha_vertical_1.linhaVertical)({ y1: y + 17, y2: finalEspacoDet, x: 407.5, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
24
+ (0, linha_vertical_1.linhaVertical)({ y1: y + 17, y2: finalEspacoDet, x: 441.5, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
25
+ (0, linha_vertical_1.linhaVertical)({ y1: y + 17, y2: finalEspacoDet, x: 475, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
26
+ (0, linha_vertical_1.linhaVertical)({ y1: y + 17, y2: finalEspacoDet, x: 508, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
27
+ (0, linha_vertical_1.linhaVertical)({ y1: y + 17, y2: finalEspacoDet, x: 533.5, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
28
+ (0, linha_vertical_1.linhaVertical)({ y1: y + 17, y2: finalEspacoDet, x: 557, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
29
+ (0, secao_1.secao)({ doc, value: 'DADOS DOS PRODUTOS / SERVIÇOS', x: 1.5, y: y + 8, largura: 0, ajusteX, ajusteY, margemEsquerda, margemTopo });
30
+ (0, titulo_1.titulo)({
31
+ value: 'CÓDIGO',
32
+ x: 1.5,
33
+ y: y + 21,
34
+ largura: 50.5,
35
+ alinhamento: default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela,
36
+ ajusteX,
37
+ ajusteY,
38
+ doc,
39
+ margemEsquerda,
40
+ margemTopo
41
+ });
42
+ (0, titulo_1.titulo)({
43
+ value: 'DESCRIÇÃO DO PRODUTO / SERVIÇO',
44
+ x: 55,
45
+ y: y + 21,
46
+ largura: 179,
47
+ alinhamento: default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela,
48
+ ajusteX,
49
+ ajusteY,
50
+ doc,
51
+ margemEsquerda,
52
+ margemTopo
53
+ });
54
+ (0, titulo_1.titulo)({
55
+ value: 'NCM/SH',
56
+ x: 236.5,
57
+ y: y + 21,
58
+ largura: 31.5,
59
+ alinhamento: default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela,
60
+ ajusteX,
61
+ ajusteY,
62
+ doc,
63
+ margemEsquerda,
64
+ margemTopo
65
+ });
66
+ (0, titulo_1.titulo)({
67
+ value: 'O/CST',
68
+ x: 270,
69
+ y: y + 21,
70
+ largura: 20,
71
+ alinhamento: default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela,
72
+ ajusteX,
73
+ ajusteY,
74
+ doc,
75
+ margemEsquerda,
76
+ margemTopo
77
+ });
78
+ (0, titulo_1.titulo)({
79
+ value: 'CFOP',
80
+ x: 294.5,
81
+ y: y + 21,
82
+ largura: 19.5,
83
+ alinhamento: default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela,
84
+ ajusteX,
85
+ ajusteY,
86
+ doc,
87
+ margemEsquerda,
88
+ margemTopo
89
+ });
90
+ (0, titulo_1.titulo)({
91
+ value: 'UN.',
92
+ x: 317,
93
+ y: y + 21,
94
+ largura: 14.5,
95
+ alinhamento: default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela,
96
+ ajusteX,
97
+ ajusteY,
98
+ doc,
99
+ margemEsquerda,
100
+ margemTopo
101
+ });
102
+ (0, titulo_1.titulo)({
103
+ value: 'QUANT.',
104
+ x: 335,
105
+ y: y + 21,
106
+ largura: 37,
107
+ alinhamento: default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela,
108
+ ajusteX,
109
+ ajusteY,
110
+ doc,
111
+ margemEsquerda,
112
+ margemTopo
113
+ });
114
+ (0, titulo_1.titulo)({
115
+ value: 'VALOR UNIT.',
116
+ x: 375,
117
+ y: y + 21 - 3,
118
+ largura: 31.5,
119
+ alinhamento: default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela,
120
+ ajusteX,
121
+ ajusteY,
122
+ doc,
123
+ margemEsquerda,
124
+ margemTopo
125
+ });
126
+ (0, titulo_1.titulo)({
127
+ value: 'VALOR TOTAL.',
128
+ x: 409.5,
129
+ y: y + 21 - 3,
130
+ largura: 31.5,
131
+ alinhamento: default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela,
132
+ ajusteX,
133
+ ajusteY,
134
+ doc,
135
+ margemEsquerda,
136
+ margemTopo
137
+ });
138
+ (0, titulo_1.titulo)({
139
+ value: 'B. CÁLC. ICMS',
140
+ x: 443,
141
+ y: y + 21 - 3,
142
+ largura: 31.5,
143
+ alinhamento: default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela,
144
+ ajusteX,
145
+ ajusteY,
146
+ doc,
147
+ margemEsquerda,
148
+ margemTopo
149
+ });
150
+ (0, titulo_1.titulo)({
151
+ value: 'VALOR ICMS',
152
+ x: 476,
153
+ y: y + 21 - 3,
154
+ largura: 31.5,
155
+ alinhamento: default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela,
156
+ ajusteX,
157
+ ajusteY,
158
+ doc,
159
+ margemEsquerda,
160
+ margemTopo
161
+ });
162
+ (0, titulo_1.titulo)({
163
+ value: 'VALOR IPI',
164
+ x: 507.5,
165
+ y: y + 21 - 3,
166
+ largura: 28,
167
+ alinhamento: default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela,
168
+ ajusteX,
169
+ ajusteY,
170
+ doc,
171
+ margemEsquerda,
172
+ margemTopo
173
+ });
174
+ (0, titulo_1.titulo)({
175
+ value: 'ALÍQ. ICMS',
176
+ x: 532,
177
+ y: y + 21 - 3,
178
+ largura: 28,
179
+ alinhamento: default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela,
180
+ ajusteX,
181
+ ajusteY,
182
+ doc,
183
+ margemEsquerda,
184
+ margemTopo
185
+ });
186
+ (0, titulo_1.titulo)({
187
+ value: 'ALÍQ. IPI',
188
+ x: 557.75,
189
+ y: y + 21,
190
+ largura: 28,
191
+ alinhamento: default_1.DEFAULT_NFE.alinhamentoDoTituloDaTabela,
192
+ ajusteX,
193
+ ajusteY,
194
+ doc,
195
+ margemEsquerda,
196
+ margemTopo
197
+ });
198
+ return doc.y;
199
+ }
@@ -0,0 +1,2 @@
1
+ import type { GeneratePdf } from '../../../../types';
2
+ export declare function getNotaCancelada({ doc, ajusteX, ajusteY, margemEsquerda, margemTopo, larguraDoFormulario }: GeneratePdf.InputNotaCancelada): void;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getNotaCancelada = getNotaCancelada;
4
+ const default_1 = require("./default");
5
+ function getNotaCancelada({ doc, ajusteX, ajusteY, margemEsquerda, margemTopo, larguraDoFormulario }) {
6
+ doc
7
+ .font('normal')
8
+ .fillColor(default_1.DEFAULT_NFE.corDoTitulo)
9
+ .fontSize(60)
10
+ .fillOpacity(default_1.DEFAULT_NFE.opacidadeDaHomologacao)
11
+ .text('CANCELADA', margemEsquerda + ajusteX + 0, margemTopo + ajusteY + 200 + default_1.DEFAULT_NFE.ajusteYDaHomologacao, {
12
+ width: larguraDoFormulario,
13
+ align: 'center'
14
+ });
15
+ doc.fillOpacity(100);
16
+ }
@@ -0,0 +1,2 @@
1
+ import type { GeneratePdf } from '../../../../types';
2
+ export declare function getRecibo({ y, doc, ajusteX, ajusteY, margemDireita, margemEsquerda, margemTopo, larguraDoFormulario, dest, emit, total, ide }: GeneratePdf.InputRecibo): number;
@@ -0,0 +1,101 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getRecibo = getRecibo;
4
+ const date_fns_1 = require("date-fns");
5
+ const utils_1 = require("../../../../domain/use-cases/utils");
6
+ const linha_horizontal_1 = require("./linha-horizontal");
7
+ const linha_horizontal_tracejada_1 = require("./linha-horizontal-tracejada");
8
+ const linha_vertical_1 = require("./linha-vertical");
9
+ const normal_1 = require("./normal");
10
+ const titulo_1 = require("./titulo");
11
+ function getRecibo({ y, doc, ajusteX, ajusteY, margemDireita, margemEsquerda, margemTopo, larguraDoFormulario, dest, emit, total, ide }) {
12
+ doc
13
+ .lineWidth(0.5)
14
+ .roundedRect(margemEsquerda + ajusteX, margemTopo + ajusteY + y, larguraDoFormulario, 51.1, 3)
15
+ .stroke()
16
+ .lineWidth(1);
17
+ (0, linha_horizontal_1.linhaHorizontal)({ x1: 3, x2: -113.5, y: y + 28.3, doc, ajusteX, ajusteY, margemDireita, margemEsquerda, margemTopo });
18
+ (0, linha_vertical_1.linhaVertical)({ y1: y + 28.3, y2: y + 48.1, x: 99.2, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
19
+ (0, linha_vertical_1.linhaVertical)({ y1: y + 3, y2: y + 48.1, x: 476, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
20
+ (0, normal_1.normal)({
21
+ doc,
22
+ value: [
23
+ 'Recebemos de',
24
+ emit.xNome,
25
+ 'os produtos e/ou serviços constantes da nota',
26
+ 'fiscal eletrônica indicada abaixo.',
27
+ 'Emissão:',
28
+ (0, date_fns_1.format)((0, date_fns_1.parseISO)(ide.dhEmi), 'dd/MM/yyyy HH:mm:ss'),
29
+ '- Valor Total:',
30
+ (0, utils_1.formatNumber)(total.ICMSTot.vNF, 2),
31
+ '- Destinatário:',
32
+ dest.xNome,
33
+ '- Endereço:',
34
+ dest.enderDest?.xLgr
35
+ ]
36
+ .join(' ')
37
+ .toUpperCase(),
38
+ x: 1.5,
39
+ y: y + 3,
40
+ largura: 472.5,
41
+ alinhamento: 'justify',
42
+ tamanho: 6.9,
43
+ ajusteX,
44
+ ajusteY,
45
+ margemEsquerda,
46
+ margemTopo
47
+ });
48
+ (0, titulo_1.titulo)({ value: 'DATA DE RECEBIMENTO', x: 1.5, y: y + 30, largura: 97, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
49
+ (0, titulo_1.titulo)({
50
+ value: 'IDENTIFICAÇÃO E ASSINATURA DO RECEBEDOR',
51
+ x: 100.5,
52
+ y: y + 30,
53
+ largura: 374,
54
+ ajusteX,
55
+ ajusteY,
56
+ doc,
57
+ margemEsquerda,
58
+ margemTopo
59
+ });
60
+ (0, normal_1.normal)({
61
+ doc,
62
+ value: 'NF-e',
63
+ x: 476.6,
64
+ y: y + 1.8,
65
+ largura: 110,
66
+ alinhamento: 'center',
67
+ tamanho: 14,
68
+ ajusteX,
69
+ ajusteY,
70
+ margemEsquerda,
71
+ margemTopo
72
+ });
73
+ (0, normal_1.normal)({
74
+ doc,
75
+ value: 'Nº. ' + ide.nNF.padStart(9, '0').replace(/(\d{3})(\d{3})(\d{3})/, '$1.$2.$3'),
76
+ x: 476.6,
77
+ y: y + 22,
78
+ largura: 110,
79
+ alinhamento: 'center',
80
+ tamanho: 10,
81
+ ajusteX,
82
+ ajusteY,
83
+ margemEsquerda,
84
+ margemTopo
85
+ });
86
+ (0, normal_1.normal)({
87
+ doc,
88
+ value: 'Série ' + ide.serie,
89
+ x: 476.6,
90
+ y: y + 31.5,
91
+ largura: 110,
92
+ alinhamento: 'center',
93
+ tamanho: 10,
94
+ ajusteX,
95
+ ajusteY,
96
+ margemEsquerda,
97
+ margemTopo
98
+ });
99
+ (0, linha_horizontal_tracejada_1.linhaHorizontalTracejada)({ x1: 0, x2: 0, y: y + 55.32, doc, ajusteX, ajusteY, margemDireita, margemEsquerda, margemTopo });
100
+ return doc.y;
101
+ }
@@ -0,0 +1,2 @@
1
+ import type { GeneratePdf } from '../../../../types';
2
+ export declare function getTransporte({ y, doc, ajusteX, ajusteY, margemDireita, margemEsquerda, margemTopo, larguraDoFormulario, transp }: GeneratePdf.InputTransporte): number;
@@ -0,0 +1,179 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getTransporte = getTransporte;
4
+ const utils_1 = require("../../../../domain/use-cases/utils");
5
+ const campo_1 = require("./campo");
6
+ const default_1 = require("./default");
7
+ const linha_horizontal_1 = require("./linha-horizontal");
8
+ const linha_vertical_1 = require("./linha-vertical");
9
+ const secao_1 = require("./secao");
10
+ const titulo_1 = require("./titulo");
11
+ function getTransporte({ y, doc, ajusteX, ajusteY, margemDireita, margemEsquerda, margemTopo, larguraDoFormulario, transp }) {
12
+ doc
13
+ .lineWidth(0.5)
14
+ .roundedRect(margemEsquerda + ajusteX, margemTopo + ajusteY + y + 8, larguraDoFormulario, 60, 3)
15
+ .stroke()
16
+ .lineWidth(1);
17
+ (0, linha_vertical_1.linhaVertical)({ y1: y + 8, y2: y + 28, x: 170, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
18
+ (0, linha_vertical_1.linhaVertical)({ y1: y + 8, y2: y + 28, x: 346, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
19
+ (0, linha_vertical_1.linhaVertical)({ y1: y + 8, y2: y + 48, x: 434, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
20
+ (0, linha_vertical_1.linhaVertical)({ y1: y + 8, y2: y + 48, x: 456.65, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
21
+ (0, linha_vertical_1.linhaVertical)({ y1: y + 8, y2: y + 68, x: 258, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
22
+ (0, linha_vertical_1.linhaVertical)({ y1: y + 48, y2: y + 68, x: 59.6, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
23
+ (0, linha_vertical_1.linhaVertical)({ y1: y + 48, y2: y + 68, x: 156.6, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
24
+ (0, linha_vertical_1.linhaVertical)({ y1: y + 48, y2: y + 68, x: 357, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
25
+ (0, linha_vertical_1.linhaVertical)({ y1: y + 48, y2: y + 68, x: 473.3, doc, ajusteX, ajusteY, margemEsquerda, margemTopo });
26
+ (0, linha_horizontal_1.linhaHorizontal)({ x1: 0, x2: 0, y: y + 28, doc, ajusteX, ajusteY, margemDireita, margemEsquerda, margemTopo });
27
+ (0, linha_horizontal_1.linhaHorizontal)({ x1: 0, x2: 0, y: y + 48, doc, ajusteX, ajusteY, margemDireita, margemEsquerda, margemTopo });
28
+ (0, secao_1.secao)({ doc, value: 'TRANSPORTADOR / VOLUMES TRANSPORTADOS', x: 1.5, y, largura: 0, ajusteX, ajusteY, margemEsquerda, margemTopo });
29
+ (0, titulo_1.titulo)({ value: 'NOME / RAZÃO SOCIAL', x: 1.5, y: y + 9.5, largura: 166.5, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
30
+ (0, campo_1.campo)({
31
+ value: transp.transporta?.xNome ?? '',
32
+ x: 1.5,
33
+ y: y + 17.5,
34
+ largura: 166.5,
35
+ alinhamento: 'left',
36
+ tamanho: (0, utils_1.returnFontSizeCarrier)(transp.transporta?.xNome ?? ''),
37
+ ajusteX,
38
+ ajusteY,
39
+ doc,
40
+ margemEsquerda,
41
+ margemTopo
42
+ });
43
+ function ModFrete(value) {
44
+ if (value === '0') {
45
+ return '0 - Por conta do Remet';
46
+ }
47
+ else if (value === '1') {
48
+ return '1 - Por conta do Dest';
49
+ }
50
+ else if (value === '2') {
51
+ return '2 - Por conta de Terc';
52
+ }
53
+ else if (value === '3') {
54
+ return '3 - Por conta do Remet';
55
+ }
56
+ else if (value === '4') {
57
+ return '4 - Por conta do Dest';
58
+ }
59
+ else if (value === '9') {
60
+ return '9 - Sem Ocorr de Transp';
61
+ }
62
+ return '';
63
+ }
64
+ (0, titulo_1.titulo)({ value: 'FRETE POR CONTA', x: 171.5, y: y + 9.5, largura: 85, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
65
+ (0, campo_1.campo)({
66
+ value: ModFrete(transp.modFrete),
67
+ x: 164,
68
+ y: y + 17.5,
69
+ largura: 100,
70
+ ajusteX,
71
+ ajusteY,
72
+ doc,
73
+ margemEsquerda,
74
+ margemTopo,
75
+ tamanho: 8.4
76
+ });
77
+ (0, titulo_1.titulo)({ value: 'CÓDIGO ANTT', x: 259.5, y: y + 9.5, largura: 84, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
78
+ (0, campo_1.campo)({ value: transp.veicTransp?.RNTC ?? '', x: 259.5, y: y + 17.5, largura: 84, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
79
+ (0, titulo_1.titulo)({ value: 'PLACA DO VEÍCULO', x: 347.5, y: y + 9.5, largura: 84, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
80
+ (0, campo_1.campo)({
81
+ value: (0, utils_1.formatLicensePlate)(transp.veicTransp?.placa ?? ''),
82
+ x: 347.5,
83
+ y: y + 17.5,
84
+ largura: 84,
85
+ ajusteX,
86
+ ajusteY,
87
+ doc,
88
+ margemEsquerda,
89
+ margemTopo
90
+ });
91
+ (0, titulo_1.titulo)({ value: 'UF', x: 435.5, y: y + 9.5, largura: 19.5, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
92
+ (0, campo_1.campo)({ value: transp.veicTransp?.UF ?? '', x: 435.5, y: y + 17.5, largura: 19.5, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
93
+ (0, titulo_1.titulo)({ value: 'CNPJ / CPF', x: 458, y: y + 9.5, largura: 126.5, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
94
+ (0, campo_1.campo)({
95
+ value: (0, utils_1.formatCnpj)(transp.transporta?.CNPJ ?? ''),
96
+ x: 458,
97
+ y: y + 17.5,
98
+ largura: 126.5,
99
+ ajusteX,
100
+ ajusteY,
101
+ doc,
102
+ margemEsquerda,
103
+ margemTopo
104
+ });
105
+ (0, campo_1.campo)({
106
+ value: (0, utils_1.formatCpf)(transp.transporta?.CPF ?? ''),
107
+ x: 458,
108
+ y: y + 17.5,
109
+ largura: 126.5,
110
+ ajusteX,
111
+ ajusteY,
112
+ doc,
113
+ margemEsquerda,
114
+ margemTopo
115
+ });
116
+ (0, titulo_1.titulo)({ value: 'ENDEREÇO', x: 1.5, y: y + 30, largura: 254, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
117
+ (0, campo_1.campo)({
118
+ value: transp.transporta?.xEnder ?? '',
119
+ x: 1.5,
120
+ y: y + 38.5,
121
+ largura: 254,
122
+ alinhamento: 'left',
123
+ tamanho: default_1.DEFAULT_NFE.tamanhoDaFonteDoCampo - 0.5,
124
+ ajusteX,
125
+ ajusteY,
126
+ doc,
127
+ margemEsquerda,
128
+ margemTopo
129
+ });
130
+ (0, titulo_1.titulo)({ value: 'MUNICÍPIO', x: 259.5, y: y + 30, largura: 172, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
131
+ (0, campo_1.campo)({ value: transp.transporta?.xMun ?? '', x: 259.5, y: y + 38.5, largura: 172, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
132
+ (0, titulo_1.titulo)({ value: 'UF', x: 435.5, y: y + 30, largura: 19.5, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
133
+ (0, campo_1.campo)({ value: transp.transporta?.uf ?? '', x: 435.5, y: y + 38.5, largura: 19.5, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
134
+ (0, titulo_1.titulo)({ value: 'INSCRIÇÃO ESTADUAL', x: 458, y: y + 30, largura: 126.5, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
135
+ (0, campo_1.campo)({
136
+ value: (0, utils_1.formatStateRegistration)(transp.transporta?.ie ?? ''),
137
+ x: 458,
138
+ y: y + 38.5,
139
+ largura: 126.5,
140
+ ajusteX,
141
+ ajusteY,
142
+ doc,
143
+ margemEsquerda,
144
+ margemTopo
145
+ });
146
+ (0, titulo_1.titulo)({ value: 'QUANTIDADE', x: 1.5, y: y + 50, largura: 56.5, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
147
+ (0, campo_1.campo)({ value: transp.vol?.qVol ?? '', x: 1.5, y: y + 58, largura: 56.5, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
148
+ (0, titulo_1.titulo)({ value: 'ESPÉCIE', x: 60.8, y: y + 50, largura: 96, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
149
+ (0, campo_1.campo)({ value: transp.vol?.esp ?? '', x: 60.8, y: y + 58, largura: 96, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
150
+ (0, titulo_1.titulo)({ value: 'MARCA', x: 160, y: y + 50, largura: 96, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
151
+ (0, campo_1.campo)({ value: transp.vol?.marca ?? '', x: 160, y: y + 58, largura: 96, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
152
+ (0, titulo_1.titulo)({ value: 'NUMERAÇÃO', x: 259.5, y: y + 50, largura: 96, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
153
+ (0, campo_1.campo)({ value: transp.vol?.nVol ?? '', x: 259.5, y: y + 58, largura: 96, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
154
+ (0, titulo_1.titulo)({ value: 'PESO BRUTO', x: 358.5, y: y + 50, largura: 112.5, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
155
+ (0, campo_1.campo)({
156
+ value: transp.vol?.pesoB ? (0, utils_1.formatNumber)(transp.vol?.pesoB, 3) : '',
157
+ x: 358.5,
158
+ y: y + 58,
159
+ largura: 112.5,
160
+ ajusteX,
161
+ ajusteY,
162
+ doc,
163
+ margemEsquerda,
164
+ margemTopo
165
+ });
166
+ (0, titulo_1.titulo)({ value: 'PESO LÍQUIDO', x: 474.5, y: y + 50, largura: 110.5, ajusteX, ajusteY, doc, margemEsquerda, margemTopo });
167
+ (0, campo_1.campo)({
168
+ value: transp.vol?.pesoL ? (0, utils_1.formatNumber)(transp.vol?.pesoL, 3) : '',
169
+ x: 474.5,
170
+ y: y + 58,
171
+ largura: 110.5,
172
+ ajusteX,
173
+ ajusteY,
174
+ doc,
175
+ margemEsquerda,
176
+ margemTopo
177
+ });
178
+ return doc.y;
179
+ }
@@ -0,0 +1,2 @@
1
+ import type { GeneratePdf } from '../../../../types';
2
+ export declare function italico({ ajusteX, ajusteY, doc, largura, margemEsquerda, margemTopo, value, x, y, alinhamento, tamanho }: GeneratePdf.InputItalico): void;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.italico = italico;
4
+ const default_1 = require("./default");
5
+ function italico({ ajusteX, ajusteY, doc, largura, margemEsquerda, margemTopo, value, x, y, alinhamento, tamanho }) {
6
+ const alignValue = (alinhamento ?? 'center');
7
+ doc
8
+ .font('italico')
9
+ .fillColor(default_1.DEFAULT_NFE.corDoTitulo)
10
+ .fontSize(tamanho ?? 6)
11
+ .text(value ?? '', margemEsquerda + ajusteX + x, margemTopo + ajusteY + y, {
12
+ width: largura,
13
+ align: alignValue,
14
+ lineGap: -1.5
15
+ });
16
+ }
@@ -0,0 +1,2 @@
1
+ import type { GeneratePdf } from '../../../../types';
2
+ export declare function linhaHorizontalTracejada(input: GeneratePdf.InputLinhaHorizontal): void;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.linhaHorizontalTracejada = linhaHorizontalTracejada;
4
+ const linha_horizontal_1 = require("./linha-horizontal");
5
+ function linhaHorizontalTracejada(input) {
6
+ (0, linha_horizontal_1.linhaHorizontal)({ ...input, tracejada: false });
7
+ }
@@ -0,0 +1,2 @@
1
+ import type { GeneratePdf } from '../../../../types';
2
+ export declare function linhaHorizontal({ ajusteX, ajusteY, doc, x1, x2, y, margemDireita, margemEsquerda, margemTopo, tracejada }: GeneratePdf.InputLinhaHorizontal): void;
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.linhaHorizontal = linhaHorizontal;
4
+ function linhaHorizontal({ ajusteX, ajusteY, doc, x1, x2, y, margemDireita, margemEsquerda, margemTopo, tracejada = false }) {
5
+ y = margemTopo + ajusteY + y;
6
+ x1 = margemEsquerda + ajusteX + x1;
7
+ x2 = margemDireita + ajusteX + x2;
8
+ if (tracejada) {
9
+ doc
10
+ .lineWidth(0.5)
11
+ .moveTo(x1, y)
12
+ .lineTo(x2, y)
13
+ .dash(3, { space: 5 })
14
+ .stroke()
15
+ .undash()
16
+ .lineWidth(1);
17
+ }
18
+ else {
19
+ doc
20
+ .lineWidth(0.5)
21
+ .moveTo(x1, y)
22
+ .lineTo(x2, y)
23
+ .stroke()
24
+ .lineWidth(1);
25
+ }
26
+ }
@@ -0,0 +1,2 @@
1
+ import type { GeneratePdf } from '../../../../types';
2
+ export declare function linhaVertical({ ajusteX, ajusteY, doc, margemEsquerda, margemTopo, x, y1, y2 }: GeneratePdf.InputLinhaVertical): void;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.linhaVertical = linhaVertical;
4
+ function linhaVertical({ ajusteX, ajusteY, doc, margemEsquerda, margemTopo, x, y1, y2 }) {
5
+ x = margemEsquerda + ajusteX + x;
6
+ y1 = margemTopo + ajusteY + y1;
7
+ y2 = margemTopo + ajusteY + y2;
8
+ doc
9
+ .lineWidth(0.5)
10
+ .moveTo(x, y1)
11
+ .lineTo(x, y2)
12
+ .stroke()
13
+ .lineWidth(1);
14
+ }
@@ -0,0 +1,2 @@
1
+ export declare function loadFonts(doc: PDFKit.PDFDocument): void;
2
+ export declare function loadFontsNFCe(doc: PDFKit.PDFDocument): void;
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.loadFonts = loadFonts;
7
+ exports.loadFontsNFCe = loadFontsNFCe;
8
+ const path_1 = __importDefault(require("path"));
9
+ function loadFonts(doc) {
10
+ const diretorioDeFontes = path_1.default.join(__dirname, './../fontes');
11
+ const timesNewRoman = path_1.default.join(diretorioDeFontes, 'Times New Roman.ttf');
12
+ const timesNewRomanNegrito = path_1.default.join(diretorioDeFontes, 'Times New Roman Bold.ttf');
13
+ const timesNewRomanItalico = path_1.default.join(diretorioDeFontes, 'Times New Roman Italic.ttf');
14
+ const timesNewRomanNegritoItalico = path_1.default.join(diretorioDeFontes, 'Times New Roman Bold Italic.ttf');
15
+ doc.registerFont('normal', timesNewRoman);
16
+ doc.registerFont('negrito', timesNewRomanNegrito);
17
+ doc.registerFont('italico', timesNewRomanItalico);
18
+ doc.registerFont('negrito-italico', timesNewRomanNegritoItalico);
19
+ }
20
+ function loadFontsNFCe(doc) {
21
+ const diretorioDeFontes = path_1.default.join(__dirname, './../fontes/roboto-condensed');
22
+ const normal = path_1.default.join(diretorioDeFontes, 'RobotoCondensed-Regular.ttf');
23
+ const negrito = path_1.default.join(diretorioDeFontes, 'RobotoCondensed-Bold.ttf');
24
+ const italico = path_1.default.join(diretorioDeFontes, 'RobotoCondensed-Italic.ttf');
25
+ const negritoItalico = path_1.default.join(diretorioDeFontes, 'RobotoCondensed-BoldItalic.ttf');
26
+ doc.registerFont('normal', normal);
27
+ doc.registerFont('negrito', negrito);
28
+ doc.registerFont('italico', italico);
29
+ doc.registerFont('negrito-italico', negritoItalico);
30
+ }
@@ -0,0 +1,2 @@
1
+ import type { GeneratePdf } from '../../../../types';
2
+ export declare function negrito({ ajusteX, ajusteY, doc, largura, margemEsquerda, margemTopo, value, x, y, alinhamento, tamanho }: GeneratePdf.InputNegrito): void;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.negrito = negrito;
4
+ const default_1 = require("./default");
5
+ function negrito({ ajusteX, ajusteY, doc, largura, margemEsquerda, margemTopo, value, x, y, alinhamento, tamanho }) {
6
+ const alignValue = (alinhamento ?? 'center');
7
+ doc
8
+ .font('negrito')
9
+ .fillColor(default_1.DEFAULT_NFE.corDoTitulo)
10
+ .fontSize(tamanho ?? 6)
11
+ .text(value, margemEsquerda + ajusteX + x, margemTopo + ajusteY + y, {
12
+ width: largura,
13
+ align: alignValue,
14
+ lineGap: -1.5
15
+ });
16
+ }
@@ -0,0 +1,2 @@
1
+ import type { GeneratePdf } from '../../../../types';
2
+ export declare function normal({ ajusteX, ajusteY, doc, largura, margemEsquerda, margemTopo, value, x, y, alinhamento, tamanho }: GeneratePdf.InputNormal): void;