project net.standard 2.0 pdf viewer

Hello,

I'm developing an APP (IOS ans Android) in xamarin forms Net.Standard, for this APP I need to use your PDF component for puping up a pdf of bill.

I don't understand if this package is correct for :

syncfusion.xamarin.pdf

have I install  also this package ?

install-package Microsoft.NETCore.Portable.Compatibility

Is a possible to have an example of xaml page, in my case I don't know how I have to implement this

https://help.syncfusion.com/xamarin/sfpdfviewer/getting-started

Using syncfusion.xamarin.pdf how can I implement this part

<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:local="clr-namespace:GettingStarted"
             x:Class="GettingStarted.MainPage"
             xmlns:syncfusion="clr-namespace:Syncfusion.SfPdfViewer.XForms;assembly=Syncfusion.SfPdfViewer.XForms"
             >
    <ContentPage.BindingContext>
        <local:PdfViewerViewModel></local:PdfViewerViewModel>
    </ContentPage.BindingContext>
    <Grid x:Name="pdfViewGrid">
        <syncfusion:SfPdfViewer x:Name="pdfViewerControl" InputFileStream="{Binding PdfDocumentStream}"/>
    </Grid> 
</ContentPage>

tnx in advance




1 Reply

KK Karthik Krishnaraj Syncfusion Team July 19, 2018 10:01 AM UTC

Hi Massimo, 
 
Thank you for contacting Syncfusion Support, 
 
As per your requirement, I have attached a simple sample to “View the PDF files using SfPdfViewer”.  You can use the below Nuget package for SfPdfViewer which will install the dependent assemblies in each platform. 
 
Nuget Link: 
 
 
Sample Link: 
Please let us know whether the provided information helps. 
 
Thanks, 
Karthik. 


Loader.
Up arrow icon