Everything is link until continued = false
See original GitHub issueBug Report
Description of the problem
Everything after the link is still treated as a link until continued: false
.
In my example below only blue text should be clickable but also the green text is a link.
Code sample
var doc = new PDFDocument();
var stream = doc.pipe(blobStream());
doc.fillColor('red')
.text('Text text text ', {
continued: true
})
.fillColor('blue')
.text('link', {
link: 'http://www.example.com',
continued: true
})
.fillColor('green')
.text(', text text text', {
link: null
});
// end and display the document in the iframe to the right
doc.end();
stream.on('finish', function() {
iframe.src = stream.toBlobURL('application/pdf');
});
Your environment
You can also reproduce the problem in http://pdfkit.org/demo/browser.html with the code sample above.
- pdfkit version: 0.10.0
- Node version: 12.7.0
- Browser version: -
- Operating System: Catalina
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:8 (4 by maintainers)
Top Results From Across the Web
When a USPS Text is not a USPS Text
A fraudulent text message pretending to be from a reputable source – your bank, for example, or the U.S. Postal Service.
Read more >A new fake Citibank phishing scam using advanced ...
The email falsely advises recipients that their account access has been placed on hold until further verification has been provided.
Read more >Trump's false or misleading claims total 30573 over 4 years
On Nov. 2 alone, the day before the 2020 vote, Trump made 503 false or misleading claims as he barnstormed across the country...
Read more >The Future of Truth and Misinformation Online
Experts are evenly split on whether the coming decade will see a reduction in false and misleading narratives online.
Read more >Harvard University Professor and Two Chinese Nationals ...
On her J-1 visa application, Ye falsely identified herself as a “student” and lied about her ongoing military service at the National University ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Is there any ETA for release? 🎆
This has been fixed in master but hasn’t been released yet. see https://github.com/foliojs/pdfkit/blob/master/CHANGELOG.md