Revision of UBL4J from Thu, 2013-05-16 06:57

ubl4j.png

UBL4J provides a Java implementation for Universal Business Language (UBL) Order to Invoice process. Given an UBL order document, it produces an UBL invoice document and renders its output to TeX, PDF or HTML formats. UBl4J uses the order document country and language information to tailor locale-sensitive invoices. Form more information, consult http://openinvoice.org/ubl4j/.

Comand-line Examples

UBL4J is meant to serve as a framework or library, refer to Open Invoice documentation to see how you can use UBL4J as a building block of your own application. But UBL4J can also be invoked via the command-line, as shown in the following examples.

Transform an order to an invoice (in PDF format)

Given an order, it creates an invoice and renders its content to PDF output. '-o' option is used to specify the invoice output path. '-f' option is used to specify the output format. HTML, PDF, and TeX formats are supported.

$ java -jar ubl4j-<version>.jar -c MyOrder.xml -f PDF -o MyInvoice.pdf

 

Transform an order to an invoice (in TeX format)

Given an order, it creates an invoice and renders its output to TeX format. '-t' option is used to specify the TeX template.

$ java -jar ubl4j-<version>.jar -c MyOrder.xml -f TEX -t MyTexTemplate.tex

 

XML.org Focus Areas: BPEL | DITA | ebXML | IDtrust | OpenDocument | SAML | UBL | UDDI
OASIS sites: OASIS | Cover Pages | XML.org | AMQP | CGM Open | eGov | Emergency | IDtrust | LegalXML | Open CSA | OSLC | WS-I