METADATA

Post Reply
xtsystem
Posts: 4
Joined: Mon Mar 30, 2015 9:53 pm

METADATA

Post by xtsystem »

Hello friends. Is there a way to use the PDF class and generate with metadata ?
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: METADATA

Post by nageswaragunupudi »

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
xtsystem
Posts: 4
Joined: Mon Mar 30, 2015 9:53 pm

Re: METADATA

Post by xtsystem »

OK friend. Thank you very much, I will search. A big hug.
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: METADATA

Post by nageswaragunupudi »

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
Post Reply