print html with my data in another page
- Dominant language
- JavaScript
- Stars
- 4.5k
- Forks
- 688
- PR merge metrics
- No merged PRs in 30d
Description
My data:
/hello.html
`
hello
`and print page /print.html
```
window.printPdfBase64 = function () {
fetch('hello.html').then(function (response) {
response.text().then(function (mydata) {
printJS({
printable: mydata,
type: 'html'
})
})
})
}
```
But it dont work
help me :(
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the example using hello.html and print.html, then trace the window.printPdfBase64 function through the fetch response and the printJS call. Compare the fetched HTML with the input expected by printJS, and consider the issue complete only when the requested HTML prints or the exact limitation and required usage are documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 15/100