diff options
author | Henrique Nakashima <hnakashima@chromium.org> | 2018-07-13 19:47:22 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-07-13 19:47:22 +0000 |
commit | fed4adb003db228ac7fbc0510a21c25b50ae0cab (patch) | |
tree | f9a73333d86d5abb1cf890e320f0800a2dd875c9 /public/fpdf_edit.h | |
parent | a34067721d6630975c356a621a12753bbdab1cdb (diff) | |
download | pdfium-fed4adb003db228ac7fbc0510a21c25b50ae0cab.tar.xz |
Create API to remove a content mark from a page object.
- FPDFPageObj_RemoveMark()
Bug: pdfium:1037
Change-Id: I7ff320261d64e3ead45375ccc72301e7c64dd6e3
Reviewed-on: https://pdfium-review.googlesource.com/37710
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'public/fpdf_edit.h')
-rw-r--r-- | public/fpdf_edit.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/public/fpdf_edit.h b/public/fpdf_edit.h index e71b4edb94..e18f1cd260 100644 --- a/public/fpdf_edit.h +++ b/public/fpdf_edit.h @@ -330,6 +330,17 @@ FPDF_EXPORT FPDF_PAGEOBJECTMARK FPDF_CALLCONV FPDFPageObj_AddMark(FPDF_PAGEOBJECT page_object, FPDF_BYTESTRING name); // Experimental API. +// Removes a content |mark| from a |page_object|. +// The mark handle will be invalid after the removal. +// +// page_object - handle to a page object. +// mark - handle to a content mark in that object to remove. +// +// Returns TRUE if the operation succeeded, FALSE if it failed. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFPageObj_RemoveMark(FPDF_PAGEOBJECT page_object, FPDF_PAGEOBJECTMARK mark); + +// Experimental API. // Get name of a content mark. |buffer| is only modified if |buflen| is longer // than the length of the name. // |