PdfViewer selection rectangle

1 Answer 41 Views
PdfViewer and PdfViewerNavigator
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Toby asked on 11 Oct 2023, 10:01 AM | edited on 11 Oct 2023, 10:05 AM
Hi, I have a need for the user to be able to select an rectangular area from a PDF page from within the PDF viewer and then to extract this area as an image. Is this possible? If so how?

1 Answer, 1 is accepted

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 12 Oct 2023, 11:36 AM

Hi Toby,

Thank you for your interest in our RadPdfViewer control.

I will start with that the control does not provide such functionality of the box. However, you could try to implement custom code to implement your requirements. Here is what I have in mind.:

I think the main obstacle will be to transfer the correct x,y starting point of the drawn rectangle to the image/bitmap image coordinates. I am afraid that I don't have a complete solution for your scenario, but I think the above resources will be a good starting point.

I hope that you find my reply helpful.

Regards,
Dinko | Tech Support Engineer
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
PdfViewer and PdfViewerNavigator
Asked by
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Answers by
Dinko | Tech Support Engineer
Telerik team
Share this question
or