public class RenderedElementLocation extends Object
Returned by PdfDocument.getElementLocations() after rendering HTML with
ChromePdfRenderOptions.setElementQuerySelectors(String[]) configured.
Mirrors IronPdf.RenderedElementLocation on the C# side.
| Constructor and Description |
|---|
RenderedElementLocation()
Default constructor.
|
RenderedElementLocation(String text,
int pageIndex,
Rectangle2D.Double rectangle,
int elementIndex)
Full constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getElementIndex() |
int |
getPageIndex() |
Rectangle2D.Double |
getRectangle() |
String |
getText() |
void |
setElementIndex(int elementIndex) |
void |
setPageIndex(int pageIndex) |
void |
setRectangle(Rectangle2D.Double rectangle) |
void |
setText(String text) |
String |
toString() |
public RenderedElementLocation()
public RenderedElementLocation(String text, int pageIndex, Rectangle2D.Double rectangle, int elementIndex)
text - The text content of the matched elementpageIndex - The zero-based page index where the element was renderedrectangle - The bounding rectangle of the annotation marker on the pageelementIndex - The original document-order index of the element among all matched elementspublic String getText()
public void setText(String text)
public int getPageIndex()
public void setPageIndex(int pageIndex)
public Rectangle2D.Double getRectangle()
public void setRectangle(Rectangle2D.Double rectangle)
public int getElementIndex()
public void setElementIndex(int elementIndex)
Copyright © 2022–2026 Iron Software. All rights reserved.