question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Everything is link until continued = false

See original GitHub issue

Bug 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:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

5reactions
anttikoncommented, Nov 13, 2019

Is there any ETA for release? 🎆

3reactions
HughePaulcommented, Nov 4, 2019

This has been fixed in master but hasn’t been released yet. see https://github.com/foliojs/pdfkit/blob/master/CHANGELOG.md

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found