I am not sure this is a duplicate because all what I found wasn't exactly what I am looking for.
I have an App that has an Activity where the user fills a form (Table layout with textviews and edittexts)
At the bottom there is a Print button which (As of right now) it generates a pdf file using itextpdf and saves it in "/storage/emulated/0/client pqr/pqr.pdf"
What I want to achieve is on that button click, the PDF is generated then sent to a network printer and print without a print preview.
Is this possible? At least possible with print preview?
I am new to this, and not familiar on how to implement the printing custom documents (https://developer.android.com/training/printing/custom-docs.html#print-adapter). I am not sure how to implement the print adapter/manager. I saw some pages with code snippet solution but I was not sure which class they go in.
I would really appreciate any help here as I have spent days googling and did not get anywhere.