Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Barcode4j - how to customize human readable text?  RSS feed

 
Priti Chawla
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,

I'm using Barcode4j's generate method in XSLT to generate barcodes on customer receipts (PDF format). There is a requirement to customize the human readable text displayed just below the barcode image. The text needs to be enclosed within "*" and should have some letter spacing specified in mm. Can somebody please guide how to achieve this or even better demonstrate with the sample code?

I was also looking at a workaround if somehow we can suppress the text altogether and add the custom text in its place? I've again no clue how to suppress the displayed text. (found some HRP_NONE field of HumanReadableElement which can do that but really not sure how to use this in XSLT) Any ideas in this regard are greatly appreciated.

Thanks,
Mike
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!