Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The samples don't contain multiline text #42

Open
MarcWeber opened this issue Mar 6, 2023 · 2 comments
Open

The samples don't contain multiline text #42

MarcWeber opened this issue Mar 6, 2023 · 2 comments

Comments

@MarcWeber
Copy link

I know FPDF etc can do it.
This library says was inspired by.
but the demo.pdf doesn't contain a paragraph spanning multiple lines.
It would be nice if it could be documented somewhere how to do it / whether its supported.
Something like try_put_text(width, text) returning height and remaining text not fitting on page or similar.

@jangko
Copy link
Owner

jangko commented Mar 6, 2023

multiline text is not part of pdf specification. it should be implemented in library or app using nimpdf primitives.

@MarcWeber
Copy link
Author

It's a common use case eventually. And as I said fpdf can do it: http://www.fpdf.org/en/doc/multicell.htm
So it should eventually be documented maybe goal/no goal.
Maybe this issue can be used to brainstorm about solutions or what to document.
In the end it would be part of something bigger: A layout engine. Haskell has many doc libraries for formatting text and whatnot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants