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

Moderator: Rathinagiri

Post Reply
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

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

Post by esgici »

rathinagiri wrote:Now we can search any word inside the document also.
Tried after your notice; yes, Ctrl+F is almost universal search operation trigger.

In addition Shift+Ctrl+F is usable for advanced search.

We have more extra features ... Tools, Export, Convert, Sign, Comment ...

Pdf readers other than Acrobat Reader (such as Sumatra that you are using) may have more or less features.

Regarding Help of Adobe Reader, there are tons of extra features ... Purple bar, Yellow bar, Typewriter tool, etc...

Interesting: Adobe Reader doesn't allow connect to HMG Forum :?

Again, many thanks to you for providing us this wonderful tool :)

Best regards
Viva INTERNATIONAL HMG :D
Carlos Britos
Posts: 245
Joined: Sat Aug 02, 2008 5:03 pm

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

Post by Carlos Britos »

Hi
Thanks Rathinagiri for this lib. Simple and great.
Regards/Saludos, Carlos (bcd12a)
User avatar
Rathinagiri
Posts: 5480
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

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

Post by Rathinagiri »

Here comes again a NEW version: :P
pdf.zip
(280.96 KiB) Downloaded 368 times
New Features in this release:

1. URL Linking
2. Page Linking
3. Tooltip
4. HMG_HPDF_PageCount()
5. Insert HPDFPage
6. Select HPDFPage

Let us see one by one:

1. URL Linking:
This is to link a Web URL/Mail ID inside the document. Optionally you can specify the font, size, color and alignment.

Syntax:
@ Row , Col HPDFURLLINK cTitle TO cLink [ FONT cFontName ] [ SIZE nFontSize ] [ COLOR aColor ] [ CENTER|RIGHT|JUSTIFY ]

Example:

@ 10, 10 HPDFURLLINK "Click here to go to HMGForum" TO 'http://www.hmgforum.com' SIZE 14 COLOR { 0, 0, 255 }

2. Page Linking:

This command is to cross link a page inside a document. This is an useful feature to create an index of the whole document and cross link between pages. You have to specify the respective number of page to create the link. Optionally you can specify font, size color, alignment and border. Border width is optional too and is valid only if the border clause is included.

Syntax:
@ Row, Col HPDFPAGELINK cLink TO nPage [ FONT cFontName ] [ SIZE nFontSize ] [ COLOR aColor ] [ CENTER|RIGHT|JUSTIFY ] [ BORDER ] [ WIDTH nwidth ]

Examples:
@ 10, 10 HPDFPAGELINK 'Go to Page 5' TO 5 size 12 color { 255, 0, 0 }
@ 10, 10 HPDFPAGELINK 'Go to Page 5' TO 5 size 12 color { 255, 0, 0 } BORDER
@ 10, 10 HPDFPAGELINK 'Go to Page 5' TO 5 size 12 color { 255, 0, 0 } BORDER WIDTH 0.5
@ 10, 10 HPDFPAGELINK 'Go to Page 5' TO 5 font 'Times-Roman' size 12 color { 255, 0, 0 }

3. Tooltip:

This command is used to show a tooltip when the mouse is hovered over the particular icon. You have to specify either one of the types of icon in the list below.

Syntax:
@ Row, Col HPDFTOOLTIP cToolTip ICON COMMENT|KEY|NOTE|HELP|NEW_PARAGRAPH|PARAGRAPH|INSERT

Examples:
@ 10, 10 HPDFTOOLTIP 'This is Comment Icon Tooltip' ICON COMMENT
@ 20, 10 HPDFTOOLTIP 'This is Key Icon Tooltip' ICON KEY

4. HMG_HPDF_PageCount() -> nPageCount

This function can be used to find out the total number of pages at any time in the currently selected HPDFDOC.

5. Insert HPDFPage

This command is used to insert a page before a specified page. This is useful to create an index page after all the pages are designed or you can insert any page any time in between.

Syntax:
INSERT HPDFPAGE BEFORE PAGE nPage

Example:
INSERT HPDFPAGE BEFORE PAGE 1

