HPDFPRINT UNICODE

HMG Unicode versions 3.1.x related

Moderator: Rathinagiri

drz
Posts: 10
Joined: Thu Dec 06, 2012 4:00 pm

HPDFPRINT UNICODE

Post by drz »

Hi,
again i have a problem. I am using unicode version of HMG and when i use HPDFPRINT UNICODE statement, printout is not sharp. I enclose a sample.
What am I doing wrong?

Best regards,
Drago
Attachments
Racun.PNG
Racun.PNG (124.53 KiB) Viewed 4239 times
edk
Posts: 909
Joined: Thu Oct 16, 2014 11:35 am
Location: Poland

Re: HPDFPRINT UNICODE

Post by edk »

Hi Drago,
drz wrote: Thu Dec 07, 2017 2:09 pm What am I doing wrong?
Nothing wrong, just look at: http://www.hmgforum.com/viewtopic.php?f=24&t=5393
drz
Posts: 10
Joined: Thu Dec 06, 2012 4:00 pm

Re: HPDFPRINT UNICODE

Post by drz »

I tried
_HMG_HPDF_MULTILINE_PRINT_UNICODE ( _vr-1, _co+119, _vr+35, _co+196, 'Verdana', 7, , UPPER(ls_firma), , , , , , , , )
instead commented line and output is the same.
//@_vr, _co+120 HPDFPRINT UNICODE UPPER(ls_firma) TO _vr+4,_co+194 font 'Verdana' size 7
edk
Posts: 909
Joined: Thu Oct 16, 2014 11:35 am
Location: Poland

Re: HPDFPRINT UNICODE

Post by edk »

In fact, the UNICODE text in HPDF is a graphic.
See function _HMG_HPDF_MULTILINE_PRINT_UNICODE() in the source "h_HMG_HPDF_UNICODE.PRG"
drz
Posts: 10
Joined: Thu Dec 06, 2012 4:00 pm

Re: HPDFPRINT UNICODE

Post by drz »

Thank you very much fot your help edk. As I understand there is no solution print output is as it is.
edk
Posts: 909
Joined: Thu Oct 16, 2014 11:35 am
Location: Poland

Re: HPDFPRINT UNICODE

Post by edk »

Maybe by better DPI of bitmap with Unicode text :?:
Can't You convert yours strings from Unicode to Ansi windows-1250 for hpdf?
User avatar
Rathinagiri
Posts: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: HPDFPRINT UNICODE

Post by Rathinagiri »

Many complex language scripts can't be converted to ANSI.

When I have tried, unicode HaruPDF was not working. I think we can give another try!
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
dragancesu
Posts: 920
Joined: Mon Jun 24, 2013 11:53 am
DBs Used: DBF, MySQL, Oracle
Location: Subotica, Serbia

Re: HPDFPRINT UNICODE

Post by dragancesu »

This looks good to you, I did not manage to make a display of letters with the accents of ŠĐŽĆČ, so I gave up

but creating a print and using some print-to-pdf program works great
edk
Posts: 909
Joined: Thu Oct 16, 2014 11:35 am
Location: Poland

Re: HPDFPRINT UNICODE

Post by edk »

Rathinagiri wrote: Fri Dec 08, 2017 4:17 am Many complex language scripts can't be converted to ANSI.
You're right, but Drago probably creates a PDF in Slovenian. Can easily use ANSI encoding.
dragancesu wrote: Fri Dec 08, 2017 7:24 am This looks good to you, I did not manage to make a display of letters with the accents of ŠĐŽĆČ, so I gave up

but creating a print and using some print-to-pdf program works great
I checked the PDF in Serbian and in fact there is a problem with ANSI in this language. But what I noticed, Serbian has a similar alphabet to Slovenian and using Slovenian coding I managed to correctly create a PDF with the Serbian alphabet.
Serbian_via_SL_CP.png
Serbian_via_SL_CP.png (24.46 KiB) Viewed 4139 times
Attachments
Serbian_and_Slovenian.7z
(1.06 MiB) Downloaded 225 times
drz
Posts: 10
Joined: Thu Dec 06, 2012 4:00 pm

Re: HPDFPRINT UNICODE

Post by drz »

I can convert my application to WIN-1250 CODEPAGE and then i can use HPDFPRINT without UNICODE. But that means also correcting all strings in the code (like msginfo) and also all the data. I think this is the only solution since all dosc states that haru pdf is fixed to 72 dots per inch.

Many thanks to all of you for your participation. Maybe this is the thing to consider if HMG is still uder development.

Refards to all,
Drago
Post Reply