https://github.com/wr2net/nfse-pdf-api
API em Node.js para receber um XML de Nota Fiscal de Serviço Eletrônica (NFSe) e gerar um PDF com os dados da nota.
https://github.com/wr2net/nfse-pdf-api
node pd xm
Last synced: 3 months ago
JSON representation
API em Node.js para receber um XML de Nota Fiscal de Serviço Eletrônica (NFSe) e gerar um PDF com os dados da nota.
- Host: GitHub
- URL: https://github.com/wr2net/nfse-pdf-api
- Owner: wr2net
- License: mit
- Created: 2025-07-02T14:13:15.000Z (3 months ago)
- Default Branch: master
- Last Pushed: 2025-07-02T20:11:08.000Z (3 months ago)
- Last Synced: 2025-07-02T20:36:26.910Z (3 months ago)
- Topics: node, pd, xm
- Language: JavaScript
- Homepage:
- Size: 51.8 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# NFSe PDF API
[](https://app.netlify.com/projects/nf-pdf/deploys)



API em Node.js para receber um XML de Nota Fiscal de Serviço Eletrônica (NFSe) e gerar um PDF com os dados da nota.
## Como usar
1. Instale as dependências:
```bash
sh setup.sh
```2. Inicie a API:
```bash
sh run.sh
```3. Envie o XML via POST para o endpoint `/gerar-pdf`:
- URL: `https://nf-pdf.fawacom.com.br/gerar-pdf`
- Método: `POST`
- Content-Type: `application/xml`
- Corpo: Cole o XML da NFSeExemplo usando `curl`:
```bash
curl --location --request POST 'https://nf-pdf.fawacom.com.br/gerar-pdf' \
--data ''
```O PDF será retornado como resposta.
4. Parar a API:
```bash
sh stop.sh
```## Observações
- O layout do PDF pode ser customizado.