PdfGenerator
PdfGenerator creates PDF files from HTML content using Android's WebView and PrintManager. Must be initialized on the Main thread.
Parameters
context
Application context for initializing WebView and PrintManager.
webView
WebView instance for loading HTML content (Visible for testing).