I have created an application which puts all the images at a user defined location in a rtf document. The code is working fine and the images are getting inserted.
However, if I open the document and add some text manually and save the file, the file size increases dramatically. For eg, initally the doc size was 277 Kb , but when I added some text, like , 'Hello' the file size increased to 40 MB.
Can someone please explain why? I am using the iText API for inserting the images.
com.lowagie.text.Image image = com.lowagie.text.Image.getInstance(listOfScreenshots[i].toString());
image.scaleAbsolute(400, 300);
doc.add(image);
log.createLog(listOfScreenshots[i]);