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 kumar Bandaru <co...@yahoo.com> on 2005/02/25 13:47:38 UTC

Performace Barcode4j

Hi,
 
Recently,I explored barcode4j  and was successful to render barcode using that with all ur help.We suspended that project for a while and now we are into it again.
 
Just to recap, we were using  IDAutomation fonts to render barcode(EAN8) in our application,but we found it has some limitations like font strectch so we tried barcode4j and it worked great.
 
So we want to explore abt performance as we have decided to go ahead with that,
If iam not wrong,barcode4j creates an image(SVG) to render the barcode in the PDF
we have noticed that it is taking more time to render the image when compared to IDAutomation  fonts.
 
is this the expected behaviour?
 
appreciate your ideas,
 
Thanks

Jeremias Maerki <de...@greenmail.ch> wrote:

On 15.12.2004 12:11:39 kumar Bandaru wrote:
> Wow Wow Wow! I got the barcodes rendered.Thanks for your suggestions.I
> started all over again .it worked.

Good to hear. :-)

> As Barcode4J doesn't need Fonts to render the barcode, The only way to
> increase the barcode size is using the and
> barcode:module-width> ? Iam i right abt this??

Yes.

> What are the defaults barcode4j uses for height and width ??

That depends on the symbology in use. Have a look at the following link
where you can see the defaults for EAN-8 barcodes:
http://barcode4j.krysalis.org/barcode-xml.html#EAN-8

> How can i align the barcode within the cell? I tried with text-align
> property it didnt work.

Hmm, technically an instream-foreign-object behaves much like a
character and therefore you can use text-align for this use case, too.
The following worked fine here (whether this is on the block or on the
table-cell doesn't really matter):







Maybe you are confused because of the quiet zone that is on by default.
The quiet zone is necessary so barcode readers can distiguish the
barcode from nearby stuff. You can switch it off like this, if
necessary:

[..]

[..]


Jeremias Maerki


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


		
---------------------------------
Do you Yahoo!?
 Yahoo! Mail - Easier than ever with enhanced search. Learn more.

Re: Performace Barcode4j

Posted by Jeremias Maerki <de...@greenmail.ch>.
Yes, this is expected behaviour. The path from SVG via Batik to PDF is
suboptimal if speed is an important issue. The SVG generation itself is
very fast, but the conversion from SVG to PDF isn't. In the case of
PostScript output I have a non-standard solution (i.e. doesn't work with
an unmodified FOP 0.20.5) to directly embed the barcode as EPS in the
generated PostScript stream. The same I have started for PDF but only
the painting of the bars is implemented. No human-readable part.

If performance is your biggest concern you need to resort to a barcode
font. There's no faster solution at the moment.

On 25.02.2005 13:47:38 kumar Bandaru wrote:
> Hi,
>  
> Recently,I explored barcode4j  and was successful to render barcode
> using that with all ur help.We suspended that project for a while and
> now we are into it again.
>  
> Just to recap, we were using  IDAutomation fonts to render barcode(EAN8)
> in our application,but we found it has some limitations like font
> strectch so we tried barcode4j and it worked great.
>  
> So we want to explore abt performance as we have decided to go ahead with that,
> If iam not wrong,barcode4j creates an image(SVG) to render the barcode in the PDF
> we have noticed that it is taking more time to render the image when
> compared to IDAutomation  fonts.
>  
> is this the expected behaviour?
>  
> appreciate your ideas,


Jeremias Maerki


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