You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Jeremias Maerki <de...@jeremias-maerki.ch> on 2010/12/15 10:21:28 UTC

[ANN] Barcode4J 2.1 released

About Barcode4J
======================================

Barcode4J is a barcode generation package written in Java 
and available under The Apache License version 2.0.

Features
======================================

1D barcode implementations:
- Interleaved 2 of 5
- ITF-14
- Code 39
- Codabar
- Code 128, EAN-128
- UPC-A and UPC-E (with supplementals)
- EAN-13 and EAN-8 (with supplementals)

Postal barcode implementations:
- POSTNET
- Royal Mail Customer Barcode
- USPS Intelligent Mail (4-State Customer Barcode)

2D symbologies:
- PDF417
- DataMatrix

Support for multiple output formats:
- SVG
- EPS (Encapsulated PostScript)
- Bitmap images (such as PNG or JPEG)
- Java2D (AWT)
- Text (for testing and debugging only)

Additional features:
- Two APIs (XML-oriented and Bean-style)
- Servlet with support for SVG, EPS and bitmap output
- Command-line interface
- Demonstration applet

Plug-ins/extensions for third-party products:
- Apache Xalan: SVG-generating XSLT extension
- The SAXON XSLT Processor from Michael Kay: SVG-generating XSLT extension
- Apache FOP: support as fo:instream-foreign-object
- Apache XML Graphics Commons: Image Loader Framework

For more information about Barcode4J, please visit:
http://barcode4j.sourceforge.net

Release Notes
======================================

Version 2.1 is a feature and bugfix release. The most important changes
are:
- ITF-14 support
- a plug-in for the image loading framework in Apache XML Graphics
Commons (which is used by Apache FOP 0.95 and later). This restores
compatibility of Barcode4J with Apache FOP 1.0.
- An Apache Ant task
- OSGi metadata for the main JARs
- a number of fixes for PDF417 

The detailed change log can be found here:
http://barcode4j.sourceforge.net/changes.html

Enjoy!
Jeremias Maerki

Re: Royal mail example Barcode 4J and FOP 1.0 and higher

Posted by John Kattestaart <jk...@gmail.com>.
Yes you're right...
but still gives the same error.

However playing with the checksum option gives a resiult now.

Thanks Eric


John Kattestaart
jkattestaart@gmail.com


2012/10/24 Amick, Eric <Er...@mail.house.gov>:
> I may be way off base, but don't the child elements in <bc:royal-mail-cbc>
> need the bc prefix as well?
>
>
>
> Eric Amick   Systems Engineer II
>
> Legislative Computer Systems
>
>
>
>> -----Original Message-----
>
>> From: jkattestaart [mailto:jkattestaart@gmail.com]
>
>> Sent: Wednesday, October 24, 2012 2:43
>
>> To: fop-users@xmlgraphics.apache.org
>
>> Subject: Royal mail example Barcode 4J and FOP 1.0 and higher
>
>>
>
>> Hello,
>
>>
>
>> I'm trying to te render a royal mail barcode, but i must be doing
>
>> something wrong.
>
>>
>
>>   <fo:block><xsl:apply-templates select="BarcodeOpCo"/></fo:block> ...
>
>>   <xsl:template match="BarcodeOpCo">
>
>>
>
>>      <fo:instream-foreign-object>
>
>>        <bc:barcode xmlns:bc="http://barcode4j.krysalis.org/ns">
>
>>        <xsl:attribute name="message"><xsl:value-of
>
>> select="."/></xsl:attribute>
>
>>          <bc:royal-mail-cbc>
>
>>           <module-width>0.53mm</module-width>
>
>>           <track-height>1.25mm</track-height>
>
>>           <ascender-height>1.25mm</ascender-height>
>
>>           <interchar-gap-width>1mw</interchar-gap-width>
>
>>           <quiet-zone enabled="true">10mw</quiet-zone>
>
>>           <checksum>auto=add</checksum>
>
>>
>
>>          </bc:royal-mail-cbc>
>
>>        </bc:barcode>
>
>>      </fo:instream-foreign-object>
>
>>
>
>>   </xsl:template>
>
>>
>
>> 24-okt-2012 6:40:06 org.apache.fop.events.LoggingEventListener
>
>> processEvent
>
>> SEVERE: The intrinsic dimensions of an instream-foreign-object could
>
>> not be dete rmined. (No context info available)
>
>>
>
>> My xml-file contains    <BarcodeOpCo>1234AB120A</BarcodeOpCo>
>
>>
>
>>
>
>>
>
>>
>
>> --
>
>> View this message in context: http://apache-
>
>> fop.1065347.n5.nabble.com/ANN-Barcode4J-2-1-released-tp16710p37128.html
>
>> Sent from the FOP - Users mailing list archive at Nabble.com.
>
>>
>
>> ---------------------------------------------------------------------
>
>> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
>
>> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


