Skip to contents

Wraps FPDF_NewFormObjectFromXObject + FPDFPage_InsertObject. Creates a fresh form-xobject page-object referencing the shared XObject content and inserts it on page. The page-object can then be transformed / placed via the usual pdf_obj_set_matrix() setter.

Usage

pdf_obj_form_from_xobject(page, xobject)

Arguments

page

A pdfium_page from pdf_page_new() or pdf_page_load() (parent doc must be readwrite).

xobject

A pdfium_xobject from pdf_xobject_from_page(). The XObject must have been created against the same dest_doc that owns page.

Value

The new pdfium_obj (type "form").