How can I cancel rendering?


I have a long-running rendering task on Android that I’d like to cancel. How do I do so?


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:

If using PDFRasterizer, you can cancel the rendering with PDFRasterizer.setCancel():