diff options
Diffstat (limited to 'public')
-rw-r--r-- | public/fpdf_edit.h | 3 | ||||
-rw-r--r-- | public/fpdf_structtree.h | 10 |
2 files changed, 13 insertions, 0 deletions
diff --git a/public/fpdf_edit.h b/public/fpdf_edit.h index 3bd246b0ad..685fbdd029 100644 --- a/public/fpdf_edit.h +++ b/public/fpdf_edit.h @@ -80,6 +80,9 @@ typedef struct FPDF_IMAGEOBJ_METADATA { unsigned int bits_per_pixel; // The image's colorspace. See above for the list of FPDF_COLORSPACE_*. int colorspace; + // The image's marked content ID. Useful for pairing with associated alt-text. + // A value of -1 indicates no ID. + int marked_content_id; } FPDF_IMAGEOBJ_METADATA; #ifdef __cplusplus diff --git a/public/fpdf_structtree.h b/public/fpdf_structtree.h index 688471f28d..2e86ae65b3 100644 --- a/public/fpdf_structtree.h +++ b/public/fpdf_structtree.h @@ -75,6 +75,16 @@ FPDF_StructElement_GetAltText(FPDF_STRUCTELEMENT struct_element, void* buffer, unsigned long buflen); +// Function: FPDF_StructElement_GetMarkedContentID +// Get the marked content ID for a given element. +// Parameters: +// struct_element - Handle to the struct element. +// Return value: +// The marked content ID of the element. If no ID exists, returns +// -1. +FPDF_EXPORT int FPDF_CALLCONV +FPDF_StructElement_GetMarkedContentID(FPDF_STRUCTELEMENT struct_element); + // Function: FPDF_StructElement_GetType // Get the type (/S) for a given element. // Parameters: |