| java.lang.Object | |
| ↳ | com.pspdfkit.utils.PdfUtils |
Collection of useful methods for working with PDF documents.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| PdfUtils() | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| static RectF |
boundingBoxFromLines(List<List<PointF>> lines, float lineWidth)
Calculates the bounding box from lines (specified in PDF coordinates).
| ||||||||||
| static RectF |
createPdfRectUnion(List<RectF> pdfRects)
Creates a union of a list of
pdfRects. | ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Calculates the bounding box from lines (specified in PDF coordinates).
| lines | List of lines, where line is defined by the list of points in PDF coordinates. |
|---|---|
| lineWidth | Line width in PDF points. |
Creates a union of a list of pdfRects. The provided pdfRects have to be in the PDF coordinate space.
Examples for rects used with this method are pageRects, or the getBoundingBox().
| pdfRects | List of PDF rects on which to apply the union. |
|---|