Note: There should not be any page active before calling this command. Please use END HPDFPAGE before using this command. After this command the inserted page will be the current page of the document. So, before using ADD/INSERT HPDFPAGE again, please use END HPDFPAGE.

6. Select HPDFPage

This command is useful to select any page previously added/inserted by referencing its number. This is useful to add page numbers at the end of the document after designing the whole document.

Syntax:

SELECT HPDFPAGE nPage

Example:

Code: Select all

For i := 1 to HMG_HPDF_PageCount()
   SELECT HPDFPAGE i
      @ 10, 210 HPDFPRINT 'Page No. ' + alltrim( str( i ) ) RIGHT
   END HPDFPAGE
Next i
Note: There should not be any page active before calling this command. Please use END HPDFPAGE before using this command. After this command the selected page will be the current page of the document. So, before using ADD/INSERT HPDFPAGE please use END HPDFPAGE.

I think I have covered most of the features offered by LibHaru/HPDF. I have to write a decent sample now.

Please check for errors/bugs and give your valuable comments.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

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

Post by esgici »

rathinagiri wrote:Here comes again a NEW version: :P
Six separate thanks to six new feature :)

Best regards
Viva INTERNATIONAL HMG :D
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

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

Post by esgici »

Hi Rathi
rathinagiri wrote:... check for errors/bugs...
I am a ruthless checker ;)

1° :
Security block for URL
Security block for URL
SecurityBlock.PNG (15.88 KiB) Viewed 5965 times
2° Tooltip have a problem other than last ( bottom ) one :(

IMHO required a bit space under ( or another close place ) something like this :

Code: Select all

            @ 10,  10 HPDFTOOLTIP 'This is Comment Icon Tooltip' ICON COMMENT
            @ 10,  30 HPDFTOOLTIP 'This is Key Icon Tooltip' ICON KEY
            @ 10,  50 HPDFTOOLTIP 'This is Note Icon Tooltip' ICON NOTE
            @ 10,  70 HPDFTOOLTIP 'This is Help Icon Tooltip' ICON HELP
            @ 10,  90 HPDFTOOLTIP 'This is New_Paragraph Icon Tooltip' ICON NEW_PARAGRAPH
            @ 10, 110 HPDFTOOLTIP 'This is Paragraph Icon Tooltip' ICON PARAGRAPH
            @ 10, 130 HPDFTOOLTIP 'This is Insert Icon Tooltip' ICON INSERT
By the way, come where these icons ?

If they are build-in in the lib, we need a complete list ;)

Best regards
Viva INTERNATIONAL HMG :D
User avatar
Rathinagiri
Posts: 5480
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

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

Post by Rathinagiri »

In Sumathra the link is opening well. I will research for Acrobat security block.

Regarding the icons, they are in-built inside the library I think, and these are the whole bunch of icons as per the original documentation.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

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

Post by esgici »

rathinagiri wrote:In Sumathra the link is opening well. I will research for Acrobat security block.

Regarding the icons, they are in-built inside the library I think, and these are the whole bunch of icons as per the original documentation.
Good :)

Continue checking ;)

When inserting before a page, all page nos after this page manually written become wrong and needs to change, this is normal behavior.

For preventing such situation ( and for any other usage of course ) we need a function like HMG_HPDF_PageNo()

Best regards
Viva INTERNATIONAL HMG :D
User avatar
bpd2000
Posts: 1207
Joined: Sat Sep 10, 2011 4:07 am
Location: India

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

Post by bpd2000 »

Thank you, Rathi for additional feature

FYI
URL link working in Acrobat Reader, Not working in Foxit Reader
BPD
Convert Dream into Reality through HMG
User avatar
Rathinagiri
Posts: 5480
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

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

Post by Rathinagiri »

we need a function like HMG_HPDF_PageNo()
Duly noted and coded. Will be released in the next version.

Regarding the tooltip I didn't understand about the space you have mentioned. The sample is working fine for me in Sumathra.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
Rathinagiri
Posts: 5480
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

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

Post by Rathinagiri »

Regarding the Adobe Acrobat security block, you can remove it using the methods mentioned here.

http://forums.adobe.com/thread/630501
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
Post Reply