Diff for UBL4J

Thu, 2013-05-16 06:43 by jhe@plainsource.comThu, 2013-05-16 06:51 by jhe@plainsource.com
Changes to Description
 
</h2>
 
</h2>
 
<p>
 
<p>
-
&nbsp;
+
UBL4J is meant to serve as a framework or library, refer to <a href="http://www.openinvoice.org" target="_blank" title="Open Invoice">Open Invoice</a> 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.
 
</p>
 
</p>
 
<h3 class="plaintext">Transform an order to an invoice (in PDF format) </h3>
 
<h3 class="plaintext">Transform an order to an invoice (in PDF format) </h3>
 
</pre>
 
</pre>
 
<p class="plaintext">
 
<p class="plaintext">
-
&nbsp;
  
-
</p>
  
-
<p class="plaintext">
  
-
&nbsp;
  
-
</p>
  
-
<p>
  
-
&nbsp;
  
-
</p>
  
-
<p>
  
-
&nbsp;
  
-
</p>
  
-
<p>
  
-
&nbsp;
  
-
</p>
  
-
<p>
  
 
&nbsp;
 
&nbsp;
 
</p>
 
</p>
 
 
Revision of Thu, 2013-05-16 06:51:

UBL4J

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