Skip to contents

Wraps FPDFAnnot_AddInkStroke. The points matrix carries the stroke as Nx2 (x, y) in PDF user-space points; PDFium creates a fresh ink-list entry if the annotation doesn't already have one.

Usage

pdf_annot_add_ink_stroke(annot, points)

Arguments

annot

A pdfium_annot of subtype "ink".

points

Numeric matrix with two columns (x, y).

Value

Invisibly returns the integer stroke index (one-based) of the newly-added stroke. -1L on failure.

See also

pdf_annot_remove_ink_list() to clear all strokes.