Page 2 of 2
Posted: Tue Jan 06, 2009 9:41 pm
by Psychophanta
Thanks ABB!
Now waiting for 2-Dimensional barcodes

Re: PrintBarcode and PDFBarcode Library
Posted: Mon Apr 05, 2010 9:21 pm
by ABBKlaus
Re: PrintBarcode and PDFBarcode Library
Posted: Mon Apr 05, 2010 9:46 pm
by DoubleDutch
Thanks for the update.
Psychophanta: +1
Re: PrintBarcode and PDFBarcode Library
Posted: Thu Apr 08, 2010 1:31 pm
by Psychophanta
Yeah! Thanks for the update.
Re: PrintBarcode and PDFBarcode Library
Posted: Mon Oct 24, 2011 9:44 am
by nicolaus
Hi ABBKlaus,
i have a problem with barcode as CODE128 and a FNC3.
i will create barcodes what start with FNC3, how i can do this with your libs?
Can you show me a smal example?
Thanks and regards,
Nico
Re: PrintBarcode and PDFBarcode Library
Posted: Mon Oct 24, 2011 5:49 pm
by ABBKlaus
Hi Nicolaus,
please have a look at the sourcecode for label "print_barcode_code128:", there you will find the translationtable for the codesets A / B / C.
FNC3 will be equal to 96 :
Code: Select all
pdf_Barcode_Code128(x,y, Chr(96)+"B123456789",h1,w3,#PDF_TEXT_BOTTOM|#PDF_TEXT_RIGHT,xoffset,yoffset,#PDF_BARCODE_CODE128_AUTO)
BR Klaus
Re: PrintBarcode and PDFBarcode Library
Posted: Sat Jan 14, 2012 3:55 pm
by Thorsten1867
Hi!
How can I center the barcode on a label (or calculate the width)?
The width seems to be different, if I create barcodes with numbers from 1 to 20.
Re: PrintBarcode and PDFBarcode Library
Posted: Mon Jan 23, 2012 4:16 pm
by ABBKlaus
update :
- added barcode width calculation
See first post for more details.
BR Klaus
Re: PrintBarcode and PDFBarcode Library
Posted: Mon Jan 23, 2012 4:19 pm
by Thorsten1867
Great! Thanks!

Re: PrintBarcode and PDFBarcode Library
Posted: Tue Sep 16, 2014 7:36 am
by oakvalley
Hi AbbKlaus,
Your PrintBarcode and PDFBarcode Library are really great! Thanks for making them available.
However, I believe there is a bug regarding CODE128. I'm unable to use space characters in my text, but its possible for CODE39.
Example CODE128 AUTO - space not included, missing:
[code]
chars_cm.f= 1.4652
pdf_Create("P","mm","1700.99,566.99")
pdf_AddPage()
pdf_SetFont("Arial","",20)
w.f=pdf_Barcode_Code128(10,40,"THIS IS A TEST",40,chars_cm.f,#PDF_TEXT_TOP|#PDF_TEXT_RIGHT,0.2,1,#PDF_BARCODE_CODE128_AUTO)
pdf_Text(20,80,barcode$)
Define File$="Tutorial01 Barcodes.pdf"
pdf_Save(File$)
RunProgram(File$)
[/code]
Example CODE39 - same code, but space is visible:
[code]
chars_cm.f= 1.4652
pdf_Create("P","mm","1700.99,566.99")
pdf_AddPage()
pdf_SetFont("Arial","",20)
w.f=pdf_Barcode_Code39(10,40,"THIS IS A TEST",40,chars_cm.f,#PDF_TEXT_TOP|#PDF_TEXT_RIGHT,0.2,1,#False)
pdf_Text(20,80,barcode$)
Define File$="Tutorial01 Barcodes.pdf"
pdf_Save(File$)
RunProgram(File$)
[/code]
In addition, I believe that the error? for CODE128 not accepting space also makes the checksum wrong.
The barcode graphics does not look the same if using other alternative barcode programs/web plugins with the same CODE128 and set to AUTO.
Regards Stone
Re: PrintBarcode and PDFBarcode Library
Posted: Tue Dec 16, 2014 10:58 pm
by ABBKlaus
@oakvalley,
you are right, its a bug.
Bugfixed Versions can be downloaded here (Sources only) :
http://purebasicpower.de/downloads/PDFBarcode105.ZIP
http://purebasicpower.de/downloads/PrintBarcode110.ZIP
Regards
Klaus
Re: PrintBarcode and PDFBarcode Library
Posted: Wed Sep 28, 2016 11:06 pm
by IdeasVacuum
Hello Klaus
Do you intend to update these libs for PB5.43LTS and PB5.50?
I see PrinterLib is needed too. PurePdf (source) is working fine with PB5.43LTS.
Re: PrintBarcode and PDFBarcode Library
Posted: Sun Oct 02, 2016 10:27 pm
by IdeasVacuum
...in fact, PB5.50's new vector drawing lib looks ideal for barcodes since the line thickness (stroke) can be accurately controlled.
Re: PrintBarcode and PDFBarcode Library
Posted: Thu Oct 06, 2016 2:45 pm
by oakvalley
I hope the libs gets updated, in fact, because of the CODE128 error I reported, I had to use external Zint Barcode Generator (batch files and some tricks) to create barcodes instead in my "not final yet" project here at work.
VectorLib idea seems like an interresting approach!
Re: PrintBarcode and PDFBarcode Library
Posted: Fri Oct 07, 2016 12:59 pm
by IdeasVacuum
The vector lib is looking very good for the job, works great in fact. I think using GDI+ would probably be equal for this purpose.
I knew nothing about bar codes before and they are an oxymoron - in essence very easy but there is a lot of detail needed to meet the required standards.
Found this site useful:
https://www.gs1uk.org/support/our-stand ... ds-library