'Print Textviews and webview from fragment

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.



Solution 1:[1]

Choose an option to implement fields as html in webview

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Slava Vir