Skip to content
This repository has been archived by the owner on Jun 15, 2024. It is now read-only.

I can't get pdfview to render in nativescript 5 angular 7 #41

Open
JayLHein opened this issue Apr 11, 2019 · 3 comments
Open

I can't get pdfview to render in nativescript 5 angular 7 #41

JayLHein opened this issue Apr 11, 2019 · 3 comments

Comments

@JayLHein
Copy link

I am not able to get pdfview to render on Android. I have even hard coded the external url. I am using Nativescript 5 and Angular 7
Here is my setup

import { registerElement } from 'nativescript-angular';
registerElement('PDFView', () => PDFView);

The html code:

    <GridLayout *ngIf="displayAttach" rows="auto, *" columns="*">
        <StackLayout row="0" class="attach-header">
            <Label class="fa back-icon" text="&#xf355;" (tap)="onDismissAttachment()"></Label>
        </StackLayout>
        <StackLayout row="1">
            <PDFView src="http://www.orimi.com/pdf-test.pdf"></PDFView>
            <Label text="Hello World"></Label>
            <!-- <WebView row="1" #webview [src]="attachSrc"></WebView> -->
        </StackLayout>
    </GridLayout>

The html is running inside a modal dialog.

Any suggestions/ help would be greatly appreciated.

@JayLHein JayLHein reopened this Apr 11, 2019
@JayLHein
Copy link
Author

I am sorry, I pressed the wrong button.

@cristiansandru11
Copy link

+1

@madmas
Copy link

madmas commented Oct 28, 2019

Hi, please check out the updated demo in https://github.com/madmas/nativescript-pdf-view, it's using the TNS 6. Also I verified with Angular and it worked as expected. DO you still experience these difficulties?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants