From 1d273f1cf00676725da6f0cd17e107f114030e87 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Mon, 16 Jul 2018 19:20:36 +0000 Subject: Add FPDFFormObj_GetObject() API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To be used together with the existing FPDFFormObj_CountObjects() function. Change-Id: I8ed69624e967708c8db7e8f135e28fbe6a52752f Reviewed-on: https://pdfium-review.googlesource.com/37890 Reviewed-by: Nicolás Peña Moreno Reviewed-by: Henrique Nakashima Commit-Queue: Nicolás Peña Moreno --- public/fpdf_edit.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'public') diff --git a/public/fpdf_edit.h b/public/fpdf_edit.h index fdd8c97d05..b97a7adbd9 100644 --- a/public/fpdf_edit.h +++ b/public/fpdf_edit.h @@ -1265,6 +1265,16 @@ FPDF_EXPORT int FPDF_CALLCONV FPDFText_GetTextRenderMode(FPDF_PAGEOBJECT text); FPDF_EXPORT int FPDF_CALLCONV FPDFFormObj_CountObjects(FPDF_PAGEOBJECT form_object); +// Experimental API. +// Get page object in |form_object| at |index|. +// +// form_object - handle to a form object. +// index - the 0-based index of a page object. +// +// Returns the handle to the page object, or NULL on error. +FPDF_EXPORT FPDF_PAGEOBJECT FPDF_CALLCONV +FPDFFormObj_GetObject(FPDF_PAGEOBJECT form_object, unsigned long index); + #ifdef __cplusplus } // extern "C" #endif // __cplusplus -- cgit v1.2.3