ITEXT PDF / CATATAN</>↗iText PDF05 Des 2011
The com.itextpdf.text.Paragraph class represent a paragraph in PDF document. The following example show you how to create a simple paragraph. First we create a Paragraph object and then add some texts into it using the Chunk object. package org.kodejava.itextpdf; import com.itextpdf.text.Chunk; import com.itextpdf.text.Document; import com.itextpdf.text.DocumentException; import com.itextpdf.text.Paragraph; import com.itextpdf.text.pdf.PdfWriter; import java.io.FileNotFoundEx...
ITEXT PDF / CATATAN</>↗iText PDF04 Des 2011
This example shows how to customize the iText Phrase object. We can change the default line spacing of the Phrase object by passing a float parameter. We can also use the setLeading() method. We can also set the default font for the Phrase so that every Chunk added to this object will have the same […]
ITEXT PDF / CATATAN</>↗iText PDF04 Des 2011
The com.itextpdf.text.Phrase represent a phrase of text in the Document object. The Phrase object knows how to add spacing between lines of text. So if we add some phrase into the document it will start on a new line when it reaches the right edge of the document. The default leading / line spacing of […]
ITEXT PDF / CATATAN</>↗iText PDF04 Des 2011
A chunk com.itextpdf.text.Chunk is the smallest significant part that can be added to a document. A chunk is a string with Font information. A chunk doesn’t add line breaks, a paragraph spacing or any other spacing. The layout parameters of a chunk should be defined in the object to which this chunk is added. When […]
ITEXT PDF / CATATAN</>↗iText PDF04 Des 2011
The com.itextpdf.text.Document is the core class of the iText library. This class represents a pdf document. Basically to work with a document we must first create an instance of a Document. After the instance created we open the document by calling the open() method. To add some content into the document we can use the […]
CORE API / CATATAN</>↗Core API24 Agt 2011
You can use ThreadGroup.isDestroyed() method to check whether a thread group and its subgroups has been destroyed. package org.kodejava.lang; public class CheckGroupDestroy { public static void main(String[] args) { ThreadGroup grandParent = new ThreadGroup("GrandParent"); ThreadGroup uncle = new ThreadGroup(grandParent, "Uncle"); ThreadGroup parent = new ThreadGroup(grandParent, "Parent"); ThreadGroup son = new ThreadGroup(parent, "Son"); ThreadGroup daughter = […]