Home > Enterprise >  Is there any PDF Viewer in .NET MAUI App?
Is there any PDF Viewer in .NET MAUI App?

Time:11-17

I am using .NET MAUI app for migrating my xamarin.forms into .NET MAUI. I have problem which i have to view pdf file in .NET MAUI app or in .NET MAUI Pagr as i previously did in Xamarin.Forms. I was using SfPdfViewer in Xamarin.Forms and it was working fine. Kindly Help or guide please.

I want to View Pdf file in .Net Maui page in mobile app.

CodePudding user response:

You need install Syncfusion.Pdf.Net NuGet package as a reference to your project. This library enables you to read, write, and manipulate existing PDF documents. For more details, you can refer to this link. You can also explore the PDF library demo that shows how to create and modify PDF files.

CodePudding user response:

No, but hear me out. Search for PDF rendering instead.

Those viewers are doing a lot of useless work. In most cases you will want to simply scroll over the content of your PDF.

The way I achieve this is by rendering the PDF to images. And then using container to display them. You can set the DPI when rendering, so you don't make them too big (if you are using phone for example). You can implement some background loading, etc.

The end result is that you have something running at light speed.

  • Related