- Code: Select all
WordDocument doc = new WordDocument();
WordParagraph p1 = new WordParagraph("Sample Text");
WordParagraph p2 = new WordParagraph("Sample Text2");
doc.add(p1);
doc.add(p2);
But there is always an empty line below the content of the paragraph (this looks like spacing or margin or something). Like this:
- Code: Select all
Sample Text
Sample Text2
But in the normal case I don't want to have this empty space below the paragraph. I'm still trying ...