Yes, I agree with you.
I was trying to import the barcode font but without success.
Do you know how to use it?
I was trying something like:
font_name = HPDF_LoadTTFontFromFile( pdf, "c:\pdf\code128.ttf",
HPDF_TRUE )
def_font3 := HPDF_GetFont( pdf, font_name, "WinAnsiEncoding" )
Any help will be highly appreciated.
Regards,
Qatan
Qatan
Best Regard
David.
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: http://groups.google.com/group/harbour-users
I tested the way you mentioned but it does not load the TTF font and
when it happens it does not create the PDF file.
Seems that LibHaru does not have support for barcodes yet but I am sure
there is someway around it to make it to work. IMO it is a must to have
feature since barcodes are widely used in many places/situations.
Thanks for your suggestion and help.
Qatan
Qatan,
Best Regards,
David
> > But I don�t have any idea how to use it to create a barcode
Fivewin developers using Cayetano's codebar lib, provided with sources. Do
not use codebar fonts.
Regards
Hi David and All,
Viktor
--
I've found this.
http://www.zint.org.uk/zintSite/Manual.aspx?page=1
Hope it helps
Maurizio
El 21/10/2010 08:21 a.m., vszakats escribi�:
It is a new problem to me and I am happy to get such a response from the
group.
It seems that the final solution and maybe the best one would be to
create harbour function to actually draw the barcodes and use that tool
instead of fonts BUT right now it is not a close solution for my situation
and I would be pleased to try the "tranformed" font solution although it
seems an ugly solution. Anyway will help me greately.
Is there any way I could send or point to you where to get the free
barcode and you transform it to me in your tool and send me back so I would
test it to see it it would work for me.
The best place I've found to get fonts and information about barcode is
this one: http://grandzebu.net/index.php The website is in Frech but there
is a English flag for English version. You will get a list of useful free
barcodes.
Other good place for free fonts: http://www.fonts4free.net/
I hope it will be useful for others too.
Thanks for all your efforts.
Qatan
----- Original Message -----
From: "David MS" <da...@gesintur.com>
To: "Harbour Users" <harbou...@googlegroups.com>
Sent: Thursday, 21 de October de 2010 05:36
Subject: [harbour-users] Re: LibHaru - PDF with Barcode 128C
Probably that would be the right solution...
Thanks for bringing ideas... it may be helpful.
I will look into it.
Regards
Qatan
----- Original Message -----
From: "alcisoft" <alci...@arrakis.es>
To: <harbou...@googlegroups.com>
Thanks for helping with more alternatives.
This is not really the final solution but will certainly help until it
comes.
Regards,
Qatan
I've found this.
Maurizio
--
It works well with LibHaru.
I know it is not a nice solution. The best thing would be create the
barcode from inside harbour application without having to depend on TTF
font. Also it is not portable.
Anyway it will help me for now since I do not have enough time to jump
on other project to make barcode but it is something to-do for sure.
Unfortunately I have to use Code 128 type "C" on this particular
project.
Thanks for your great help.
Qatan
----- Original Message -----
From: "David MS" <da...@gesintur.com>
To: "Harbour Users" <harbou...@googlegroups.com>
Sent: Thursday, 21 de October de 2010 15:33
Subject: [harbour-users] Re: LibHaru - PDF with Barcode 128C
>
I was reading about Zint and tried the Command Line utility.
It is very nice!
Maybe what we could do is to use their barcode expertise and introduce
it in Harbour as the solution for any barcode need.
Since barcodes are something very specific and specialized I belive it
should be used this way: By using a tool that will integrate into Harbour.
I also looked a bit into
http://www.gnu.org/software/barcode/barcode.html but I liked the Zint
because covers a lot o barcode types and seems to be very specialized.
I do not know "C" but I know Zint is written in "C" and it is
distribuited under GNU General Public License version 3.
I know it would be a huge task to create a Harbour wrapper to it but
seems a good solution.
Any comments?
Qatan
----- Original Message -----
From: "Maurizio Faccio adinet" <mau...@adinet.com.uy>
I've found this.
Maurizio
--
Look this comparation table:
http://www.zint.org.uk/zintSite/Comparison.aspx
Zint is very complete, written in "C" with API documented in their site,
portable, seems to be a good solution.
Regards,
Qatan
----- Original Message -----
From: "Maurizio Faccio adinet" <mau...@adinet.com.uy>
To: <harbou...@googlegroups.com>
Sent: Thursday, 21 de October de 2010 10:07
I've found this.
Maurizio
--
> Look this comparation table:
> http://www.zint.org.uk/zintSite/Comparison.aspx
> Zint is very complete, written in "C" with API documented in their site,
> portable, seems to be a good solution.
The license is not suitable for commercial work.
--
Alex
> The license is not suitable for commercial work.
Are you sure? AFAIK you can distribuite any GPL program that you use in you
program (may be a library or part of it), commercialy withou any problems
and that you should make your customers aware they have their rights under
the GPL and to make souce code of the Fress Software Foundation freely
available (in your website or upon their request on any media). I am not
sure you should make your own work available since you are using other parts
(like Harbour itself under different license)...
I don�t think this is the right place to discuss about GPL but I really
would like to understand about it, please correct me if I am wrong.
Any information would be apprecitated.
Qatan
>I yet said I see more advantages in the drawing of bars, but the
>reality is that at this point to that library does not exist or not
>have implement today in haru. So I sent you a workable solution.
I agree with that and really thank you for helping with your workable
solution. I am using it right now!
I found other sugestion from Maurizio a good one too:
http://www.zint.org.uk/zintSite/Manual.aspx?page=1 and I am trying it too.
>Anyway there is one thing to consider is the loss of information in
>bar method, I mean:
>
>When you write a string with a bar font information is accessible both
>visually (by a scanner) and parsing the file. In contrast, if you use
>bunch of rectangles this information will be only accessible by a
>scanner or an external application that simulate a scanner (pay
>required of course) or you have to force the rewriting of the code
>either visually (eg code below) or hidden writing (pretty ugly). I
>don't know if can be other alternatives to this.
I am not sure I understood but I belive it would work as well:
Font solution:
1) select the font: HPDF_Page_SetFontAndSize( page, font, size )
2) print the string: HPDF_Page_TextOut( page, col, lin, string )
Rectangle solution (just an example):
1) execute a function:
HPDF_Page_DrawImage( page, CreateBarCodeImage( string ), col, lin, sizeup,
sizeright )
In both cases you will have "string".
Am I wrong? Please correct me or point to what would not work so I can
understand what you mean
>In this scenario, imagine you have to parse a file and get all the
>codes contained in, or search for a particular code from multiple PDF
>files.
I would recommend to create the PDF with the string (under) the barcode to
help with the search...
>Using fonts, if you write "hello" does not matter if you use Arabic,
>ancient Greek or bar codes ... information is reachable both by the
>search tool in your PDF viewer or any application. (Eg the search tool
>of your O.S).
Well, not sure again but the string must to be transfored in other code to
be printed as Barcode.
Example: 123123123123123 will look like: �,?7,?7,�3�� so it will correspond
to the barcode fonts that represent the string 123123123123123.
I am not trying to argue with you. I really want to understand what you are
trying to say and how to find a good solution and please correct me if I am
wrong.
Qatan
I don't know if it's only a linux bug.
I have also another problem, but I think I don't do it well.
I have compiled a great part of contribs, and put all the libraries
generated (a files) in /usr/local/lib/harbour as root obviously.
I want then to use the function cd() from libhbmisc.
I add -llibhbmisc in my project file (using hbide or manually doesn't
change something)
I have modified group and owner from alain to root, but it doesn't
change anything.
I have this message :
'/tmp/hbmk_lkqu8n.dir/wordstat.o' '/tmp/hbmk_lkqu8n.dir/wrdplace.o'
'/tmp/hbmk_lkqu8n.dir/wselect.o' '/tmp/hbmk_lkqu8n.dir/hbmk_vy2uko.o'
-Wl,--start-group -l'libhbmisc' -l'hbcplr' -l'hbdebug' -l'gpm'
-l'harbour' -Wl,--end-group -o'/opt/TuxPrograms/ClipWord/clipword'
-L'/usr/local/lib/harbour'
/usr/bin/ld: cannot find -llibhbmisc
collect2: ld returned 1 exit status
hbmk2: Error: Running linker. 1
gcc '/tmp/hbmk_lkqu8n.dir/abandon.o' '/tmp/hbmk_lkqu8n.dir/affigril.o'
'/tmp/hbmk_lkqu8n.dir/aide.o' '/tmp/hbmk_lkqu8n.dir/attrchar.o'
'/tmp/hbmk_lkqu8n.dir/boite.o' '/tmp/hbmk_lkqu8n.dir/casblack.o'
'/tmp/hbmk_lkqu8n.dir/clearkey.o' '/tmp/hbmk_lkqu8n.dir/clipscreen.o'
'/tmp/hbmk_lkqu8n.dir/clipword.o' '/tmp/hbmk_lkqu8n.dir/corriger.o'
'/tmp/hbmk_lkqu8n.dir/cw10x10.o' '/tmp/hbmk_lkqu8n.dir/cw10x15.o'
'/tmp/hbmk_lkqu8n.dir/cw15x15.o' '/tmp/hbmk_lkqu8n.dir/cw15x20.o'
'/tmp/hbmk_lkqu8n.dir/cw20x20.o' '/tmp/hbmk_lkqu8n.dir/cwbase.o'
'/tmp/hbmk_lkqu8n.dir/cwindex.o' '/tmp/hbmk_lkqu8n.dir/cwutil.o'
'/tmp/hbmk_lkqu8n.dir/defedit.o' '/tmp/hbmk_lkqu8n.dir/errorsys.o'
'/tmp/hbmk_lkqu8n.dir/fabdef.o' '/tmp/hbmk_lkqu8n.dir/griprint.o'
'/tmp/hbmk_lkqu8n.dir/gristat.o' '/tmp/hbmk_lkqu8n.dir/helpinit.o'
'/tmp/hbmk_lkqu8n.dir/hb_debug.o' '/tmp/hbmk_lkqu8n.dir/importe.o'
'/tmp/hbmk_lkqu8n.dir/inidef.o' '/tmp/hbmk_lkqu8n.dir/iniprd.o'
'/tmp/hbmk_lkqu8n.dir/loadcwf.o' '/tmp/hbmk_lkqu8n.dir/makecwf.o'
'/tmp/hbmk_lkqu8n.dir/modele.o' '/tmp/hbmk_lkqu8n.dir/modniv.o'
'/tmp/hbmk_lkqu8n.dir/okall.o' '/tmp/hbmk_lkqu8n.dir/parmgril.o'
'/tmp/hbmk_lkqu8n.dir/pavcurs.o' '/tmp/hbmk_lkqu8n.dir/pg_menu.o'
'/tmp/hbmk_lkqu8n.dir/playinit.o' '/tmp/hbmk_lkqu8n.dir/playstat.o'
'/tmp/hbmk_lkqu8n.dir/printfile.o' '/tmp/hbmk_lkqu8n.dir/putkey.o'
'/tmp/hbmk_lkqu8n.dir/sayhelp.o' '/tmp/hbmk_lkqu8n.dir/saytime.o'
'/tmp/hbmk_lkqu8n.dir/screen.o' '/tmp/hbmk_lkqu8n.dir/setform.o'
'/tmp/hbmk_lkqu8n.dir/setprint.o' '/tmp/hbmk_lkqu8n.dir/sizecurs.o'
'/tmp/hbmk_lkqu8n.dir/solprint.o' '/tmp/hbmk_lkqu8n.dir/strdate.o'
'/tmp/hbmk_lkqu8n.dir/svgrille.o' '/tmp/hbmk_lkqu8n.dir/svjoueur.o'
'/tmp/hbmk_lkqu8n.dir/wordedit.o' '/tmp/hbmk_lkqu8n.dir/wordstat.o'
'/tmp/hbmk_lkqu8n.dir/wrdplace.o' '/tmp/hbmk_lkqu8n.dir/wselect.o'
'/tmp/hbmk_lkqu8n.dir/hbmk_vy2uko.o' -Wl,--start-group -l'libhbmisc'
-l'hbcplr' -l'hbdebug' -l'gpm' -l'harbour' -Wl,--end-group
-o'/opt/TuxPrograms/ClipWord/clipword' -L'/usr/local/lib/harbour'
----------------------------------------------------------------------------------------------------
Exit Code [ 7 ] Exit Status [ 0 ] Finished at [ 13:17:23 ] Done in [
5.25 Secs ]
----------------------------------------------------------------------------------------------------
I suppose I must launch a ld command with some parameters ?
If somebody can help me.
Thanks
A+
>> The license is not suitable for commercial work.
>
> Are you sure?
I'm pretty sure, if this is authoritative it is pretty clear:
http://www.wikivs.com/wiki/GPL_vs_LGPL say:
GPL and LGPL (GNU General Public License and GNU Lesser General Public
License) are licenses meant to be used in Open Source Software. Both are
created by the GNU Project.
GPL and LGPL protects software and all derivative software from having
their source code hidden from the public. GPL takes the strong stance,
saying that all software that uses the GPL software must itself be open
sourced. This is known as a "reciprocal license" and makes it impossible
for proprietary software developers to use GPL'ed code. In contrast,
LGPL provides an exception to the usage and distribution of the
software, allowing for non-free products to include the LGPL'ed
software. In the GNU Project's own words: "using the Lesser GPL permits
use of the library in proprietary programs; using the ordinary GPL for a
library makes it available only for free programs." [1]
--
Alex
>> Font solution:
>> 1) select the font: HPDF_Page_SetFontAndSize( page, font, size )
>> 2) print the string: HPDF_Page_TextOut( page, col, lin, string )
>>
>no, with font solution will be something like this:
>
>2) print the string: HPDF_Page_TextOut( page, col, lin,
>Stringto128C(string) )
Right! I forgot to put that function that I call "encoder" (may be other
name)
>> Rectangle solution (just an example):
>> 1) execute a function:
>> HPDF_Page_DrawImage( page, CreateBarCodeImage( string ), col, lin,
>> sizeup,
>> sizeright )
>>
>> In both cases you will have "string".
>>
>
>No, with the font solution you can find the string resulting from the
>encoding because they continue being letters and numbers. With the
>solution of the rectangles you just have drawings.
OK, I agree.
>>
>> Well, not sure again but the string must to be transfored in other code
>> to
>> be printed as Barcode.
>> Example: 123123123123123 will look like: �,?7,?7,�3�� so it will
>> correspond
>> to the barcode fonts that represent the string 123123123123123.
>
>Yes, but you can serach for "�,?7,?7,�3��" . In the pdf with
>rectangles you can�t
>It depends de codebar you use, in this case we search for
>Stringto128C("123123123123123") if you use other codification i.e
>codebar 39 you can search for "123123123123123" directly.
Now I understand and agree with your technical point although it is not
important in my specific case (may be important to others, of course). I
would use the other solution, like printing the string under the barcode
image. It would be codebar independant (no encoded strings) and would work
even better for PDF searching (if it would be the case).
>I hope help you.
Be assured of that. I am pleased to discuss the subject with you.
Thank you!
Qatan
Can you see the Project Properties after doubleclick on project name
in Projects frame?
I can see correct Project Properties of active project from menu
Project -> Properties
If you did not open any project, that menu creates empty properties screen.
I am using Ubuntu.
2010/10/24 Alain Aupeix <alain....@wanadoo.fr>:
> --
> You received this message because you are subscribed to the Google
> Groups "Harbour Users" group.
> Unsubscribe: harbour-user...@googlegroups.com
> Web: http://groups.google.com/group/harbour-users
>
--
C уважением,
Дмитрий Олейников
1) right-click on the project name in Project tree << works
2) View >Project Properties in menu << works
3) click on Project properties in toolbar << works
4) Project > Properties in menu << doesn't work
After using 4), 1) and 2) doesn't work anymore, work again if 3) is then
used
So, it's a bug.
A+
I just deleted Zint from my PC. with such a license I don't want to
continue with it.
Anyway it is not the solution.
Seems that someone will have to create a harbour lib to draw bars for
barcode. (maybe myself but such a project is not for now).
Thanks for your help.
Regards,
Qatan
----- Original Message -----
From: "Alex Strickland" <ss...@mweb.co.za>
To: <harbou...@googlegroups.com>
Sent: Friday, 22 de October de 2010 08:53
Subject: Re: [harbour-users] Re: LibHaru - PDF with Barcode 128C
> Seems that someone will have to create a harbour lib to draw bars for
> barcode. (maybe myself but such a project is not for now).
The commercial product they reference looks quite good -
http://www.tec-it.com.
--
Alex
Yes I am grateful for that nice tool too.
A week ago we didnt have a good solution but now we have it.
Its nice to see Harbour growing and becoming more usefull day by day.
Thanks to all those willing to help and to share their knowledge to help
this project.
Hello,Does anyone knows how to use the libHaruPDF to create a PDF with barcode?
I found this on the libHaru dicution group: http://groups.google.com/group/libharu/browse_thread/thread/e538bde730caba44/0265a3ca8fa06529?lnk=gst&q=barcode#0265a3ca8fa06529