crabbly / crabbly/Print.js

Erro Out of Memory, print PDF

Open
#656 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
4.5k
Forks
688
PR merge metrics
No merged PRs in 30d

Description

setTimeout(() => {
printJS({
printable: id,
type: 'pdf',
base64: true,
showModal: true,
onPdfOpen: true,
fallbackPrintable: () => console.log("FallbackPrintable"),
onPrintDialogClose: () => console.log('The print dialog was closed'),
onError: function (error) {
alert('Error found => ' + error.message)
}
});
console.log("TimeOut Executado");
}, 3000)

When the file is too big it gives an error in the browser, Erro Out of Memory.
example: 120mb.

When I do with smaller files it works perfectly.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the printJS call shown in the issue, focusing on the PDF path with type set to pdf and base64 enabled. Reproduce the browser failure using a roughly 120 MB file and compare it with a smaller file; done means the large-file case no longer produces the reported out-of-memory error or its expected limitation is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.