https://github.com/wr2net/nfse-pdf-api
API 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
docker docker-compose nodejs pdf php xml
Last synced: 2 months ago
JSON representation
API 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 (12 months ago)
- Default Branch: master
- Last Pushed: 2025-07-22T02:31:33.000Z (11 months ago)
- Last Synced: 2025-07-22T02:42:43.671Z (11 months ago)
- Topics: docker, docker-compose, nodejs, pdf, php, xml
- Language: JavaScript
- Homepage: https://nf-pdf.fawacom.com.br
- Size: 53.8 MB
- Stars: 1
- 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 NFSe
Exemplo 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.