-
Notifications
You must be signed in to change notification settings - Fork 219
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
Is there any way to block some elements in a document from rendering ? #132
Comments
No, and probably not easy to implement, because we delegate the whole rendering process to the browser itself. On a per use case basis, you could try replacing the given element with a dummy element. Alternatively, if this works for you, you could try measuring the element in question (offset top/left + width/height) and blank out this space retroactively. |
A more technical answer to my initial response: In an interim step we inspect the size of the document being rendered via its HTML being pasted into a hidden iframe. However, the final result lives inside a However, here's a different idea: the element could just have it's style attribute overridden with |
Like html2canvas does with with data-attribute 'data-html2canvas-ignore=true'.
The text was updated successfully, but these errors were encountered: