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.

Using continued with center and right alignment is broken

See original GitHub issue

Using continued will not remeasure the text position in order to account for new text being added.

doc.text('Normal Text ', {
    align: 'left',
    continued: true
}).text('Non-overlapping text');
doc.moveDown();
doc.text('Normal Text ', {
    align: 'center',
    continued: true
}).text('Overlapping text');
doc.moveDown();
doc.text('Normal Text ', {
    align: 'right',
    continued: true
}).text('Overlapping text');

Produces the following: image

Issue Analytics

  • State:open
  • Created 9 years ago
  • Reactions:11
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
NikolaiMecommented, Sep 2, 2021

Hey all,

I created a package to solve this issue. Maybe it helps some of you!

textbox-for-pdfkit

0reactions
fernando-s97commented, Apr 19, 2021

Any updates on that?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Align text left and right on same line | Microsoft Word - YouTube
Align text left and right on same line | Microsoft WordVideo guide to use alignment in word...
Read more >
Center one and right/left align other flexbox element
The simplest solution will be to justify-content center to the parent container and giving margin-left auto to first ...
Read more >
How to Align or Justify Text in Word (4 Ways with Shortcuts)
Align center – select the paragraph(s) and press Ctrl + E to align center. Justify – select the paragraph(s) and press Ctrl +...
Read more >
text-align-last - CSS: Cascading Style Sheets - MDN Web Docs
The affected line is aligned per the value of text-align , unless text-align is justify , in which case the effect is the...
Read more >
Check Alignment is completely broken - Tech Support is No ...
Go to the File menu, then select Printer Setup. Select the type of form in the Form Name drop-down list. Choose Continuous (Perforated...
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