You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi - I'm using pdf-lib for JS (via https://www.npmjs.com/package/pdf-lib) and I'm stuck figuring out how to flow text from one page onto the next. Essentially, when text would flow off the bottom of a page, I'd like a new page to be added, and the text resume on that page.
Currently the best I've managed to do is to limit the amount of text displayed on each page to what will fit on one page, but this results in a lot of wasted space on each page (or, if I get the amount of text wrong, the text flows off the bottom of the page and is lost).
The pdf-lib Cookbook for Java/PHP includes a TextFlow object that would do the trick, but it's not included in the JS version that I'm using.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi - I'm using pdf-lib for JS (via https://www.npmjs.com/package/pdf-lib) and I'm stuck figuring out how to flow text from one page onto the next. Essentially, when text would flow off the bottom of a page, I'd like a new page to be added, and the text resume on that page.
Currently the best I've managed to do is to limit the amount of text displayed on each page to what will fit on one page, but this results in a lot of wasted space on each page (or, if I get the amount of text wrong, the text flows off the bottom of the page and is lost).
The pdf-lib Cookbook for Java/PHP includes a TextFlow object that would do the trick, but it's not included in the JS version that I'm using.
Any suggestions?
Beta Was this translation helpful? Give feedback.
All reactions