Skip to content

Loading an internal CSS not working for iOS Capacitor #143

@ersamrow

Description

@ersamrow
let cssPath = 'assets/css/pdf.css';
    if (this.platform.is('android')) {
      cssPath = 'file:///android_asset/public/' + cssPath;
    }
    const payload = _.template(' <head><link rel="stylesheet" href="<%=css_file%>"></head><body> ' + content + '</body>');
    const options = {
      documentSize: 'A4',
      type: 'share',
      landscape: 'portrait',
      fileName: fileName
    };

It's working for Android but not iOS.
Can you please help.

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