public final class PageExtensions extends Object
Provides additional capabilities for the Page class.
| Modifier and Type | Method and Description |
|---|---|
static void |
duplicateIntersectingGraphics(Page page,
Rectangle region,
double deltaX,
double deltaY)
Finds all vector graphic elements that intersect with the specified region
and creates their copies with offset from original positions.
|
static void |
parallelSort(int[] indices,
GraphicElement[] elements) |
public static void duplicateIntersectingGraphics(Page page, Rectangle region, double deltaX, double deltaY)
Finds all vector graphic elements that intersect with the specified region and creates their copies with offset from original positions.
page - The page where graphic elements are searched and copied to.region - The rectangular region to search for intersecting elements.deltaX - Offset along the X axis for copied elements.deltaY - Offset along the Y axis for copied elements.
This method works only with vector graphics (lines, shapes, Bezier curves, etc.). Raster images and other types of elements are not processed. Each copied element will be shifted by the specified dx and dy values relative to its original position. The original elements remain unchanged.
public static void parallelSort(int[] indices,
GraphicElement[] elements)
Copyright © 2026 Aspose. All Rights Reserved.