Skip to content

Commit

Permalink
Merge pull request #14 from Engenere/update-readme1
Browse files Browse the repository at this point in the history
Update readme
  • Loading branch information
antoniospneto authored May 3, 2024
2 parents c43834b + 7f465e1 commit 28938ea
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,27 @@ danfe.output('danfe.pdf')
```
### DACCe

TODO
```python
from brazilfiscalreport.dacce import DaCCe

# Path to the XML file
xml_file_path = 'cce.xml'

# Load XML Content
with open(xml_file_path, "r", encoding="utf8") as file:
xml_content = file.read()

# Instantiate the CC-e PDF object with the loaded XML content
cce = DaCCe(xml=xml_content)

# Save the generated PDF to a file
cce.output('cce.pdf')
```

## Samples

## Demostration
Some sample PDFs generated by our unit tests are available for viewing in the [tests/generated](https://github.com/Engenere/BrazilFiscalReport/tree/main/tests/generated) directory.

Some sample DANFEs generated by our unit tests can be viewed in the [tests/generated](https://github.com/Engenere/BrazilFiscalReport/tree/main/tests/generated) directory.
## Customizing DANFE

This section describes how to customize the PDF output of the DANFE using the ``DanfeConfig`` class. You can adjust various settings such as margins, fonts, and tax configurations according to your needs.
Expand Down

0 comments on commit 28938ea

Please sign in to comment.