Updated example JS, creating PDF from webView