Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PDF preview doesn't appear in Android, it is continue spinning #145

Open
darshitmaniar opened this issue Sep 4, 2023 · 0 comments
Open

Comments

@darshitmaniar
Copy link

Hello,
Preparing preview keeps running When I try to share a PDF the print dialog has been opened but the page and save pdf button don't load on the pdf dialog box. It was working fine on iOS.
I have created a new ionic Cordova project with Angular 13

downloadPDF(title?: string) { 
    const options = {
      documentSize: 'A4',
      type: 'share',
       fileName: `test.pdf`,
    };
    this.pdfGenerator
      .fromData('<html><h1>Hello World</h1></html>', options)
      .then((base64: any) => {
        alert('OK ' + base64);
      })
      .catch((error: any) => {
        alert('error ' + error);
      });
  }

Screenshot from 2023-09-04 17-34-37

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

No branches or pull requests

1 participant