parallax / parallax/jsPDF

The jsPDF html module generates a blank page when the browser has Grammarly extension

Open
#3,370 12 comments 8 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bug
Dominant language
JavaScript
Stars
31.3k
Forks
4.8k
PR merge metrics
No merged PRs in 30d

Description

I am using jsPdf v2.5.0 to create pdf from html. use doc.html() method.
doc.html(html).then(value => { doc.save(sample.pdf); });

I got the issue when i turn on the grammarly extension in chrome. the downloaded file is blank. if i turn it off. the download file works.

Can you please take a look at this issue.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with jsPDF v2.5.0 using doc.html() in Chrome with the Grammarly extension enabled and disabled. Compare the generated PDFs and trace the html module's browser rendering path to identify why the extension produces a blank page. Done means doc.html() generates the expected PDF while Grammarly is enabled.

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
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.