summaryrefslogtreecommitdiff
path: root/public/fpdf_edit.h
diff options
context:
space:
mode:
authorJane Liu <janeliulwq@google.com>2017-08-08 15:23:27 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-08-08 20:31:16 +0000
commit2e5f0ae97c163841c93c891aa5933adbde47e710 (patch)
treeefb44c1e304ccf5873deaaa3f3b6316c0638b187 /public/fpdf_edit.h
parent9f0e85ac36826e39a242f8039c2b2c333ee99f4f (diff)
downloadpdfium-2e5f0ae97c163841c93c891aa5933adbde47e710.tar.xz
Added FPDFPageObj_Destroy() for freeing page objects created
Bug=pdfium:854 Change-Id: I227418cdcb77e0aa7d48338f1ee0d753cef6bfdb Reviewed-on: https://pdfium-review.googlesource.com/10390 Reviewed-by: dsinclair <dsinclair@chromium.org> Commit-Queue: Jane Liu <janeliulwq@google.com>
Diffstat (limited to 'public/fpdf_edit.h')
-rw-r--r--public/fpdf_edit.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/public/fpdf_edit.h b/public/fpdf_edit.h
index dc710b5f52..aab48af3f1 100644
--- a/public/fpdf_edit.h
+++ b/public/fpdf_edit.h
@@ -141,6 +141,15 @@ DLLEXPORT FPDF_BOOL STDCALL FPDFPage_HasTransparency(FPDF_PAGE page);
// |FPDFPage_GenerateContent| or any changes to |page| will be lost.
DLLEXPORT FPDF_BOOL STDCALL FPDFPage_GenerateContent(FPDF_PAGE page);
+// Destroy |page_obj| by releasing its resources. |page_obj| must have been
+// created by FPDFPageObj_CreateNew{Path|Rect}() or
+// FPDFPageObj_New{Text|Image}Obj(). This function must be called on
+// newly-created objects if they are not added to a page through
+// FPDFPage_InsertObject() or to an annotation through FPDFAnnot_AppendObject().
+//
+// page_obj - handle to a page object.
+DLLEXPORT void STDCALL FPDFPageObj_Destroy(FPDF_PAGEOBJECT page_obj);
+
// Checks if |page_object| contains transparency.
//
// page_object - handle to a page object.