HMG_HPDF - Export to PDF made easy...

HMG Samples and Enhancements

Moderator: Rathinagiri

edk
Posts: 909
Joined: Thu Oct 16, 2014 11:35 am
Location: Poland

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

Post by edk »

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.
demo.7z
(6.82 KiB) Downloaded 228 times
Bez tytułu2.png
Bez tytułu2.png (14.24 KiB) Viewed 1170 times
Bez tytułu.png
Bez tytułu.png (12.75 KiB) Viewed 1170 times
Post Reply