HMG_HPDF - Export to PDF made easy... (New Version)

Moderator: Rathinagiri

User avatar
bpd2000
Posts: 1078
Joined: Sat Sep 10, 2011 4:07 am
Location: India
Has thanked: 197 times
Been thanked: 96 times

Re: HMG_HPDF - Export to PDF made easy... (New Version)

Post by bpd2000 » Fri Oct 05, 2012 3:39 am

esgici wrote:Hi Dave
bpd2000 wrote:...following commands...
Apparently you are a good researcher :arrow:

So you can build a good documentation ( user guide ) for HMG_HPDF, I think ;)

Regards
Wait, I will do it after completion of pdf lib
BPD
Convert Dream into Reality through HMG

User avatar
mol
Posts: 3220
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 224 times
Been thanked: 125 times
Contact:

Post by mol » Fri Oct 05, 2012 5:29 am

esgici wrote:Hi

IMHO it's time to introduce national characters subject ;)

Regards
You're right.
Polish national characters work bad in the sample :(

User avatar
esgici
Posts: 4514
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Has thanked: 389 times
Been thanked: 111 times
Contact:

Post by esgici » Fri Oct 05, 2012 6:37 am

bpd2000 wrote:... I will do it after completion of pdf lib
Thanks Dave :)

Regards
Viva INTERNATIONAL HMG :D

User avatar
esgici
Posts: 4514
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Has thanked: 389 times
Been thanked: 111 times
Contact:

Post by esgici » Fri Oct 05, 2012 6:40 am

mol wrote:...Polish national characters work bad in the sample :(
Ours too :(

Regards
Viva INTERNATIONAL HMG :D

User avatar
bpd2000
Posts: 1078
Joined: Sat Sep 10, 2011 4:07 am
Location: India
Has thanked: 197 times
Been thanked: 96 times

Post by bpd2000 » Fri Oct 05, 2012 11:30 am

Instead of viewing PDF file, you can print PDF file directly to default printer
Replace following command

"execute file 'sample.pdf'"

with

"SHELLEXECUTE( 0, "print" ,'sample.pdf')"

Enjoy
Last edited by bpd2000 on Fri Oct 05, 2012 12:14 pm, edited 1 time in total.
BPD
Convert Dream into Reality through HMG

User avatar
Rathinagiri
Posts: 5263
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 169 times
Been thanked: 172 times
Contact:

Post by Rathinagiri » Fri Oct 05, 2012 12:04 pm

Thanks for the help!

Will it print to the default printer?
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.

User avatar
Rathinagiri
Posts: 5263
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 169 times
Been thanked: 172 times
Contact:

Post by Rathinagiri » Fri Oct 05, 2012 1:57 pm

Hi,

I am uploading with the new version:
pdf.zip
(1.61 MiB) Downloaded 192 times
In this version we can encode the pdf with different character encodings:

The command is:

SET HPDFDOC ENCODING TO <cEncoding>

Example: SET HPDFDOC ENCODING TO "CP1254"

These are all the possible encoding options: (from the LibHaru Documentation)
encode.jpg
encode.jpg (108.75 KiB) Viewed 2446 times
Kindly check and tell as I am not well versed with these encodings.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.

User avatar
esgici
Posts: 4514
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Has thanked: 389 times
Been thanked: 111 times
Contact:

Post by esgici » Fri Oct 05, 2012 5:11 pm

rathinagiri wrote:...Kindly check and tell as I am not well versed with these encodings.
Checked for my own language; result is perfect as always :)
HPdfEncodingResult.PNG
Test result of HPDFDOC SET ENCODING command
HPdfEncodingResult.PNG (9.57 KiB) Viewed 2429 times
My test code is:
HPdfEncodingCode.PNG
Test code for HPDFDOC SET ENCODING command
HPdfEncodingCode.PNG (10.77 KiB) Viewed 2429 times
Thanks a lot Mr. Diamond :D

By the way, my friend Rathi, if you offended by my 3 Oct dated post ( about exception error ), please excuse me, at that time I was in a deep panic :(

Thanks again for your invaluable efforts for us :)

Best regards
Viva INTERNATIONAL HMG :D

User avatar
mol
Posts: 3220
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 224 times
Been thanked: 125 times
Contact:

Post by mol » Fri Oct 05, 2012 7:36 pm

It's really super news!
Thanks Rathi for your excellent work!

User avatar
Rathinagiri
Posts: 5263
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 169 times
Been thanked: 172 times
Contact:

Post by Rathinagiri » Sat Oct 06, 2012 1:55 am

By the way, my friend Rathi, if you offended by my 3 Oct dated post ( about exception error ), please excuse me, at that time I was in a deep panic :(
No way I will get offended Esgici. It is all for the betterment of the code. Isn't it? :)
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.

Post Reply