I am working on a program to convert a txt file to a pdf with alot of changes on line indentation. However, I am unable to find the exact command that can achieve this in iText 7. I am aware that in iText 5 there were methods such as setIndentationLeft() and setIndentationRight() of paragraph object which allowed explicit indenting, but this is not available in the latest version. The latest version only offers setFirstLineIndent() which doesn't suffice for my needs.
This is what I wanna achieve:
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
incididunt ut labore et dolore magna aliqua.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
As you can see, line starts with different indentation. I have considered the use prepending spaces to the line but I find that very inefficient. How can I go about solving this?
