aspose file tools*
The moose likes Java in General and the fly likes empty lines in a document. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "empty lines in a document." Watch "empty lines in a document." New topic
Author

empty lines in a document.

Thyagarajan Ramanujam
Greenhorn

Joined: Mar 24, 2008
Posts: 25
Hi,

I am writing some data into a file along some pictures. Suppose if a file can have 50 lines and already there is some text in 30 lines. Then I have to insert a picture which has a height which will be greater than 20 lines. In this case, the image should be written in the next page in the same document.

What should be done in this case?

Thanks. Any help is appreciated.
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

What type of document are you writing to?


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
Thyagarajan Ramanujam
Greenhorn

Joined: Mar 24, 2008
Posts: 25
MS word document.
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

Are you using the Apache POI library? It has a decent set of API calls which may help you with this.
Joanne Neal
Rancher

Joined: Aug 05, 2005
Posts: 3166
    
  10
Or you can try some of the suggestions here


Joanne
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: empty lines in a document.
 
Similar Threads
Newbie-Quest. How to split window in frames
JDOM parsing and memory
Parsing the documents
Content (MIME)type in websphere
number of lines in a document