Win a copy of GANs in ActionE this week in the AI forum
or WebAssembly in Action in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

Write word document

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am searching API for writing word document.
The way iText provides extensive functionality for writing into PDF, same i need for writing into word.
But I am unable to find.
I hv gone throgh Apache POI site, but i dont think it will serve my purpose.

My requirement -> writing text, images, tables, image sizing, header/footer, font styling etc..

Please if some one can help...
 
Sheriff
Posts: 21842
105
Eclipse IDE Spring VI Editor Chrome Java Ubuntu Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The MS Word format is not as open as the PDF format. That makes it hard for people to write APIs for reading / manipulating it. Most libraries, like POI, have been created using reverse engineering of existing Word documents.

You could try using OpenOffice.org in server mode. I haven't done anything like that myself so I can't help you with it though. JODConverter uses this technique for converting from and to Word documents.
 
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From my experience with POI it's unlikely that you will be able to create complex Word document with it - the DOC(X) part of it is way behind the XSL(X) part.

RTF is a much easier format to generate, though, is much better documented, and support everything you mention. Plus, every word processor can open it. Maybe that would be an alternative? iText 2.1 supports RTF as an output format.
 
Rototillers convert rich soil into dirt. Please note that this tiny ad is not a rototiller:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!