Page 1 of 1
METADATA
Posted: Mon Nov 25, 2019 4:42 pm
by xtsystem
Hello friends. Is there a way to use the PDF class and generate with metadata ?
Re: METADATA
Posted: Tue Nov 26, 2019 1:13 pm
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()
Re: METADATA
Posted: Wed Nov 27, 2019 11:42 pm
by xtsystem
OK friend. Thank you very much, I will search. A big hug.
Re: METADATA
Posted: Fri Nov 29, 2019 3:09 am
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.