We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Read pdf from RestAPI - base64

Thread ID:

Created:

Updated:

Platform:

Replies:

146703 Aug 14,2019 07:15 PM UTC Aug 15,2019 01:15 PM UTC Xamarin.Forms 1
loading
Tags: PdfViewer
Aviad Katani
Asked On August 14, 2019 07:15 PM UTC

Hello,

I have a SfPdfViewer inside a CarouselPage (https://github.com/alexrainman/CarouselView) - which initialized through ViewModel (No requests out / in).
I need to get the Pdf document from a HTTP Request where I get, each time, a different PDF document as base64, or a token through which I can access and download the PDF (for example, api-site.com/downloadFile?token=TOKENHERE AND the GET has to be with a custom header: Token: <tokenhere> or just use the base64 file)

So, I really don't know what I can do in this scenario to achieve this requirement. I thought about making the request BEFORE moving to that window and then pass the base64 through constructor, though I don't even think it's possible to initialize SfPdfViewer with base64.

I really need your expertise and experience on this case - what's the appropriate solution? Performance is less relevant.

Thanks!

Gayathri Ramalingam [Syncfusion]
Replied On August 15, 2019 01:15 PM UTC

Hi Aviad, 
 
  
We have analyzed the feasibility and created a workaround to open the PDF document from base64 string using SfPdfViewer in Xamarin.Forms. Please find the sample link from below, 
 
 
Could you please try the above sample and let us know whether the above proposed solution meets your requirement?   
 
 
With Regards, 
Gayathri R 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon