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

out of box failure - first time user #705

Open
John-L opened this issue Jul 6, 2024 · 0 comments
Open

out of box failure - first time user #705

John-L opened this issue Jul 6, 2024 · 0 comments

Comments

@John-L
Copy link

John-L commented Jul 6, 2024

I'm sure I'm missing something, I've tried the following (two different sources for script, two different invocations)

<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.9.3/html2pdf.bundle.min.js" integrity="sha512-YcsIPGdhPK4P/uRW6/sruonlYj+Q7UHWeKfTAkBW+g83NKM+jMJFJ4iAPfSnVp7BKD4dKMHmVSvICUbE/V1sSw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script> -->
<script src="./html2pdf.bundle.min (1).js"></script>
<script>
window.alert("before...");
<!-- result = html2pdf(document.body); -->
result = html2pdf().from(document.body).save();
console.log(JSON.stringify(result));
window.alert("...after ");
</script>

In all the above, console shows:

{"9q0e4kzfxeo":11,"_subscribers":[]}
0ms html2canvas: html2canvas $npm_package_version html2pdf.bundle.min (1).js:6
111ms html2canvas: Canvas renderer initialized (794x257 at 142.35000610351562,0) with scale 1.25 html2pdf.bundle.min (1).js:6

Nothing other than the console output happends. TIA.

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

1 participant