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

Cropping PDF pages in Xamarin

This tutorial only applies to Xamarin.Android.

With the Apryse library you can crop pages manually or automatically, as well as reset document pages to their original size. The UserCropDialogFragment allows a user to adjust the page's crop box which can then be applied to a subset of pages or to all the pages in a document.

Show user crop pages dialog

To show a user crop pages dialog in your activity, create a new instance of UserCropDialogFragment by calling newInstance() and setting the PDFViewCtrl:

In order to view user cropped pages in PDFViewCtrl make sure you set Page.e_user_crop as the default page box:

Last updated

Was this helpful?