METADATA

METADATA

Postby xtsystem » Mon Nov 25, 2019 4:42 pm

Hello friends. Is there a way to use the PDF class and generate with metadata ?
xtsystem
 
Posts: 4
Joined: Mon Mar 30, 2015 9:53 pm

Re: METADATA

Postby nageswaragunupudi » Tue Nov 26, 2019 1: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
User avatar
nageswaragunupudi
 
Posts: 10620
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: METADATA

Postby xtsystem » Wed Nov 27, 2019 11:42 pm

OK friend. Thank you very much, I will search. A big hug.
xtsystem
 
Posts: 4
Joined: Mon Mar 30, 2015 9:53 pm

Re: METADATA

Postby nageswaragunupudi » Fri Nov 29, 2019 3: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
User avatar
nageswaragunupudi
 
Posts: 10620
Joined: Sun Nov 19, 2006 5:22 am
Location: India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 42 guests