HMG_HPDF - Export to PDF made easy...

HMG Samples and Enhancements

Moderator: Rathinagiri

Posts: 463
Joined: Thu Oct 16, 2014 11:35 am
Location: Poland
Has thanked: 135 times
Been thanked: 379 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 55 times
Bez tytułu2.png
Bez tytułu2.png (14.24 KiB) Viewed 257 times
Bez tytułu.png
Bez tytułu.png (12.75 KiB) Viewed 257 times

Post Reply