RE: Royal mail example Barcode 4J and FOP 1.0 and higher

Posted by "Amick, Eric" <Er...@mail.house.gov>.
I may be way off base, but don't the child elements in <bc:royal-mail-cbc> need the bc prefix as well?



Eric Amick   Systems Engineer II

Legislative Computer Systems



> -----Original Message-----

> From: jkattestaart [mailto:jkattestaart@gmail.com]

> Sent: Wednesday, October 24, 2012 2:43

> To: fop-users@xmlgraphics.apache.org

> Subject: Royal mail example Barcode 4J and FOP 1.0 and higher

>

> Hello,

>

> I'm trying to te render a royal mail barcode, but i must be doing

> something wrong.

>

>   <fo:block><xsl:apply-templates select="BarcodeOpCo"/></fo:block> ...

>   <xsl:template match="BarcodeOpCo">

>

>      <fo:instream-foreign-object>

>        <bc:barcode xmlns:bc="http://barcode4j.krysalis.org/ns">

>        <xsl:attribute name="message"><xsl:value-of

> select="."/></xsl:attribute>

>          <bc:royal-mail-cbc>

>           <module-width>0.53mm</module-width>

>           <track-height>1.25mm</track-height>

>           <ascender-height>1.25mm</ascender-height>

>           <interchar-gap-width>1mw</interchar-gap-width>

>           <quiet-zone enabled="true">10mw</quiet-zone>

>           <checksum>auto=add</checksum>

>

>          </bc:royal-mail-cbc>

>        </bc:barcode>

>      </fo:instream-foreign-object>

>

>   </xsl:template>

>

> 24-okt-2012 6:40:06 org.apache.fop.events.LoggingEventListener

> processEvent

> SEVERE: The intrinsic dimensions of an instream-foreign-object could

> not be dete rmined. (No context info available)

>

> My xml-file contains    <BarcodeOpCo>1234AB120A</BarcodeOpCo>

>

>

>

>

> --

> View this message in context: http://apache-<http://apache-fop.1065347.n5.nabble.com/ANN-Barcode4J-2-1-released-tp16710p37128.html>

> fop.1065347.n5.nabble.com/ANN-Barcode4J-2-1-released-tp16710p37128.html<http://apache-fop.1065347.n5.nabble.com/ANN-Barcode4J-2-1-released-tp16710p37128.html>

> Sent from the FOP - Users mailing list archive at Nabble.com.

>

> ---------------------------------------------------------------------

> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org<ma...@xmlgraphics.apache.org>

> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org<ma...@xmlgraphics.apache.org>



Royal mail example Barcode 4J and FOP 1.0 and higher

Posted by jkattestaart <jk...@gmail.com>.
Hello,

I'm trying to te render a royal mail barcode, but i must be doing something
wrong.

  <fo:block><xsl:apply-templates select="BarcodeOpCo"/></fo:block>
...
  <xsl:template match="BarcodeOpCo">

     <fo:instream-foreign-object>
       <bc:barcode xmlns:bc="http://barcode4j.krysalis.org/ns">
       <xsl:attribute name="message"><xsl:value-of
select="."/></xsl:attribute>
         <bc:royal-mail-cbc>
          <module-width>0.53mm</module-width>
          <track-height>1.25mm</track-height>
          <ascender-height>1.25mm</ascender-height>
          <interchar-gap-width>1mw</interchar-gap-width>
          <quiet-zone enabled="true">10mw</quiet-zone>
          <checksum>auto=add</checksum>

         </bc:royal-mail-cbc>
       </bc:barcode>
     </fo:instream-foreign-object>

  </xsl:template>

24-okt-2012 6:40:06 org.apache.fop.events.LoggingEventListener processEvent
SEVERE: The intrinsic dimensions of an instream-foreign-object could not be
dete
rmined. (No context info available)

My xml-file contains    <BarcodeOpCo>1234AB120A</BarcodeOpCo>




--
View this message in context: http://apache-fop.1065347.n5.nabble.com/ANN-Barcode4J-2-1-released-tp16710p37128.html
Sent from the FOP - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org