• Post Reply Bookmark Topic Watch Topic
  • New Topic

Barcode in PDF  RSS feed

 
Dennis Smith V
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So I'm trying to put a barcode into a PDF. So far it "kinda" works. I'm using zxing and pdfbox.

This places a barcode on the PDF, but it the barcode looks more like a maze. It's not filled in correct. I've saved the image alone and it looks fine.

Anyone do this? I would prefer *not* to have to make this a 2 step process.. ie make the image save it on the file system, then insert it into a pdf. I'd be open to using a different PDF generation lib (not GNU) if someone knows a better one.

Thank you for any assistance.



 
Sridhar Santhanakrishnan
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How about using iText?
 
Dennis Smith V
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So iText totally works. Problem being its GNU licensed, meaning they could try to get the source code for my web app. Hell I'd be happy to just pay for the thing but they don't even have prices on thier website. You know the old saying if you have to ask how much something is, you cannot afford it.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use iText 2 instead; it does just about anything iText 5 does, and is licensed under the GPL instead of the Affero, so you don't have to worry about the code.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!