OpenPDF icon indicating copy to clipboard operation
OpenPDF copied to clipboard

How to use Tabs and set Spasing of Tabs

Open MBurchard opened this issue 6 years ago • 3 comments

Hello, I found several hits for iText on how to work with tabs and how to influence the size of those tabs. Unfortunately I couldn't find a way for OpenPDF. Aren't tabs fully supported? Regards

MBurchard avatar Feb 05 '19 16:02 MBurchard

What do you specifically want to do?

Have you checked the JavaDoc? https://librepdf.github.io/OpenPDF/docs-1-2-7/?

Which class is relevant for your use? How can we improve this class?

OpenPDF is a community-driven project. Pull-requests welcome!

andreasrosdal avatar Feb 05 '19 17:02 andreasrosdal

What do you specifically want to do?

I want to use tabs in a paragraph and those tabs should have a width of x.

Have you checked the JavaDoc? https://librepdf.github.io/OpenPDF/docs-1-2-7/?

Of course, I especially checked the classes Paragraph, Phrase and Chunk. I searched all over for the class TabbedChunk and the method setTabSettings.

Which class is relevant for your use? How can we improve this class?

I think one should configure tabs on the Paragraph class, or may be on the Phrase class. First, there could be a default spacing if there is no definition. This could be about 1.3cm like in LibreOffice. In addition, one could use a float list to set the setting. Example: 1. tab at 5cm, 2. at 7.5cm, 3. at 12cm List: 141.73, 212.59, 340.16 (the data are converted into OpenPDF typical widths)

OpenPDF is a community-driven project. Pull-requests welcome!

Yes, I'm aware of that. Unfortunately I don't know anything about the LowLevel API of PDF.

MBurchard avatar Feb 06 '19 08:02 MBurchard

Is this still an issue? Pull requests are still welcome.

asturio avatar Feb 23 '24 20:02 asturio