public class

UserCropUtilities

extends Object
java.lang.Object
   ↳ com.pdftron.pdf.utils.UserCropUtilities

Class Overview

A utility class for user crop

Summary

Nested Classes
class UserCropUtilities.AutoCropInBackgroundTask An async task for auto cropping in background thread  
Public Constructors
UserCropUtilities()
Public Methods
static void cropDoc(PDFDoc doc)
Crops the PDF document permanently.
static void removeUserCrop(PDFDoc pdfDoc)
static Completable removeUserCropAsync(PDFDoc pdfDoc)
static void removeUserCropFromPage(Page page)
Removes any user crop for a page if it is there
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public UserCropUtilities ()

Public Methods

public static void cropDoc (PDFDoc doc)

Crops the PDF document permanently.

Parameters
doc The PDF document

public static void removeUserCrop (PDFDoc pdfDoc)

public static Completable removeUserCropAsync (PDFDoc pdfDoc)

public static void removeUserCropFromPage (Page page)

Removes any user crop for a page if it is there

Parameters
page the page from which to remove the user crop
Throws
PDFNetException PDFNet exception