Page 1 of 2

HPDFPRINT UNICODE

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

Re: HPDFPRINT UNICODE

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

Re: HPDFPRINT UNICODE

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

Re: HPDFPRINT UNICODE

Posted: Thu Dec 07, 2017 2:59 pm
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"

Re: HPDFPRINT UNICODE

Posted: Thu Dec 07, 2017 4:01 pm
by drz
Thank you very much fot your help edk. As I understand there is no solution print output is as it is.

Re: HPDFPRINT UNICODE

Posted: Thu Dec 07, 2017 4:28 pm
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?

Re: HPDFPRINT UNICODE

Posted: Fri Dec 08, 2017 4:17 am
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!

Re: HPDFPRINT UNICODE

Posted: Fri Dec 08, 2017 7:24 am
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

Re: HPDFPRINT UNICODE

Posted: Fri Dec 08, 2017 10:06 am
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 4137 times

Re: HPDFPRINT UNICODE

Posted: Fri Dec 08, 2017 11:37 am
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