danfickle / openhtmltopdf

An HTML to PDF library for the JVM. Based on Flying Saucer and Apache PDF-BOX 2. With SVG image support. Now also with accessible PDF support (WCAG, Section 508, PDF/UA)!
https://danfickle.github.io/pdf-templates/index.html
Other
1.93k stars 360 forks source link

how to handle text with \n #968

Open amananku-pintar opened 7 months ago

amananku-pintar commented 7 months ago

i some text which includes \n that represent line break

ex: My name is XYZ \n I am working in a startup \n i am a software engineer

is it possible to replace this \n with
?

final output be My name is XYZ I am working in a startup i am a software engineer