PrintBarcode and PDFBarcode Library
- Psychophanta
- Addict
- Posts: 4996
- Joined: Wed Jun 11, 2003 9:33 pm
- Location: Lípetsk, Russian Federation
- Contact:
Thanks ABB!
Now waiting for 2-Dimensional barcodes
Now waiting for 2-Dimensional barcodes
http://www.zeitgeistmovie.com
While world=business:world+mafia:Wend
Will never leave this forum until the absolute bugfree PB
While world=business:world+mafia:Wend
Will never leave this forum until the absolute bugfree PB
Re: PrintBarcode and PDFBarcode Library
Update :
- PurePDFBarcode version 1.04 for PureBasic 4.5x x86
- PrintBarcode version 1.09 for PureBasic 4.5x x86
- DoubleDutch
- Addict
- Posts: 3219
- Joined: Thu Aug 07, 2003 7:01 pm
- Location: United Kingdom
- Contact:
Re: PrintBarcode and PDFBarcode Library
Thanks for the update.
Psychophanta: +1
Psychophanta: +1
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
https://reportcomplete.com <- School end of term reports system
- Psychophanta
- Addict
- Posts: 4996
- Joined: Wed Jun 11, 2003 9:33 pm
- Location: Lípetsk, Russian Federation
- Contact:
Re: PrintBarcode and PDFBarcode Library
Yeah! Thanks for the update.
http://www.zeitgeistmovie.com
While world=business:world+mafia:Wend
Will never leave this forum until the absolute bugfree PB
While world=business:world+mafia:Wend
Will never leave this forum until the absolute bugfree PB
Re: PrintBarcode and PDFBarcode Library
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
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
my live space
Re: PrintBarcode and PDFBarcode Library
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 :
BR Klaus
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)
- Thorsten1867
- Addict
- Posts: 1366
- Joined: Wed Aug 24, 2005 4:02 pm
- Location: Germany
Re: PrintBarcode and PDFBarcode Library
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.
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.
Translated with http://www.DeepL.com/Translator
Download of PureBasic - Modules
Download of PureBasic - Programs
[Windows 11 x64] [PB V5.7x]
Download of PureBasic - Modules
Download of PureBasic - Programs
[Windows 11 x64] [PB V5.7x]
Re: PrintBarcode and PDFBarcode Library
update :
- added barcode width calculation
See first post for more details.
BR Klaus
- added barcode width calculation
See first post for more details.
BR Klaus
- Thorsten1867
- Addict
- Posts: 1366
- Joined: Wed Aug 24, 2005 4:02 pm
- Location: Germany
Re: PrintBarcode and PDFBarcode Library
Great! Thanks!
Translated with http://www.DeepL.com/Translator
Download of PureBasic - Modules
Download of PureBasic - Programs
[Windows 11 x64] [PB V5.7x]
Download of PureBasic - Modules
Download of PureBasic - Programs
[Windows 11 x64] [PB V5.7x]
Re: PrintBarcode and PDFBarcode Library
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
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
Regards Stone Oakvalley
Currently @ PB 5.70
Currently @ PB 5.70
Re: PrintBarcode and PDFBarcode Library
@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
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
-
- Always Here
- Posts: 6425
- Joined: Fri Oct 23, 2009 2:33 am
- Location: Wales, UK
- Contact:
Re: PrintBarcode and PDFBarcode Library
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.
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.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
If it sounds simple, you have not grasped the complexity.
-
- Always Here
- Posts: 6425
- Joined: Fri Oct 23, 2009 2:33 am
- Location: Wales, UK
- Contact:
Re: PrintBarcode and PDFBarcode Library
...in fact, PB5.50's new vector drawing lib looks ideal for barcodes since the line thickness (stroke) can be accurately controlled.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
If it sounds simple, you have not grasped the complexity.
Re: PrintBarcode and PDFBarcode Library
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!
VectorLib idea seems like an interresting approach!
Regards Stone Oakvalley
Currently @ PB 5.70
Currently @ PB 5.70
-
- Always Here
- Posts: 6425
- Joined: Fri Oct 23, 2009 2:33 am
- Location: Wales, UK
- Contact:
Re: PrintBarcode and PDFBarcode Library
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
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
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
If it sounds simple, you have not grasped the complexity.