nimpdf icon indicating copy to clipboard operation
nimpdf copied to clipboard

The samples don't contain multiline text

Open MarcWeber opened this issue 2 years ago • 2 comments

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.

MarcWeber avatar Mar 06 '23 12:03 MarcWeber

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

jangko avatar Mar 06 '23 14:03 jangko

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.

MarcWeber avatar Mar 06 '23 18:03 MarcWeber