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 » Thu Dec 07, 2017 2:09 pm

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 180 times

edk
Posts: 200
Joined: Thu Oct 16, 2014 11:35 am
Location: Poland
Has thanked: 58 times
Been thanked: 136 times

Post by edk » Thu Dec 07, 2017 2:23 pm

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

Post by drz » Thu Dec 07, 2017 2:39 pm

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: 200
Joined: Thu Oct 16, 2014 11:35 am
Location: Poland
Has thanked: 58 times
Been thanked: 136 times

Post by edk » Thu Dec 07, 2017 2:59 pm

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

Post by drz » Thu Dec 07, 2017 4:01 pm

Thank you very much fot your help edk. As I understand there is no solution print output is as it is.

edk
Posts: 200
Joined: Thu Oct 16, 2014 11:35 am
Location: Poland
Has thanked: 58 times
Been thanked: 136 times

Post by edk » Thu Dec 07, 2017 4:28 pm

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: 5181
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 142 times
Been thanked: 131 times
Contact:

Post by Rathinagiri » Fri Dec 08, 2017 4:17 am

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: 477
Joined: Mon Jun 24, 2013 11:53 am
DBs Used: DBF, MySQL, Oracle
Location: Subotica, Serbia
Has thanked: 3 times
Been thanked: 75 times

Post by dragancesu » 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

edk
Posts: 200
Joined: Thu Oct 16, 2014 11:35 am
Location: Poland
Has thanked: 58 times
Been thanked: 136 times

Post by edk » Fri Dec 08, 2017 10:06 am

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 80 times
Attachments
Serbian_and_Slovenian.7z
(1.06 MiB) Downloaded 7 times

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

Post by drz » Fri Dec 08, 2017 11:37 am

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