Merott / nativescript-pdf-view

A basic PDF viewer plugin for NativeScript. Now maintained by @madmas: github.com/madmas/nativescript-pdf-view
Other
32 stars 35 forks source link

in iOS the pdf file is not showing up? #33

Open sagar1911 opened 6 years ago

sagar1911 commented 6 years ago

Hi,

It looks like there is an issue with the path in iOS. the pdf is showing up in Android but not showing anything in iOS. page is showing blank in app and when we copy & paste path in browser file content is loading.. Please help

two-bridges commented 6 years ago

me too

two-bridges commented 6 years ago

@sagar1911 it's working for me now.

You have to set a height on the PDFView.

I achieved this by placing the PDFView in a DockLayout as follows:

<DockLayout stretchLastChild="true">
    <PDFView [src]="this.url" (load)="this.onLoadPdf($event)"></PDFView>
</DockLayout>
sagar1911 commented 6 years ago

Thanks @two-bridges for the quick response. HTTP URL's are working fine but the local paths are not working. I'll post the path for the understanding.

two-bridges commented 6 years ago

okay I see. This maybe beyond my knowledge of the plugin unfortunately (I'm just a user, not the plugin author). Hopefully, someone comes along who can fix this bug or provide a workaround

lieutandat commented 5 years ago

Hi, I have nearly with your issue, I downloaded file pdf then load it, however the screen only show grey color. Any suggesst for my case ?

nolleto commented 5 years ago

Same grey screen it's happening to me =/

AliKalkandelen commented 5 years ago

Same thing for me is happening but only when switching tabs in

seveneye commented 5 years ago

help, nothing shows up in iphone XR, tried placing in in docker layout and setting the height of pdfview, but still it is not working on IOS. any ideas?

woeckener commented 3 years ago

Has anyone found a fix or workaround for this?