I am making an application on android studio and use itext pdf 5, I want every time you finish a paragraph the missing space is filled with scripts, ie :
paragraph 1:
text text text text end .-------------------
paragraph 2:
text text text text end .-------------------
etc.
Is it possible?
Although your question is far from clear (what do you mean when you write the missing space is filled with scripts? what are scripts?), I'm going to assume that you want something like this:
There are plenty of examples on the official web site that involve separators. See the section entitled Separator examples.
The PDF in the screen shot was created like this:
If the word scripts means something else, for instance if you meant to say dashes, you should use another type of separator. See for instance the answer to the question How to create a custom dashed line separator? The custom
LineSeparator
created in that example can also be wrapped in aChunk
and that chunk can be used to extend the paragraph until the end of the line. You can move that line up and down by tweaking they
coordinate.