<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V1.1//EN" "document-v11.dtd">
<document>
  <header>
    <title>Barcode4J examples</title>
    <authors>
      <person id="jmaerki" name="Jeremias Märki" email="jmaerki@users.sourceforge.net"/>
    </authors>
  </header>
  <body>
    <p>
      The directory <code>examples/</code> in the distribution contains some example files 
      that show what <strong>Barcode4J</strong> can do.
    </p>
    <section>
      <title>Example PDF</title>
      <p>
        The directory <code>examples/xsl-fo/</code> contains an XML file with barcode instructions 
        (<code>barcodes.xml</code>) and an associated stylesheet (<code>barcodes2xsl-fo.xsl</code>) that converts the XML
        file to XSL-FO.
      </p>
      <p>
        The resulting PDF generated by <fork href="ext:fop">Apache FOP</fork>: 
        <fork href="barcode-examples.pdf"><img src="skin/images/pdfdoc.gif" alt="PDF document"/> view</fork>
        (around 102KB)</p>
    </section>
    <section>
    	<title>Example Web Application</title>
      <p>
        The directory <code>examples/webapp/</code> contains an sample web application that provides an
        interactive demo for barcode generation with the Barcode Servlet. It is written using JSP. The
        build generates the web application by default. To play with it just drop the 
      	<code>build/barcode4j.war</code> file in your favourite web container.
      </p>
    </section>
    <section>
      <title>Preview of all supported barcode symbologies</title>
      <table>
        <caption>PNG and SVG versions</caption>
        <tr>
          <th>Barcode type</th>
          <th>PNG graphic</th>
          <!--th>SVG graphic</th-->
        </tr>
        <tr>
          <td id="interleaved2of5">Interleaved 2 of 5</td>
          <td><img src="images/example-intl2of5.png" alt="Sample Interleaved 2 of 5 barcode (PNG)"/></td>
          <!--td><fork href="images/example-intl2of5.svg">view SVG version</fork></td-->
        </tr>
        <tr>
          <td id="itf-14">ITF-14 (new)</td>
          <td><img src="images/example-itf-14.png" alt="Sample ITF-14 (PNG)" width="20%"/></td>
          <!--td><fork href="images/example-intl2of5.svg">view SVG version</fork></td-->
        </tr>
        <tr>
          <td id="code39">Code 39</td>
          <td><img src="images/example-code39.png" alt="Sample Code 39 barcode (PNG)"/></td>
          <!--td><fork href="images/example-code39.svg">view SVG version</fork></td-->
        </tr>
        <tr>
          <td id="code128">Code 128</td>
          <td><img src="images/example-code128.png" alt="Sample Code 128 barcode (PNG)"/></td>
          <!--td><fork href="images/example-code128.svg">view SVG version</fork></td-->
        </tr>
        <tr>
          <td id="codabar">Codabar</td>
          <td><img src="images/example-codabar.png" alt="Sample Codabar barcode (PNG)"/></td>
          <!--td><fork href="images/example-codabar.svg">view SVG version</fork></td-->
        </tr>
        <tr>
          <td id="upc-A">UPC-A</td>
          <td><img src="images/example-upc-a.png" alt="Sample UPC-A barcode (PNG)"/></td>
          <!--td><fork href="images/example-upc-a.svg">view SVG version</fork></td-->
        </tr>
        <tr>
          <td id="upc-E">UPC-E</td>
          <td><img src="images/example-upc-e.png" alt="Sample UPC-E barcode (PNG)"/></td>
          <!--td><fork href="images/example-upc-e.svg">view SVG version</fork></td-->
        </tr>
        <tr>
          <td id="ean-13">EAN-13</td>
          <td><img src="images/example-ean-13.png" alt="Sample EAN-13 barcode (PNG)"/></td>
          <!--td><fork href="images/example-ean-13.svg">view SVG version</fork></td-->
        </tr>
        <tr>
          <td id="ean-8">EAN-8</td>
          <td><img src="images/example-ean-8.png" alt="Sample EAN-8 barcode (PNG)"/></td>
          <!--td><fork href="images/example-ean-8.svg">view SVG version</fork></td-->
        </tr>
        <tr>
          <td id="postnet">POSTNET</td>
          <td><img src="images/example-postnet.png" alt="Sample POSTNET barcode (PNG)"/></td>
          <!--td><fork href="images/example-postnet.svg">view SVG version</fork></td-->
        </tr>
        <tr>
          <td id="royal-mail-cbc">Royal Mail Customer Barcode</td>
          <td><img src="images/example-royal-mail-cbc.png" alt="Sample Royal Mail Customer barcode (PNG)"/></td>
          <!--td><fork href="images/example-royal-mail-cbc.svg">view SVG version</fork></td-->
        </tr>
        <tr>
          <td id="usps4cb">USPS Intelligent Mail</td>
          <td><img src="images/example-usps4cb.png" alt="Sample USPS Intelligent Mail barcode (PNG)"/></td>
          <!--td><fork href="images/example-royal-mail-cbc.svg">view SVG version</fork></td-->
        </tr>
        <tr>
          <td id="pdf417">PDF417</td>
          <td><img src="images/example-pdf417.png" alt="Sample PDF417 symbol (PNG)"/></td>
          <!--td><fork href="images/example-pdf417.svg">view SVG version</fork></td-->
        </tr>
        <tr>
          <td id="datamatrix">DataMatrix (square)</td>
          <td><img src="images/example-datamatrix-square.png" alt="Sample DataMatrix symbol (PNG)"/></td>
          <!--td><fork href="images/example-datamatrix-square.svg">view SVG version</fork></td-->
        </tr>
        <tr>
          <td id="datamatrix-rect">DataMatrix (rectangular)</td>
          <td><img src="images/example-datamatrix-rect.png" alt="Sample DataMatrix symbol (PNG)"/></td>
          <!--td><fork href="svg/example-datamatrix-rect.svg">view SVG version</fork></td-->
        </tr>
      </table>
    </section>
  </body>
</document>
