This was working fine in a Xamarin Forms (UWP) project
public void PrintReferralReport(byte[] pdf)
{
pdfCurrent = pdf;
this.pdfViewer.Source = pdf;
memberReferralPopUpVM.IsPDFGridVisible = true;
}
<telerikPdfViewer:RadPdfViewer x:Name="pdfViewer" Grid.Row="1"/>
As soon as Telerik.Documents.Core was added to a different project (doesn't even have to be used), the viewer stopped appearing.
<PackageReference Include="Telerik.Documents.Core" Version="2022.3.1108" />
Hi,
I have developed an Xamarin application that in Modal show a pdf in a PdfViewer.
PdfViewerPage pdfViewer =
new
PdfViewerPage(item.IdAllegato, item.Path, item.FlagScaricabile);
Navigation.PushModalAsync(pdfViewer);
When the Modal is open, I assign a url to the PdfViewer source.
pdfViewer.Source =
new
Uri(uri);
Everything is fine when I run the android app on debug mode, but when I run in release mode the PdfViewer show this message: "an error occurred while loading the document"
I'm using RadPdfViewer control to show pdf document in our Xamarin form app. The app is working fine on Android(device and Simulator) and also on iOS simulator.
But App is crashing on iPhone device while launching the app. I'm getting the below error
Failed to force load assembly Telerik.XamarinForms.DataGrid.dll. Type:Telerik.XamarinForms.DataGrid.DataGridLocalizationManager.
Exception: 'You MUST call Xamarin.Forms.Init(); prior to using it.'. Callstack: ' at Xamarin.Forms.Device.get_PlatformServices () [0x00007] in D:\a\1\s\Xamarin.Forms.Core\Device.cs:87
at Xamarin.Forms.Device.get_RuntimePlatform () [0x00000] in D:\a\1\s\Xamarin.Forms.Core\Device.cs:57
at Telerik.XamarinForms.Common.RadDevice..cctor () <0x10c1fc1c8 + 0x00002> in <81c15264f2164ef79a02e84ed79e8bfd>:0
If I comment out the <telerikPdfViewer:RadPdfViewer x:Name="pdfViewer" /> control in the .xaml file the app loads properly
I have tried the solution provided on TelerikForm.Init() but it's not worked for me.I'm using the pdf viewer in a xamarin solution, which includes a UWP application. A pdf can be displayed no problem on the UWP app, however as soon as a mouse scroll is done (to try and scroll down in the pdf, for example), the application crashes without any error message or other signs for what went wrong. Breakpoints and debugging mode in visual studio haven't helped identify the issue.
Is this a known problem with the pdf viewer component? Any advice on a resolution would be much appreciated.
Hello. I'm trying to implement a control for displaying Terms and Conditions on my app using PDFViewer. I want to have an "accept" button below the viewer that Will become enabled when the user has scrolled to the bottom of the PDF (and hopefully read the document).
For this I would like to know the page number the user is currently Reading, and perhaps also an event that fires when it changes. Is this available in the PDFViewer control? I found references to VerticalScrollState, but that seems to only be available for Windows (is that right?)
What would be the correct approach to get this behavior on Xamarin Forms? Thank you
Xamarin.Forms 4.1.0.555619
Telerik.Ui.for.Xamarin 2019.3.1119.1
Hey,
I am trying to show a pdf from a stream via the pdfViewer,
<
Grid
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
/>
</
Grid.RowDefinitions
>
<
telerikPdfViewer:RadPdfViewerToolbar
PdfViewer
=
"{Binding Source={x:Reference pdfViewer}}"
>
<
telerikPdfViewer:ZoomInToolbarItem
/>
<
telerikPdfViewer:ZoomOutToolbarItem
/>
<
telerikPdfViewer:ToggleLayoutModeToolbarItem
/>
</
telerikPdfViewer:RadPdfViewerToolbar
>
<
telerikPdfViewer:RadPdfViewer
x:Name
=
"pdfViewer"
Grid.Row
=
"1"
Source
=
"{Binding DocStream, Mode=TwoWay}"
PageSpacing
=
"15"
MinZoomLevel
=
"0.2"
MaxZoomLevel
=
"5"
/>
</
Grid
>
The view renders but there is no pdf, just a grey blank screen, there is no crash however the console output gives the following;
Im thinking SkiaSharp? but at a loss as to a solution?
Failed to bind EAGLDrawable: <
CAEAGLLayer:
0x2866d0640> to GL_RENDERBUFFER 1
Failed to make complete multisample framebuffer object 8cd6
Failed to make complete framebuffer object 8cd6