from satcfdi.cfdi import CFDI
from satcfdi import render


# from file
invoice = CFDI.from_file('stamp.xml')


# PDF
pdf = render.pdf_bytes(invoice)
# save to file
render.pdf_write(invoice, "1290_comprobante_.pdf")
