Skip to content

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

@darshitmaniar

Description

@darshitmaniar

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions