FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour METADATA
Posts: 4
Joined: Mon Mar 30, 2015 09:53 PM

METADATA

Posted: Mon Nov 25, 2019 04:42 PM

Hello friends. Is there a way to use the PDF class and generate with metadata ?

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM

Re: METADATA

Posted: Tue Nov 26, 2019 01:13 PM

If you are using HaruPDF (or FWH 1909 FWPDF class), you can use these functions to create Metadata

HPDF_SetInfoAttr()
HPDF_GetInfoAttr()
HPDF_SetInfoDateAttr()
HPDF_SetPassword()
HPDF_SetPermission()
HPDF_SetEncryptionMode()
HPDF_SetCompressionMode()

Please see documentation at:

https://github.com/libharu/libharu/wiki/API%3A-Document

With FWPDF class we can set password and permissions in the Method New()

Regards



G. N. Rao.

Hyderabad, India
Posts: 4
Joined: Mon Mar 30, 2015 09:53 PM

Re: METADATA

Posted: Wed Nov 27, 2019 11:42 PM

OK friend. Thank you very much, I will search. A big hug.

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM

Re: METADATA

Posted: Fri Nov 29, 2019 03:09 AM

In addition to cPassWord, cOwnerPassword, nPermssion, FWH1910 adds some more new DATAs to FWHPDF class:
cAuthor, cCreator, cTitle, cSubject, lTimeStamp and if specified these values will be saved as METADATA in the PDF.

Regards



G. N. Rao.

Hyderabad, India

Continue the discussion