Closed KenteJohn closed 3 years ago
And , there are also differents when I use regualr and bold fonts in Chinese.
Can please paste a screenshot here of how it is and how you expected it to be? This library is "optimized" for left-to-right and top-to-bottom operations. hth
ok, I will show you when I get home.
By the way , I also have another question. When I have many PLTexts in a PLBox, these PLTexts will be huddled together, I dont want this. I want: if one PLText reach the line end, then next PLText will be skip to the next line.
If you want each text to start with a new line, than I recommend you create a "table" like structure - e.g. with a PLVBox
or even a PLTable
.
I am very busy these days. I am sorry to response to you so late. You will understand when you see the picture.
Using setLineSpacing(0.5)
helps to create a layout like this:
I have solved this problem. thanks.
Super. How did you solve it?
just setPaddingTop(-10)
I have another question. How to add a hyperlink with your API, not PDFbox.
There should be some methods in com.helger.pdflayout4.element.text.PLText
to add a hyperlink.
Yes, that is already requested in #13 - let me see what I can do
When I use Chinese font, there will be a default line break, one line displays two lines.