Home > Blockchain >  Print Textviews and webview from fragment
Print Textviews and webview from fragment

Time:05-14

I'm using such code for creating pdf from webview

PrintManager printManager = (PrintManager) this
                .getSystemService(Context.PRINT_SERVICE); 
PrintDocumentAdapter printAdapter = webView.createPrintDocumentAdapter("PDF");
printManager.print("PDF", printAdapter,
                new PrintAttributes.Builder().build());

what should I do, to add to this pdf creation some TextView because I need to add additional fields to my fragment?

Know about itextg, but I need something free.

CodePudding user response:

Choose an option to implement fields as html in webview

  • Related