HMG_HPDF - Export to PDF made easy...

HMG Samples and Enhancements

Moderator: Rathinagiri

Posts: 421
Joined: Thu Oct 16, 2014 11:35 am
Location: Poland
Has thanked: 125 times
Been thanked: 331 times

Re: HMG_HPDF - Export to PDF made easy...

Post by edk » Fri Dec 14, 2018 3:15 pm

I added support for Helvetica, Courier and Times-Roman in UTF-8 encoded documents. The HaruPDF library for UTF-8 encoded documents only allows to use TTF. I exchange the Helvetica, Courier and Times-Roman fonts for their similar TTF equivalents (Arial, Courier New, Times New Roman).
Since the _HMG_HPDF_SeekTTFFont() function reads the declared decoding of the document with the SET HPDFDOC ENCODING TO command, it should be called only after this declaration. Otherwise, it will not "know" the encoding of the PDF document.
(6.82 KiB) Downloaded 42 times
Bez tytułu2.png
Bez tytułu2.png (14.24 KiB) Viewed 211 times
Bez tytułu.png
Bez tytułu.png (12.75 KiB) Viewed 211 times

Post Reply