Groups
Sign in
Groups
PDFTron SDK
Conversations
Labels
About
Send feedback
Help
How can I cancel rendering?
32 views
PDFViewCtrl
android
pdfrasterizer
render
Skip to first unread message
Aaron
unread,
Nov 18, 2014, 11:36:02 AM
11/18/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pdfne...@googlegroups.com
Q:
I have a long-running rendering task on Android that I'd like to cancel. How do I do so?
A:
It depends on how you're performing the rendering.
If using PDFViewCtrl, you should be able to use PDFViewCtrl.cancelRendering() to cancel the rendering process:
https://www.pdftron.com/pdfnet/mobile/docs/Android/pdftron/PDF/PDFViewCtrl.html#cancelRendering()
If using PDFRasterizer, you can cancel the rendering with PDFRasterizer.setCancel():
https://www.pdftron.com/pdfnet/mobile/docs/Android/pdftron/PDF/PDFRasterizer.html#setCancel(boolean)
Reply all
Reply to author
Forward
0 new messages