File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Reply 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: 3268

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: 3268

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: 3011
    
    9
Or you can try some of the suggestions here


Joanne
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: empty lines in a document.
 
Similar Threads
Newbie-Quest. How to split window in frames
Content (MIME)type in websphere
number of lines in a document
JDOM parsing and memory
Parsing the documents