PDFDancer$PageClient
Kind: class
Module/package: com.pdfdancer.client.rest
SDK: com.pdfdancer.client:pdfdancer-client-java 2.0.0
Represents operations scoped to a single page of a PDF document. Provides type-safe selection methods for images, form fields, and paths.
Declaration
public class com.pdfdancer.client.rest.PDFDancer$PageClient extends com.pdfdancer.client.rest.PageClientImpl
Members
delete
public boolean delete()
Deletes the current page from the PDF document. This method removes the page at the current pageNumber from the document permanently, updating the page numbering for subsequent pages.
getPageNumber
public int getPageNumber()
getPathGroups
public java.util.List getPathGroups()
getSnapshot
public com.pdfdancer.common.response.PageSnapshot getSnapshot()
getSnapshot
public com.pdfdancer.common.response.PageSnapshot getSnapshot(java.lang.String)
groupPaths
public com.pdfdancer.client.rest.PathGroupReference groupPaths(java.util.List)
groupPathsInRegion
public com.pdfdancer.client.rest.PathGroupReference groupPathsInRegion(com.pdfdancer.common.model.BoundingRect)
moveTo
public boolean moveTo(int)
newBezier
public com.pdfdancer.client.rest.BezierBuilder newBezier()
newImage
public com.pdfdancer.client.rest.ImageBuilder newImage()
newLine
public com.pdfdancer.client.rest.LineBuilder newLine()
newPath
public com.pdfdancer.client.rest.PathBuilder newPath()
newRectangle
public com.pdfdancer.client.rest.RectangleBuilder newRectangle()
selectElements
public java.util.List selectElements()
selectElements
public java.util.List selectElements(java.lang.String)
selectForm
public java.util.Optional selectForm()
selectFormAt
public java.util.Optional selectFormAt(double, double, double)
Selects a single form XObject at the specified coordinates with custom epsilon tolerance.
selectFormAt
public java.util.Optional selectFormAt(double, double)
Selects a single form XObject at the specified coordinates with default epsilon.
selectFormFieldAt
public java.util.Optional selectFormFieldAt(double, double, double)
Selects a single form field at the specified coordinates with custom epsilon tolerance.
selectFormFieldAt
public java.util.Optional selectFormFieldAt(double, double)
Selects a single form field at the specified coordinates with default epsilon.
selectFormFieldByName
public java.util.Optional selectFormFieldByName(java.lang.String)
Selects a single form field on this page with the specified name.
selectFormFields
public java.util.List selectFormFields()
selectFormFieldsAt
public java.util.List selectFormFieldsAt(double, double, double)
selectFormFieldsAt
public java.util.List selectFormFieldsAt(double, double)
selectFormFieldsByName
public java.util.List selectFormFieldsByName(java.lang.String)
Selects all form fields on this page with the specified name.
selectForms
public java.util.List selectForms()
selectFormsAt
public java.util.List selectFormsAt(double, double, double)
selectFormsAt
public java.util.List selectFormsAt(double, double)
selectImage
public java.util.Optional selectImage()
selectImageAt
public java.util.Optional selectImageAt(double, double, double)
Selects a single image at the specified coordinates with custom epsilon tolerance.
selectImageAt
public java.util.Optional selectImageAt(double, double)
Selects a single image at the specified coordinates with default epsilon.
selectImages
public java.util.List selectImages()
selectImagesAt
public java.util.List selectImagesAt(double, double, double)
selectImagesAt
public java.util.List selectImagesAt(double, double)
selectPath
public java.util.Optional selectPath()
selectPathAt
public java.util.Optional selectPathAt(double, double, double)
Selects a single path at the specified coordinates.
selectPathAt
public java.util.Optional selectPathAt(double, double)
Selects a single path at the specified coordinates.
selectPaths
public java.util.List selectPaths()
selectPathsAt
public java.util.List selectPathsAt(double, double, double)
selectPathsAt
public java.util.List selectPathsAt(double, double)
text
public com.pdfdancer.client.rest.PageTextClient text()