Returns a data frame describing every segment in every sub-path
of clip_path, ordered first by path_index and then by
seg_index within each sub-path. Mirrors the shape of
pdf_path_segments() but adds a path_index column for the
clip's outer level. Wraps FPDFClipPath_CountPaths,
FPDFClipPath_CountPathSegments, and
FPDFClipPath_GetPathSegment.
Arguments
- clip_path
A
pdfium_clip_pathfrompdf_obj_clip_path().
Value
A tibble with columns:
path_indexinteger - 1-based sub-path index within the clipsegment_indexinteger - 1-based segment index within its sub-pathsegment_typecharacter -"moveto","lineto","bezierto", or"unknown"x,ynumeric - segment coordinates in PDF user spaceclose_figurelogical - whether this segment closes its sub-path
Details
Coordinates are in PDF user space (typically points, with the origin at the page's bottom-left).
See also
pdf_path_segments() for the same shape applied to a
regular page object's path.