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

Images #21

Closed
olakoziou opened this issue May 5, 2020 · 12 comments
Closed

Images #21

olakoziou opened this issue May 5, 2020 · 12 comments

Comments

@olakoziou
Copy link

olakoziou commented May 5, 2020

I'm trying to implement your tool, but I have problem with downloading pdfs with images (set both as background-image and img). Img is dynamic and set with img={example} Do you have any idea how to fix it?

@gdcardoso
Copy link

I'm also trying to use it with the company's logo image, but I didn't succeed.

@ivmarcos
Copy link
Owner

ivmarcos commented May 5, 2020

@olakoziou, @gdcardoso, could you create a codesandbox showing the problem?

@gdcardoso
Copy link

@ivmarcos thanks for the feedback, but i found that the problem is when i use an image hosted in digital ocean spaces. Using a google image it worked perfectly.

@olakoziou
Copy link
Author

@ivmarcos yep, as @gdcardoso said. I use firebase and the problem is with link from there, ex https://codesandbox.io/s/relaxed-star-3h7ty?file=/src/App.js

@zainulabd786
Copy link

Did anyone find solution to this problem of displaying images in pdf?

@vladcom
Copy link

vladcom commented Jul 6, 2020

@olakoziou Hi there. You could try use svg format for images. Its works for me

@jcpage02
Copy link

jcpage02 commented Jul 31, 2020

I am getting a CORS error when trying to create a pdf from HTML that includes an image that is stored on an S3 bucket. The image renders just fine in the HTML, but it does not show up on the pdf. Any ideas?

@vladcom
Copy link

vladcom commented Aug 1, 2020

I am getting a CORS error when trying to create a pdf from HTML that includes an image that is stored on an S3 bucket. The image renders just fine in the HTML, but it does not show up on the pdf. Any ideas?

How you add image in your code? Could you send example?

@jcpage02
Copy link

jcpage02 commented Aug 7, 2020

I am getting a CORS error when trying to create a pdf from HTML that includes an image that is stored on an S3 bucket. The image renders just fine in the HTML, but it does not show up on the pdf. Any ideas?

How you add image in your code? Could you send example?

I am using Leaflet.js and adding the image as a layer on the map with the addLayer() method.

@ivmarcos
Copy link
Owner

ivmarcos commented Sep 2, 2020

Have you tried the latest v.0.0.12? If so, please provide a codesandbox or jsfiddle with the issue.

@ivmarcos
Copy link
Owner

Closing for now, cors errors with images were fixed in recent releases. Reopen in case the issue still remain.

@jals990
Copy link

jals990 commented Jun 16, 2021

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

7 participants