From 35841fa4e3dbf8f9146f78def048c4a287894a8a Mon Sep 17 00:00:00 2001 From: Henrique Nakashima Date: Thu, 15 Mar 2018 15:25:16 +0000 Subject: Create FPDFPage_RemoveObject(). This call removes a page object from a page. We currently offer an API to insert these objects, but not to remove. Bug: pdfium:1037 Change-Id: I35ff596f9e7c87a39051f0cb1de40a5bec40fee5 Reviewed-on: https://pdfium-review.googlesource.com/28492 Reviewed-by: dsinclair Commit-Queue: Henrique Nakashima --- public/fpdf_edit.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'public') diff --git a/public/fpdf_edit.h b/public/fpdf_edit.h index 54735a3bde..1e84e8f7ff 100644 --- a/public/fpdf_edit.h +++ b/public/fpdf_edit.h @@ -148,6 +148,19 @@ FPDF_EXPORT void FPDF_CALLCONV FPDFPage_SetRotation(FPDF_PAGE page, int rotate); FPDF_EXPORT void FPDF_CALLCONV FPDFPage_InsertObject(FPDF_PAGE page, FPDF_PAGEOBJECT page_obj); +// Experimental API. +// Remove |page_obj| from |page|. +// +// page - handle to a page +// page_obj - handle to a page object to be removed. +// +// Returns TRUE on success. +// +// Ownership is transferred to the caller. Call FPDFPageObj_Destroy() to free +// it. +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV +FPDFPage_RemoveObject(FPDF_PAGE page, FPDF_PAGEOBJECT page_obj); + // Get number of page objects inside |page|. // // page - handle to a page. -- cgit v1.2.3