Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Java iText ¶¯Ì¬ Éú³É PDF Îĵµ ±í¸ñ ÖÐÎÄÎÊÌâ

import java.awt.Color;
import java.io.FileOutputStream;
import com.lowagie.text.Cell;
import com.lowagie.text.Chapter;
import com.lowagie.text.Document;
import com.lowagie.text.Font;
import com.lowagie.text.Image;
import com.lowagie.text.List;
import com.lowagie.text.ListItem;
import com.lowagie.text.PageSize;
import com.lowagie.text.Paragraph;
import com.lowagie.text.Section;
import com.lowagie.text.Table;
import com.lowagie.text.pdf.BaseFont;
import com.lowagie.text.pdf.PdfWriter;
public class ITextDemo {
    public boolean iTextTest() {
        try {
            /** ʵÀý»¯Îĵµ¶ÔÏó */           
         Document document = new Document(PageSize.A4, 50, 50, 50, 50);
            /** ´´½¨ PdfWriter ¶ÔÏó */           
            PdfWriter.getInstance(document,// Îĵµ¶ÔÏóµÄÒýÓà                   
              new FileOutputStream("d:\\ITextTest.pdf"));//ÎļþµÄÊä³ö·¾¶+ÎļþµÄʵ¼ÊÃû³Æ            
            document.open();// ´ò¿ªÎĵµ             /** pdfÎĵµÖÐÖÐÎÄ×ÖÌåµÄÉèÖã¬×¢ÒâÒ»¶¨ÒªÌí¼ÓiTextAsian.jar°ü */           
            BaseFont bfChinese = BaseFont.createFont("STSong-Light",
        &nb


Ïà¹ØÎĵµ£º

(ת)JAVAµÄ18ÌõBASE

¹ØÓÚJavaµÄ»ù´¡ÖªÊ¶£¬Êµ¼ùÖ¤Ã÷ѧϰOO£¬×îÖÕÁìÎò“¸¸Àà¿ØÖÆÁ÷³Ì£¬×ÓÀàʵÏÖ¾ßÌåµÄÒµÎñÂß¼­”µÄOO˼Ï룬ÐèÒªµÄ²»ÊÇÖÇÉ̶øÊÇ»ù´¡£¬Ò²¾ÍÊÇ˵£¬»ù´¡Ô½ºÃÔ½¿ìÁìÎò£¬ËùÒÔÇëÿλS1ѧϰJavaµÄѧԱÇëÀμÇÒÔÏÂJavaÁìÓòµÄ»ù´¡ÖªÊ¶£¬×îºó×£¸÷λѧԱÔÚ¿ª·¢ÏîÄ¿Ç°¿ÉÒÔÁìÎòOOµÄÕæÚУ¬ÀÏʦҲ»á½ß¾¡È«Á¦ÖúÄãÃÇ´òͨÕâµÀͨÏòJavaµÄ¼«ËÙ ......

JAVA transient ¹Ø¼ü×Ö

transientÊÇJavaÓïÑԵĹؼü×Ö£¬ÓÃÀ´±íʾһ¸öÓò²»ÊǸöÔÏó´®Ðл¯µÄÒ»²¿·Ö¡£µ±Ò»¸ö¶ÔÏó±»´®Ðл¯µÄʱºò£¬transientÐͱäÁ¿µÄÖµ²»°üÀ¨ÔÚ´®Ðл¯µÄ±íʾÖУ¬È»¶ø·ÇtransientÐ͵ıäÁ¿ÊDZ»°üÀ¨½øÈ¥µÄ!
public class User implements Serializable{
private static final long serialVersionUID = 1L;


private Integer id; ......

JavaÄÚ´æÒç³öµÄÏêϸ½â¾ö·½°¸(ת)

¹Ø¼ü×Ö: java.e800.com.cn/articles/2007/413/1176400876794405339_1.htm
http://java.e800.com.cn/articles/2007/413/1176400876794405339_1.html
±àÕß°´£ºJavaÄÚ´æй©ÊÇÿ¸öJava³ÌÐòÔ±¶¼»áÓöµ½µÄÎÊÌ⣬³ÌÐòÔÚ±¾µØÔËÐÐÒ»ÇÐÕý³££¬¿ÉÊDz¼Êðµ½Ô¶¶Ë¾Í»á³öÏÖÄÚ´æÎÞÏÞÖƵÄÔö³¤£¬×îºóϵͳ̱»¾£¬ÄÇôÈçºÎ×î¿ì×îºÃµÄ¼ì²â³ÌÐòµÄÎ ......

JavaµÄ¼¼Êõ·ÖÀà


Ä¿Ç°JAVA2ÓÐÈý¸ö°æ±¾£ºJ2EE£¨ÆóÒµ°æ£©¡¢J2SE£¨±ê×¼°æ£©¡¢J2ME£¨Î¢ÐͰ棩 
1¡¢J2SE£¨JAVA2 Standart Edition£© 
JAVA2±ê×¼°æ Ö§³ÖËùÓÐJAVA±ê×¼¹æ·¶ÖÐËù¶¨ÒåµÄºËÐÄÀຯÊý¿âºÍËùÓеÄJAVA»ù±¾Àà±ð¡£J2SE¶¨Î»ÔÚ¿Í»§¶Ë³ÌÐòµÄÓ¦ÓÃÉÏ¡£ 
2¡¢J2EE£¨JAVA2 Enterprise Edition£© 
......

ѧϰCÓëJavaµÄÀà±È

´óѧµÄʱºòÑ¡ÐÞ¹ýÒ»¸öѧÆÚÈÕÓµ±Ê±ÈÕÓïÀÏʦ¶ÔÎÒÃÇ˵£º“¶ÔÓÚÖйúÈËÀ´½²£¬Ñ§Ï°Ó¢ÓïÒ»°ãÊÇ¿Þ׎øÈ¥£¬Ð¦×ųöÀ´£»Ñ§Ï°ÈÕÓïÔòÊÇЦ׎øÈ¥£¬¿Þ×ųöÀ´”¡£Òâ˼¾ÍÊÇ˵ѧϰӢÓïµÄʱºò£¬ÈëÃŵÄʱºò±È½ÏÀ§ÄÑ£¬µ«ÊÇÖ»Òª¼á³ÖѧÏÂÈ¥£¬×ª±äÁ˺ºÓïµÄ˼άϰ¹ßʱ£¬×î½ü¿ÉÒÔ°ÑÓ¢ÓïѧµÃºÜºÃ¡£¶øÈÕÓﲻͬ£¬Ò»·½ÃæÒòΪÆäÓ뺺ÓïµÄ½ôÃÜ¹Ø ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