Skip to content

have some wired characters( �� ) appear after send pdf stream to react frontend #146

@soarying

Description

@soarying

wkhtmltopdf version(s) affected: x.y.z

OS information
win10 pro

Description
I have a peculiar problem after I update my client-side react app to the most recent version.
the pdf cannot be opened and there are some weird characters had been added to my file almost everywhere, and I have no problem doing this call on Postman, and before I update my npm libraries.

How to reproduce
if (response) {
const file = new Blob([response], {
type: "application/pdf;charset=utf8",
});
const fileURL = URL.createObjectURL(file);
window.open(fileURL);
}
Expected behavior

it should have a pdf report like my old version.
1
but I got this :
2
and I can tell these wired characters are everywhere:
3
Possible Solution

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