jpeg.setAlignment(LwgImage.MIDDLE);
LwgImage png = LwgImage.getInstance("hitchcock.png");
png.setAlignment(LwgImage.LEFT | LwgImage.UNDERLYING);
for (int i = 0; i < 100; i++) {
document.add(new LwgPhrase("Who is this? "));
}
document.add(gif);
for (int i = 0; i < 100; i++) {
document.add(new LwgPhrase("Who is this? "));
}
document.add(Chunk.NEWLINE);
document.add(jpeg);
for (int i = 0; i < 100; i++) {
document.add(new LwgPhrase("Who is this? "));
}
document.add(png);
for (int i = 0; i < 100; i++) {
document.add(new LwgPhrase("Who is this? "));
}
document.add(gif);
for (int i = 0; i < 100; i++) {
document.add(new LwgPhrase("Who is this? "));
}
document.add(Chunk.NEWLINE);
document.add(jpeg);
for (int i = 0; i < 100; i++) {
document.add(new LwgPhrase("Who is this? "));
}
document.add(png);
for (int i = 0; i < 100; i++) {
document.add(new LwgPhrase("Who is this? "));
}
}
catch(DocumentException de) {
System.err.println(de.getMessage());
}