For the complete documentation index, see llms.txt. This page is also available as Markdown.

Crop pages

Apryse SDK allows you to crop pages to your required size parameters.

Cropping PDF pages in Android

You can crop and reset pages in a document using the UI component or programmatically with the Xamarin.Android API.

UI Component The crop pages dialog allows you to crop and reset pages with a graphical interface in the document viewer.

API guide You can programmatically crop pages in documents.

Cropping PDF pages in iOS

To crop a page in a PDF document.

PDFDoc doc = new PDFDoc(filename);

// Access a PDF page
Page page = doc.GetPage(page_num);

// Crop the page
page.SetCropBox(new Rect(0, 0, 500, 600));

About cropping the page

The crop box defines the region to which the contents of the page are to be clipped (cropped) when displayed or printed. Unlike other types of boxes, the crop box has no defined meaning in terms of physical page geometry or intended use; it merely imposes clipping on the page contents. The default value is the page's media box. A new crop box can be imposed on a page with Page.SetCropBox().

Last updated

Was this helpful?