Magazine
 
Tips & Tricks
 

to provide a wide range of Java news, information and invention with latest update and technology to Java lovers. This is a small effort of Rose India organization to provide the latest happening in the Java to its online users
every month.”;
String p4 = “JavaJazzUp Magazine is committed to inform and educate Java Professionals and software engineers. Each issue of JavaJazzUp contains news, trends, and
latest updates in the Java world. Featured topics include networking, security, policy and advocacy, Java in telecom, mobile and computer, wireless, eLearning, technology funding, professional development, technology support—all the important issues for administration and tutorials. JavaJazzUp is a monthly online Java Magazine that also contains technology reviews, new researches and latest Java Services. JavaJazzUp online magazine provides a wide range of coverage as well as in-depth information regarding technology and its usage.”;
try {
Chapter chapter1,chapter2;
Paragraph
paragraph1,paragraph2,paragraph3,
paragraph4,paragraph5;
Chunk chunk;
Font font;
Image image;
// Create a PDF document writer.
PdfWriter.getInstance(document,new
FileOutputStream(“MyPDF.pdf”));
//Open the document
document.open();
paragraph1 = new Paragraph();
font = new Font(Font.COURIER,
Font.DEFAULTSIZE, Font.BOLD);
// Set the font for the chunk.
chunk = new Chunk(“About JavaJazzUp
Magazine”, font);
// Set underline for the content of
chunk.
chunk.setUnderline (0.2f, -2f);
paragraph1.add(chunk);
paragraph2=new Paragraph(p2);
// Set the alignment for the content of
the paragraph.

 

paragraph2.setAlignment
(Element.ALIGN_JUSTIFIED);
paragraph3=new Paragraph();
image = Image.getInstance
(“coversept.gif”);
// Set alignment for the image to be
pasted.
image.setAlignment(Image.MIDDLE);
// Set the size of the image.
image.scalePercent(75);
// Add image to the paragraph.
paragraph3.add(image);
paragraph4=new Paragraph(p4);
paragraph4.setAlignment
(Element.ALIGN_JUSTIFIED);
// Create chapters/pages of the pdf
file.
chapter1=new Chapter(paragraph1,1);
chapter2=new Chapter(paragraph4,2);
// Hide page number from chapters.
chapter1.setNumberDepth(0);
chapter2.setNumberDepth(0);
chapter1.add(paragraph2);
chapter1.add(paragraph3);
document.add(chapter1);
document.add(chapter2);
}
catch(DocumentException de) {
System.err.println(de.getMessage());
}
catch(IOException ioe) {
System.err.println(ioe.getMessage());
}
//Close the document
document.close();
}
}

Oct 2007 | Java Jazz Up | 72
previous
index
next
 
Pages: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29,

30
, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53 , 54, 55, 56, 57,

58
, 59, 60, 61, 62, 63 , 64, 65 , 66 , 67 , 68 , 69 , 70, 71, 72, 73, 74, 75, 76, 77, 78,   Download PDF