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

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

Open
soarying opened this issue Aug 26, 2022 · 0 comments

Comments

@soarying
Copy link

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

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