Team,
We are using Aspose.Word (for Java). When i use this to extract a word document that contains tables, it extracts the text and retains the table formatting. But i don’t see the table border.
I have attached the part of the code that extracts the word doc.
Hi
Thanks for your inquiry. You can try creating your own converter to achieve what you need. Please see the attached class. Also see the following code:
// Open document
Document doc = new Document("C:\\Temp\\in.doc");
String docString = CustomToTxtConvertor.Convert(doc);
// Save output
FileWriter txtFileWriter = new FileWriter("C:\\Temp\\out.txt");
txtFileWriter.write(docString);
txtFileWriter.close();
The output looks like the following
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.