Did you find this guide helpful?
Some test text!
Xamarin / Guides / Create a thumbnail
You can generate images of pages in documents.
With PDFViewCtrl
, you can get a thumbnail Bitmap
image for each page in a PDF document.
The following example request thumbnail for page 3:
pdfViewCtrl.ThumbAsync += (sender, e) =>
{
var bitmap = Bitmap.CreateBitmap(e.Width, e.Height, Bitmap.Config.Argb8888);
bitmap.SetPixels(e.Buf, 0, e.Width, 0, 0, e.Width, e.Height);
// use the bitmap
};
// request thumbnail for page 3
pdfViewCtrl.GetThumbAsync(3);
where pdfViewCtrl
is an instance of PDFViewCtrl
.
PDFViewCtrl.cancelAllThumbRequests()
.
Trial setup questions? Ask experts on Discord
Need other help? Contact Support
Pricing or product questions? Contact Sales