Routines for document attributes processing
◆ HPDF_GetInfoAttr()
Get attribute value from info
dictionary.
- Parameters
-
pdf | Document object handle. |
type | One of the following values:
|
- Returns
- String value from
info
dictionary. If the infomation has not been set or an error has occurred, it returns NULL
.
- Error codes
- See also
- HPDF_SetInfoAttr(), HPDF_SetInfoDateAttr()
◆ HPDF_SetInfoAttr()
Set the text of info
dictionary attribute using current encoding of the document. If encoding is not set, PDFDocEncoding is used.
- Todo:
- Clarify what PDFDocEncoding is.
- Parameters
-
pdf | Document object handle. |
type | One of the following values:
|
value | Attribute text to be set. |
- Returns
- HPDF_OK on success, otherwise returns error code and calls error handler.
- Error codes
- See also
- HPDF_GetInfoAttr(), HPDF_SetInfoDateAttr()
◆ HPDF_SetInfoDateAttr()
Set datetime attribute at info
dictionary.
- Parameters
-
pdf | Document object handle. |
type | One of the following attributes:
|
value | New attribute value |
- Returns
- HPDF_OK on success, otherwise returns error code and calls error handler.
- Error codes
- See also
- HPDF_GetInfoAttr(), HPDF_SetInfoAttr(), _HPDF_Date