PdfLoadedDocument .get_Length() exception

Hello,

Under windows everythink works well, but android not. Im try to load pdf form and fill that after.


Stream docStream = null;
docStream = await FileSystem.Current.OpenAppPackageFileAsync("sample.pdf");
PdfLoadedDocument loadedDocument = new(docStream);


I get Exception "ex = {System.NotSupportedException: Specified method is not supported. at Android.Runtime.InputStreamInvoker.get_Length()"


What am i doing wrong?

Thanks




1 Reply

RB Ravikumar Baladhandapani Syncfusion Team November 16, 2023 02:45 PM UTC

Hi Michal,

We kindly ask you to provide us with the following information to assist you better:


1. Please specify which control you are using (Pdf or PdfViewer).

2. Kindly share the complete code snippet or a simple sample that can help us replicate the issue.

3. Additionally, please provide us with the input pdf file.


Best regards,

Ravikumar B.


Loader.
Up arrow icon