Also be sure to check out Teleriks controls in this video: th-cam.com/video/TZxY4l18lTo/w-d-xo.html or how about DevExpress? th-cam.com/video/UrXDiODAwKk/w-d-xo.html
I agree it would be better if we would't need to do it in a webview and still in a free way but a solution is better than none at all so i think its great you sharing it :) Thanks Gerald as always ;)
I'm not sure but I think PDF is licensed technology? And at the very least very hard to implement? So that is why no one is giving it away for free on mobile? It's about the only control that does not have a free version. Very interesting 🤨
@@jfversluis We use AbcPdf in an actual Web Page, maybe we can use it for .Net Maui. Hopefully without a hack, we rolled our own Audio Stream class to avoid a webview already.
Excellent. Pdf shows up fine, but I can not enter any text on the text boxes (i.e. no live text boxes), while I can enter text when opening separately on Preview. How can I make it similar to Previwe? I am using Visual Studio for Mac.
Since my app needs minimum API 23 I am very happy with the feedback of not going higher than version v3.11.174 In that one, I only see the 'Web' folder and no 'Build' folder. I do have the viewer present, so it works half? What folders are essentials in the 3.11.174 version to include as MauiAsset? Also how do you disable the controls?
Hello Sir, I really like the way you explain the things. I just want to know is there any library to view html content as pdf viewer in .Net Maui, just like Forms9Patch in xamarin forms?
I tried it and in ios it is working fine when loading from the bundle but not working when loading from document directory. The issue is only on the physical device. working in ios simulator. Any help please.
@@jfversluis ok.. i mean that !! we always scan documents like id card or any other doc. from hard copy (print papers) as a pdf format using scanning mobile apps. right? but my questions is.. i wanna create a iOS and android apps that will work also scan desktop screen (invoice) and when i read a book on computer screen or iPad, one page is most important i need to scan that page. if possible link some useful help. thanks
Hey @Gerald , Is it possible to load the token protected pdf url inside our maui application. I'm facing a problem showing the pdf inside webview as it shows the Token required every time and when I pass the token inside the header of the webview it doesn't work. Help me out.
@@jfversluis Thanks for the fast answer. My pdf is a multipage pdf. The pdf is shown in the webview but only for the size of the webview. The pdf is cut off and I can't scroll it. Do you have any ideas?
@@jfversluiscompressed/packed or unpacked? I'm only interested in the latter, because that's what ends up in the app (although it might get somewhat compressed again during packaging). Version 4.0x shows me 16MB on disk when unpacked in the Resources\Raw folder
@@jewerspOh huh! you're right! Sorry, I must've remembered wrong. I do see there is a PDF file in there that is probably not needed. Saves another meg!
@@jfversluis Yes, but the rest is made up by the uncompressed JavaScript and the graphics for the PDF viewer controls, so even removing that 1MB still leads to a large app size.
Showing PDF files is one thing, but creating them??? Man, that was one pain in the back to do it for free 😭 I eventually got PdfSharpCore to work but it wasn't easy with it having trimming tags meant for much older .NET versions
Also be sure to check out Teleriks controls in this video: th-cam.com/video/TZxY4l18lTo/w-d-xo.html or how about DevExpress? th-cam.com/video/UrXDiODAwKk/w-d-xo.html
I agree it would be better if we would't need to do it in a webview and still in a free way but a solution is better than none at all so i think its great you sharing it :) Thanks Gerald as always ;)
I'm not sure but I think PDF is licensed technology? And at the very least very hard to implement? So that is why no one is giving it away for free on mobile? It's about the only control that does not have a free version. Very interesting 🤨
@@jfversluis We use AbcPdf in an actual Web Page, maybe we can use it for .Net Maui. Hopefully without a hack, we rolled our own Audio Stream class to avoid a webview already.
Nice Video!. Works well on android but im having trouble showing the toolbar on ios, any idea?
Thanks Gerald, great content as usual.
Please let us have the video on how to wrap the webview inside a reuseable control.
Love your contents :)
how to load pdf not from local(asset). i want to load pdf from online webserver
Excellent. Pdf shows up fine, but I can not enter any text on the text boxes (i.e. no live text boxes), while I can enter text when opening separately on Preview. How can I make it similar to Previwe? I am using Visual Studio for Mac.
I think your best bet, besides creating your own control, is to get a third-party control for that
Since my app needs minimum API 23 I am very happy with the feedback of not going higher than version v3.11.174
In that one, I only see the 'Web' folder and no 'Build' folder. I do have the viewer present, so it works half?
What folders are essentials in the 3.11.174 version to include as MauiAsset? Also how do you disable the controls?
Can we have same kind of pdf viewer in ios ? Like I would like to have search in pdf on iOS
Hello Sir, I really like the way you explain the things. I just want to know is there any library to view html content as pdf viewer in .Net Maui, just like Forms9Patch in xamarin forms?
I tried it and in ios it is working fine when loading from the bundle but not working when loading from document directory. The issue is only on the physical device. working in ios simulator. Any help please.
How can I do this in my hybrid desktop app of maui + blazor
Shouldn't be much of a difference actually?
Okay Thank you.
Great Gerald, can you help me about something like documents scan from computer screen.?? thanks
Not sure what you mean by that?
@@jfversluis ok.. i mean that !! we always scan documents like id card or any other doc. from hard copy (print papers) as a pdf format using scanning mobile apps. right? but my questions is.. i wanna create a iOS and android apps that will work also scan desktop screen (invoice) and when i read a book on computer screen or iPad, one page is most important i need to scan that page. if possible link some useful help. thanks
In iOS "pinch to zoom in/out" on pdf file is not working. I checked sample app as well.
Did you find anything to fix this?
If you anything for this issue to zoom in and zoom out, please let me know
Hey @Gerald , Is it possible to load the token protected pdf url inside our maui application. I'm facing a problem showing the pdf inside webview as it shows the Token required every time and when I pass the token inside the header of the webview it doesn't work. Help me out.
I guess if that’s what you want to do then you’ll have to download it first locally
@@jfversluis I tried but it doesn't work I tried almost every possible way but no success.
FillAndExpand... Jason just rolled over in his new job and EZ just typed sigh in his sabbatical... 😂
Oops... 👀
Does this work with pdf with more than one page? How can I realize that?
This should work with multi-page PDFS
@@jfversluis Thanks for the fast answer. My pdf is a multipage pdf. The pdf is shown in the webview but only for the size of the webview. The pdf is cut off and I can't scroll it. Do you have any ideas?
I solved the scroll issue. The problem is the grid element. If I use a ContentView element instead of a Grid it work's.
pdf.js is a great library to display PDFs, just note that it's massive in size (12-15MB depending on the version).
Mentioned in the video! But from what I could see “just” 4 mb on disk
@@jfversluiscompressed/packed or unpacked? I'm only interested in the latter, because that's what ends up in the app (although it might get somewhat compressed again during packaging). Version 4.0x shows me 16MB on disk when unpacked in the Resources\Raw folder
@@jewerspOh huh! you're right! Sorry, I must've remembered wrong. I do see there is a PDF file in there that is probably not needed. Saves another meg!
@@jfversluis Yes, but the rest is made up by the uncompressed JavaScript and the graphics for the PDF viewer controls, so even removing that 1MB still leads to a large app size.
Can I do this on winform?
I would think that this could also work WinForms
Thank you!.
Thank you for watching!
how to pdf file path in cloud how to view ?
You probably want to download it to the local device first.
How to generate report in .net maui?
Will do a video on that soon, maybe even this week!
Here it is: th-cam.com/video/JOJRzVqTmBY/w-d-xo.html
I was right eh, also I like free too 😆
You're Dutch?!
@@jfversluisI am Indian (We are stingy) , I am the guy who commented on LinkedIn guessing what you used in the video 😁
@@SuperGulamali haha I know it was a joke! And definitely recognized the name!
I like free :))
Hey me too!
I love it, I love free 2 😂😂
Are you Dutch? 🤔
Showing PDF files is one thing, but creating them??? Man, that was one pain in the back to do it for free 😭 I eventually got PdfSharpCore to work but it wasn't easy with it having trimming tags meant for much older .NET versions
Have you ever tried iText? github.com/itext/itext7-dotnet