# Convert a UBL invoice to PDF

Drop the UBL Invoice or CreditNote XML and get a PDF invoice laid out the way an invoice looks: every line, the VAT summary and a totals check against the source. UBL is the syntax your software speaks; this page is for the colleague who has to check it.

Source: https://tally-stick.com/ubl-invoice-to-pdf

## One syntax, many national rules

The same UBL 2.1 structure carries a German XRechnung, a Dutch NLCIUS document, a Peppol BIS invoice and the PINT variants used in Japan, Singapore, Malaysia, the UAE and Australia. The reader looks at the document root, not a country code, so all of them render here. The PDF states the currency it found instead of assuming euros.

## What you get out

- Seller and buyer parties with VAT and legal registration identifiers
- Invoice number, issue and due date, currency and buyer reference
- Every line with quantity, unit, unit price, VAT rate and net amount
- VAT per rate with its taxable base, down to the amount due
- Payment means, IBAN and payment terms when the file carries them

## Questions

### Which UBL documents does it take?

Invoice, CreditNote, DebitNote, SelfBilledInvoice and FreightInvoice. A credit note is titled as one rather than being printed as an invoice with negative figures.

### Does a non-euro invoice come out right?

Yes. The currency is read from the file and its minor units follow ISO 4217, so a JPY invoice prints whole yen and does not gain two decimals it never had.

### Is anything sent to a server?

No. The XML is parsed and the PDF is written in this tab. Closing it is all the cleanup there is.

## Related

- [UBL to Excel](https://tally-stick.com/ubl-invoice-to-excel)
- [UBL to JSON](https://tally-stick.com/ubl-to-json)
- [Peppol BIS to PDF](https://tally-stick.com/peppol-bis-to-pdf)
- [CII to PDF](https://tally-stick.com/cii-to-pdf)

## How it works

The invoice is read on your own device. No file is uploaded, no account is required, and the fair usage limit is the only cap. Exports are PDF, Excel, CSV and JSON.
