public class PdfUtils
Helper methods for working with PDF
public static PdfUtils INSTANCE
Helper methods for working with PDF
@JvmStatic @NotNull public static android.graphics.RectF defaultPhysicalBounds()
@JvmStatic
@NotNull
public static android.graphics.RectF a4PhysicalBounds(@NotNull
android.graphics.RectF bounds)
bounds - @JvmStatic
@NotNull
public static android.graphics.RectF usLetterPhysicalBounds(@NotNull
android.graphics.RectF bounds)
bounds - @JvmStatic
@NotNull
public static android.graphics.RectF fitToPhysicalBounds(@NotNull
android.graphics.RectF bounds,
@NotNull
android.graphics.RectF physicalBounds)
bounds - bounds of the object in units (1/72 inches).physicalBounds - physical bounds of the document (in inches).@JvmStatic
@NotNull
public static android.graphics.RectF calculatePageBounds(@Nullable
PDFPageSize pageSize,
@NotNull
android.graphics.Rect bounds,
int rotation)
Calculates page bounds by enum PDFPageSize and with specified rotation
pageSize - PDF page sizebounds - source image boundsrotation - source image rotationenum PDFPageSize