-
public class PdfUtilsHelper methods for working with PDF
-
-
Method Summary
Modifier and Type Method Description final static RectFdefaultPhysicalBounds()final static RectFa4PhysicalBounds(RectF bounds)final static RectFusLetterPhysicalBounds(RectF bounds)final static RectFfitToPhysicalBounds(RectF bounds, RectF physicalBounds)final static RectFcalculatePageBounds(PDFPageSize pageSize, Rect bounds, Integer rotation)Calculates page bounds by PDFPageSize and with specified rotation -
-
Method Detail
-
defaultPhysicalBounds
final static RectF defaultPhysicalBounds()
-
a4PhysicalBounds
final static RectF a4PhysicalBounds(RectF bounds)
-
usLetterPhysicalBounds
final static RectF usLetterPhysicalBounds(RectF bounds)
-
fitToPhysicalBounds
final static RectF fitToPhysicalBounds(RectF bounds, RectF physicalBounds)
- Parameters:
bounds- bounds of the object in units (1/72 inches).physicalBounds- physical bounds of the document (in inches).
-
calculatePageBounds
final static RectF calculatePageBounds(PDFPageSize pageSize, Rect bounds, Integer rotation)
Calculates page bounds by PDFPageSize and with specified rotation
- Parameters:
pageSize- PDF page sizebounds- source image boundsrotation- source image rotation
-
-
-
-