Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Some know how to convert a file. Doc to image using java?

 
juliano.pinheiro juliano
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Some know how to convert a file. Doc to image using java?
 
Campbell Ritchie
Sheriff
Posts: 48445
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please explain; .doc files are not images but writing, so how can you convert it to an image?

I shall move this discussion; it is too difficult for "beginning".
 
juliano.pinheiro juliano
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Campbell Ritchie wrote:Please explain; .doc files are not images but writing, so how can you convert it to an image?

I shall move this discussion; it is too difficult for "beginning".



I need to view the file as an image in the browser instead .doc file.
 
Manuel Petermann
Ranch Hand
Posts: 177
Hibernate Linux Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This task is not as easy as it may seem to you.
I suggest you have a look at docx4j or apache poi. I believe those libraries are capable of doing what you want.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13056
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you talking image as in screen capture - which would be limited to screen size, or whole long document?

PDF is your best bet for a any size document.
 
Shahzad Latif
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is not an easy task to convert the doc files to images using barebone programming. You might use some component for that matter. You may try Aspose.Words for Java. Aspose.Words for Java provides feature of converting doc files to images. This is a simple Jar having an easy to learn and implement API. Please see if this might help in your scenario.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic