From fed4adb003db228ac7fbc0510a21c25b50ae0cab Mon Sep 17 00:00:00 2001 From: Henrique Nakashima Date: Fri, 13 Jul 2018 19:47:22 +0000 Subject: 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 Commit-Queue: Henrique Nakashima --- public/fpdf_edit.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'public') 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 @@ -329,6 +329,17 @@ FPDFPageObj_GetMark(FPDF_PAGEOBJECT page_object, unsigned long index); 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. -- cgit v1.2.3