summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorHenrique Nakashima <hnakashima@chromium.org>2018-07-13 20:12:41 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-07-13 20:12:41 +0000
commitcf403ba5720cf8bb05b6fbe9bf2b152c52e7e7b3 (patch)
tree99b63ccc2956f7341ed5588fadf16fffb02d7a16 /public
parentfed4adb003db228ac7fbc0510a21c25b50ae0cab (diff)
downloadpdfium-cf403ba5720cf8bb05b6fbe9bf2b152c52e7e7b3.tar.xz
Create API to remove a parameter from a content mark.chromium/3491
- FPDFPageObjMark_RemoveParam() Bug: pdfium:1037 Change-Id: I3ec25128795c36ba7f2f72a9d288a7855ecc3180 Reviewed-on: https://pdfium-review.googlesource.com/37770 Commit-Queue: Henrique Nakashima <hnakashima@chromium.org> Reviewed-by: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'public')
-rw-r--r--public/fpdf_edit.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/public/fpdf_edit.h b/public/fpdf_edit.h
index e18f1cd260..fdd8c97d05 100644
--- a/public/fpdf_edit.h
+++ b/public/fpdf_edit.h
@@ -505,6 +505,19 @@ FPDFPageObjMark_SetBlobParam(FPDF_DOCUMENT document,
void* value,
unsigned long value_len);
+// Experimental API.
+// Removes a property from a content mark by key.
+//
+// page_object - handle to the page object with the mark.
+// mark - handle to a content mark.
+// key - string key of the property.
+//
+// Returns TRUE if the operation succeeded, FALSE otherwise.
+FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV
+FPDFPageObjMark_RemoveParam(FPDF_PAGEOBJECT page_object,
+ FPDF_PAGEOBJECTMARK mark,
+ FPDF_BYTESTRING key);
+
// Load an image from a JPEG image file and then set it into |image_object|.
//
// pages - pointer to the start of all loaded pages, may be NULL.