Next Line to display in PDF

0
Hi, I am displaying a String value is PDF using PDF Template in mendix. I want to display the String in between next line characters. so this String is a concatination of some value then System.getProperty("line.separator") and then Some value etc. through Java Action Call. I am able to see next line output in GUI. But when I generate pDF, next line is trimmed off and not able to see next line. Any Advice on this?
asked
2 answers
2

Have you tried to set the 'Render XHTML' option to true for the dynamic label in the document template? See https://world.mendix.com/display/refguide5/Dynamic+label+(document+template).

You can then use <br /> or <p> and </p> tags in the string that is displayed in the dynamic label. This should render the new lines. For example: <p>Line 1</p><p>Line 2</p>

answered
0

Next line characters are trimmed in the PDF output, HTML br tags too. You could wrap your content in a HTML p tag. Be sure to use a close tag too because it would get rejected in the export without closing tag.

answered