opensagres / xdocreport

XDocReport means XML Document reporting. It's Java API to merge XML document created with MS Office (docx) or OpenOffice (odt), LibreOffice (odt) with a Java model to generate report and convert it if you need to another format (PDF, XHTML...).
https://github.com/opensagres/xdocreport
1.2k stars 368 forks source link

ODT --> PDF Tabbing issues #51

Open Bijal12 opened 9 years ago

Bijal12 commented 9 years ago

I am looking into xdocreport to replace a Windows process which has an OO install and performs ODT -> PDF conversions. We have a large number of ODT documents which contain tabs.

I read the xdocreport Wiki on the iText issue with Tabs and see this as a non-starter for moving to xdocreport for odt conversions. Is there a work-around for this issue other than removing the tabs from the odts?

I also read this on iText: http://itextpdf.com/sandbox/objects/Tabs and was wondering if there is now a way to support tabbing in ODT --> PDF conversions?

Thanks, Kevin

angelozerr commented 8 years ago

Thanks Kevin for your information. It seems that thi sfeature is only available for iText 5.x (and not for iText 2.1.7)

No time to study that, any contribution are welcome!

angelozerr commented 8 years ago

@blagae is there any chance that you see this issue?

blagae commented 8 years ago

I think it would require a lot of work to get this to function reliably. I'll see what I can do, but I don't know how ODF/DOCX stores that information. So this will take a while.

If I don't get it done, I'll post the preliminary results of my investigations here.

raphaelazzolini commented 8 years ago

I was able to support tabbing in ODT-> PDF conversions in itext5 returning Chunk.TABBING in getElement() method of StylableTab class, like in this example: http://developers.itextpdf.com/examples/itext-building-blocks/tabbing-examples

Also, I put this.setTabSettings(new TabSettings(56f)); in the StylableParagraph constructors.