Convert the RTF to PDF using JAVA which reads the tables in rtf document
Asked Answered
S

1

8

What ways are there to convert an RTF to PDF that contains a table in the document in Windows or Unix using Java?

The option we have tried here are:

  • ITEXT - But the table inside the rtf document is not coming properly once converted to PDF. In short the PDF doesn't contain the Table. Here is the code gist. ITEXT for rtf to pdf java code gist
  • POI - Does apache POI support RTF document parsing? But I found that it is not supported. POI support for RTF
  • TIKA - Using Tika I am able to read the document, but the table in RTFis not parsed correctly and I don't know how to convert it to PDF. TIKA java code for reading rtf

We have looked into other options. Is possible to develop or convert RTF to PDF with Java?

Other options we looked into are in this link

Stand answered 17/4, 2015 at 11:2 Comment(0)
G
1

Yes, its possible. Take a look at JasperReports!

http://community.jaspersoft.com/project/jasperreports-library

There is also a good API available from Jaspersoft to code your custom PDF-engine and your custom datasource. Start with iReport (UI-Editor).

Gifford answered 20/4, 2015 at 17:3 Comment(2)
Thats great ! Before checking jasperreports-library please can you tell me that is it possible to do it in java using eclipse editor ? any tutorial or github repo or some thing which can help me to get started for using jasperreports-library . Thanks a lot !Stand
Yes, you can easy code against the API with eclipse (or some other IDE). Just google "jasperreports create pdf with java":).Gifford

© 2022 - 2024 — McMap. All rights reserved.