Skip to contents

Wraps FPDFPage_InsertClipPath, which inserts the clip path before the page's content. PDFium does not take ownership of the clip path: clip_path stays open, can be inserted into other pages, and is released by pdf_clip_path_close() or when it is garbage-collected.

Usage

pdf_page_insert_clip_path(page, clip_path)

Arguments

page

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

clip_path

A pdfium_clip_box from pdf_clip_path_new().

Value

Invisibly returns the parent pdfium_doc.