Skip to content

Supplied Data is not a valid base64-String jsPDF.convertStringToImageData  #2478

@Coder806

Description

@Coder806

var doc = new jsPDF();
var header = 'data:image/jpeg;base64,/9j/...';
doc.addImage(header, 'JPEG', 132, 15, 60, 20);

I can't get the image to display. I only get the error message provided in the title. I'm encountering this problem in IE 11. Chrome, Edge, and Firefox work fine. Is there a workaround for this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions