You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to add an image to a pdf document. This code works fine with a jpg and i can also do it using the sample PNG file in this projects examples folder. Any other png i have doesnt work. It will redirect the page and #blocked will appear in the URL.
what would cause the redirect with #blocked in the url? this seems like some baked in behavior rather than something that a specific image would cause
Edit: I opened this png in ms paint and resaved it as a png and it works now. I dont know what ms paint does to the image file. The image size went from 100kb to 141kb so paint made the file bigger. size definitely isnt the issue.
I am trying to add an image to a pdf document. This code works fine with a jpg and i can also do it using the sample PNG file in this projects examples folder. Any other png i have doesnt work. It will redirect the page and #blocked will appear in the URL.
pdfdoc.addImage(base64img, "PNG", padding, yPadding, width - (padding*2), height);
In the console i see
The text was updated successfully, but these errors were encountered: