xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From TvT <tvtre...@nepatec.de>
Subject Re: Free 3 of 9
Date Thu, 18 Apr 2013 09:08:23 GMT
2013/4/18 nels <nbhchan@gmail.com>

> barcode Free 3 of 9 fonts



Hi,

are you using barcode4j?
The examples are here: http://barcode4j.sourceforge.net/examples.html

If you then open the exampe you will find:

  <xsl:variable name="barcode-cfg">
                          <barcode>
                            <code128>
                              <human-readable>none</human-readable>
                              <height>8mm</height>
                              <quiet-zone enabled="false"/>
                            </code128>
                          </barcode>
                        </xsl:variable>
                        <xsl:copy-of select="barcode:generate($barcode-cfg,
/invoice/header/invoicenr)"/>

Depending on the type of barcode (for you code 39) you can use different
options:

http://barcode4j.sourceforge.net/2.1/barcode-xml.html

<barcode message="123456789
<http://barcode4j.sourceforge.net/2.1/barcode-xml.html#string>">
  <code39 <http://barcode4j.sourceforge.net/2.1/symbol-code39.html>>
    <height>15mm
<http://barcode4j.sourceforge.net/2.1/barcode-xml.html#length></height>
    <module-width>0.19mm
<http://barcode4j.sourceforge.net/2.1/barcode-xml.html#length></module-width>
    <wide-factor>2.5
<http://barcode4j.sourceforge.net/2.1/barcode-xml.html#number></wide-factor>
    <interchar-gap-width>1mw
<http://barcode4j.sourceforge.net/2.1/barcode-xml.html#length></interchar-gap-width>
    <quiet-zone enabled="true
<http://barcode4j.sourceforge.net/2.1/barcode-xml.html#boolean>">10mw
<http://barcode4j.sourceforge.net/2.1/barcode-xml.html#length></quiet-zone>
    <checksum>auto
<http://barcode4j.sourceforge.net/2.1/barcode-xml.html#checksum-mode></checksum>
    <human-readable>
      <placement>bottom
<http://barcode4j.sourceforge.net/2.1/barcode-xml.html#human-readable-placement></placement>
      <font-name>Helvetica
<http://barcode4j.sourceforge.net/2.1/barcode-xml.html#font-name></font-name>
      <font-size>8pt
<http://barcode4j.sourceforge.net/2.1/barcode-xml.html#length></font-size>
      <pattern>{string}
<http://barcode4j.sourceforge.net/2.1/barcode-xml.html#string></pattern>
<!-- see below <http://barcode4j.sourceforge.net/2.1/barcode-xml.html#pattern>
for details -->
      <display-start-stop>false
<http://barcode4j.sourceforge.net/2.1/barcode-xml.html#boolean></display-start-stop>
      <display-checksum>false
<http://barcode4j.sourceforge.net/2.1/barcode-xml.html#boolean></display-checksum>
    </human-readable>
  </code39 <http://barcode4j.sourceforge.net/2.1/symbol-code39.html>>
</barcode>

Regards,
ToM

Mime
View raw message