Skip to content
This repository has been archived by the owner on Jan 2, 2023. It is now read-only.

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

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

Comments

@soarying
Copy link

soarying commented Aug 26, 2022

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.
New Bitmap Image
but I got this :
New Bitmap Image
and I can tell these wired characters are everywhere:
New Bitmap Image

Possible Solution

please Help

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant