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

Can rasterizeHTML.js support HTML pages which have iframes? #203

Open
zzw918 opened this issue Jul 10, 2018 · 2 comments
Open

Can rasterizeHTML.js support HTML pages which have iframes? #203

zzw918 opened this issue Jul 10, 2018 · 2 comments

Comments

@zzw918
Copy link

zzw918 commented Jul 10, 2018

I have no idea how to take a "screenshot" of a HTML page which has iframes, is there any solutions?

@cburgmer
Copy link
Owner

My usage didn't include iframes, so I didn't go into that. It might be possible, happy to see a pull request, let's discuss if you are interested. :)

@harole
Copy link

harole commented Aug 30, 2019

Problem

If you have iframes in HTML, the problem is CORS. So, we can't get the DOM of iframe. Then can't get the picture of iframe.

Use Case

  • I use a mask with some text to explain that the iframe area can't be cutted into picture.
  • If the HTML and iframes have a same domain. You can get iframe DOM to rasterizeHtml.

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

3 participants