HI Everyone,
I tried with this link, but i could not able to create instance for PrintDocumentAdapter.WriteResultCallback and it throws exception due to class is abstract restriction.
https://stackoverflow.com/questions/26841501/save-pdf-from-webview-on-android
Requirement is same as stated in above link.
Can you please suggest me to achieve the requirement?
Answers
I convert to C# the
PrintDocumentAdapter.WriteResultCallback
.Hi @LeonLu ,
Thanks for the answer, i tried with your code. But it throws the exception
I have attached a simple sample. Can you please look into it and help me to sort out the issue please?
@LeonLu , Please guide for five weeks i am looking for a solution.
@LeonLu ,
Thanks for your suggestion. Finally, i can able to render the HTML file to PDF as required.
I am sharing my git repo for future reference.
https://github.com/dinesh4official/XFPDF
OK, thanks for your update.
@Dinesh_Official
Dinesh, your solution is the only one that is actually working! Thanks for it!
I'm trying to integrate it into my project!
What do you think of creating a Nuget package to make it easier to use? I'm sure it would be very popular, as there is NO other, not even PAID, available today.
The solution from Forms9Patch is not working anymore and seems that the developer moved away from Xamarin and probably will not update it anymore.
Well... For some reason, I wasn't able to make it work with my project. I only get an empty page on the final PDF.