nativescript-pdf-view icon indicating copy to clipboard operation
nativescript-pdf-view copied to clipboard

in iOS the pdf file is not showing up?

Open sagar1911 opened this issue 6 years ago • 9 comments

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

sagar1911 avatar Jul 17 '18 16:07 sagar1911

me too

two-bridges avatar Jul 18 '18 00:07 two-bridges

@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>

two-bridges avatar Jul 18 '18 00:07 two-bridges

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.

sagar1911 avatar Jul 18 '18 06:07 sagar1911

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

two-bridges avatar Jul 18 '18 06:07 two-bridges

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 ?

lieutandat avatar Jan 09 '19 11:01 lieutandat

Same grey screen it's happening to me =/

nolleto avatar Jan 23 '19 18:01 nolleto

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

AliKalkandelen avatar Feb 01 '19 16:02 AliKalkandelen

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?

seveneye avatar Feb 19 '19 11:02 seveneye

Has anyone found a fix or workaround for this?

woeckener avatar Oct 29 '20 13:10 woeckener