I'm developing an app in xamarin for android.
The objective is for the user to fill a document and save it as a PDF.
I have tried this process:
HTML TO PDF
I have designed a cshtml file, that contains the same structure as the document, with the input that the user inserted. So far so good, it looks good in the webview. I now wish to convert this to PDF but I can't seem to find a way to convert it.
Is there a way to convert CSHTML to PDF, or somehow convert the content of the webview to PDF?
I have tried an extension called "iTextSharp" to create and manipulate PDF's (my attempt to convert html to a PDF file but the styles and images used in html aren't being applied).
The final objective is to create a PDF file that has the same structure as an HTML Page that I own.
Any way I can accomplish this? Ideas are most welcome
I could convert the whole
WebView
page content to pdf with below code. Hope it may help you. However, I have just tried this in Simulator.