Get page bitmap from offscreen canvas?

23 views
Skip to first unread message

Peter

unread,
Dec 11, 2014, 7:52:23 AM12/11/14
to pdfne...@googlegroups.com
Hi,

I'm testing your PDFTron Android Library for displaying Pdf files. One of the features which is required for our app is to make snippets inside a page. It should be possible to snip portions out of the current Pdf page. I try that with the PDFDraw class. Is it possible to get a really good qualitiy image out of a snipped portion on a pdf page regardless whether the user has zoomed out so that the text is very small and the user isnt able to read it? Maybe some offscreen canvas pdf page rendering which I could use? And also if there is very small text on a page, it should be possible the snip that text with a good quality so the user will be able to read it?

Thanks.

Support

unread,
Dec 11, 2014, 2:39:49 PM12/11/14
to pdfne...@googlegroups.com

Yes, this is definitely possible. 

Please code sample #4 in PDFDraw: 


For more power & low-level control (at expense of ease of use) use pdftron.PDF.PDFRasterizer as shown in the same sample project (i.e. PDFDraw code snippet # 8)

Peter

unread,
Dec 12, 2014, 11:09:26 AM12/12/14
to pdfne...@googlegroups.com
Hi,

thank you very much.
Reply all
Reply to author
Forward
0 new messages