{filelink=10360}
/***** Code de MesExemples.com *******/
/**
* @(#)ExempleTEXT_RENDER_MODE_FILL.java
*
*
* @author
*sakoba(java.mesexemples.com) @version 1.00 2013/4/26
*/
import java.io.FileOutputStream;
import java.io.IOException;
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.PdfContentByte;
import com.itextpdf.text.pdf.PdfWriter;
import com.itextpdf.text.BaseColor;
public class ExempleTEXT_RENDER_MODE_INVISIBLE {
public static void main(String[] args) {
Document document = new Document();
try {
PdfWriter.getInstance(document,
new FileOutputStream("c:/renduTEXT_RENDER_MODE_INVISIBLE.pdf"));
document.open();
Paragraph p = new Paragraph("Rendu du texte :");
document.add(p);
Chunk chunk = new Chunk("Exemple de rendu");
chunk.setTextRenderMode(PdfContentByte.TEXT_RENDER_MODE_INVISIBLE, 100f,
new BaseColor(0xFF, 0x00, 0x00));
document.add(chunk);
} catch (Exception ioe) {
System.err.println(ioe.getMessage());
}
document.close();
}
}