From ecd063eccdb25cbb573d01fc512a3d40322761be Mon Sep 17 00:00:00 2001 From: Julian Lunger Date: Wed, 27 Dec 2017 10:18:50 -0500 Subject: Expose marked content IDs for images and alt text. - Adds two new public bits of API: - StructElement_GetMCID(STRUCTELEMENT) to return the marked content ID of the struct element. - IMAGEOBJ_METADATA.mcid to contain the marked content ID of the image. - Restores ContentMark::GetMCID, which was removed with other dead code in https://pdfium-review.googlesource.com/c/pdfium/+/19170. - Adds a couple calls to tests, including a simple new PDF to test the struct tree marked content ID. Bug:pdfium:957 Change-Id: I92856e43d741df989e53a575a08258da19a39f22 Reviewed-on: https://pdfium-review.googlesource.com/20632 Reviewed-by: Lei Zhang Commit-Queue: Lei Zhang --- testing/resources/marked_content_id.pdf | Bin 0 -> 13109 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 testing/resources/marked_content_id.pdf (limited to 'testing/resources') diff --git a/testing/resources/marked_content_id.pdf b/testing/resources/marked_content_id.pdf new file mode 100644 index 0000000000..ddbf11f319 Binary files /dev/null and b/testing/resources/marked_content_id.pdf differ -- cgit v1.2.3