From aed62531a9b08deb236cc423dc27dbe0810d6d1a Mon Sep 17 00:00:00 2001 From: Henrique Nakashima Date: Tue, 17 Apr 2018 20:34:38 +0000 Subject: Create new FPDFPageObjMark_CountParams() API. Bug: pdfium:1037 Change-Id: I1b7035eb199f9dd1d730b0b1112aa455f0fabcc2 Reviewed-on: https://pdfium-review.googlesource.com/30870 Reviewed-by: Lei Zhang Commit-Queue: Henrique Nakashima --- public/fpdf_edit.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'public/fpdf_edit.h') diff --git a/public/fpdf_edit.h b/public/fpdf_edit.h index 7c37b83aa9..4968a7f003 100644 --- a/public/fpdf_edit.h +++ b/public/fpdf_edit.h @@ -315,6 +315,15 @@ FPDFPageObjMark_GetName(FPDF_PAGEOBJECTMARK mark, void* buffer, unsigned long buflen); +// Get number of key/value pair parameters in |mark|. +// +// mark - handle to a content mark. +// +// Returns the number of key/value pair parameters |mark|, or -1 in case of +// failure. +FPDF_EXPORT int FPDF_CALLCONV +FPDFPageObjMark_CountParams(FPDF_PAGEOBJECTMARK mark); + // 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. -- cgit v1.2.3