亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? pdfdocument.java

?? iText可以制作中文PDF文件的JAVA源程序最新版下載
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
/* * $Name:  $ * $Id: PdfDocument.java,v 1.152 2002/11/19 08:33:36 blowagie Exp $ * * Copyright 1999, 2000, 2001, 2002 by Bruno Lowagie. * * The contents of this file are subject to the Mozilla Public License Version 1.1 * (the "License"); you may not use this file except in compliance with the License. * You may obtain a copy of the License at http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the License. * * The Original Code is 'iText, a free JAVA-PDF library'. * * The Initial Developer of the Original Code is Bruno Lowagie. Portions created by * the Initial Developer are Copyright (C) 1999, 2000, 2001, 2002 by Bruno Lowagie. * All Rights Reserved. * Co-Developer of the code is Paulo Soares. Portions created by the Co-Developer * are Copyright (C) 2000, 2001, 2002 by Paulo Soares. All Rights Reserved. * * Contributor(s): all the names of the contributors are added in the source code * where applicable. * * Alternatively, the contents of this file may be used under the terms of the * LGPL license (the "GNU LIBRARY GENERAL PUBLIC LICENSE"), in which case the * provisions of LGPL are applicable instead of those above.  If you wish to * allow use of your version of this file only under the terms of the LGPL * License and not to allow others to use your version of this file under * the MPL, indicate your decision by deleting the provisions above and * replace them with the notice and other provisions required by the LGPL. * If you do not delete the provisions above, a recipient may use your version * of this file under either the MPL or the GNU LIBRARY GENERAL PUBLIC LICENSE. * * This library is free software; you can redistribute it and/or modify it * under the terms of the MPL as stated above or under the terms of the GNU * Library General Public License as published by the Free Software Foundation; * either version 2 of the License, or any later version. * * This library is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU Library general Public License for more * details. * * If you didn't download this code from the following link, you should check if * you aren't using an obsolete version: * http://www.lowagie.com/iText/ */package com.lowagie.text.pdf;import com.lowagie.text.StringCompare;import com.lowagie.text.Anchor;import com.lowagie.text.Annotation;import com.lowagie.text.Cell;import com.lowagie.text.DocListener;import com.lowagie.text.Document;import com.lowagie.text.DocumentException;import com.lowagie.text.Element;import com.lowagie.text.Chunk;import com.lowagie.text.Graphic;import com.lowagie.text.HeaderFooter;import com.lowagie.text.Image;import com.lowagie.text.ImgWMF;import com.lowagie.text.List;import com.lowagie.text.ListItem;import com.lowagie.text.Meta;import com.lowagie.text.Header;import com.lowagie.text.Phrase;import com.lowagie.text.Paragraph;import com.lowagie.text.Rectangle;import com.lowagie.text.Section;import com.lowagie.text.Table;import com.lowagie.text.Watermark;import com.lowagie.text.ExceptionConverter;import java.awt.Color;import java.net.URL;import java.util.ArrayList;import java.util.Arrays;import java.util.HashMap;import java.util.TreeMap;import java.util.Iterator;import java.util.ListIterator;import java.io.IOException;/** * <CODE>PdfDocument</CODE> is the class that is used by <CODE>PdfWriter</CODE> * to translate a <CODE>Document</CODE> into a PDF with different pages. * <P> * A <CODE>PdfDocument</CODE> always listens to a <CODE>Document</CODE> * and adds the Pdf representation of every <CODE>Element</CODE> that is * added to the <CODE>Document</CODE>. * * @see		com.lowagie.text.Document * @see		com.lowagie.text.DocListener * @see		PdfWriter */class PdfDocument extends Document implements DocListener {        /**     * <CODE>PdfInfo</CODE> is the PDF InfoDictionary.     * <P>     * A document's trailer may contain a reference to an Info dictionary that provides information     * about the document. This optional dictionary may contain one or more keys, whose values     * should be strings.<BR>     * This object is described in the 'Portable Document Format Reference Manual version 1.3'     * section 6.10 (page 120-121)     */        public class PdfInfo extends PdfDictionary {                // constructors                /**         * Construct a <CODE>PdfInfo</CODE>-object.         */                PdfInfo() {            super();            addProducer();            addCreationDate();        }                /**         * Constructs a <CODE>PdfInfo</CODE>-object.         *         * @param		author		name of the author of the document         * @param		title		title of the document         * @param		subject		subject of the document         */                PdfInfo(String author, String title, String subject) {            this();            addTitle(title);            addSubject(subject);            addAuthor(author);        }                /**         * Adds the title of the document.         *         * @param	title		the title of the document         */                void addTitle(String title) {            put(PdfName.TITLE, new PdfString(title, PdfObject.TEXT_UNICODE));        }                /**         * Adds the subject to the document.         *         * @param	subject		the subject of the document         */                void addSubject(String subject) {            put(PdfName.SUBJECT, new PdfString(subject, PdfObject.TEXT_UNICODE));        }                /**         * Adds some keywords to the document.         *         * @param	keywords		the keywords of the document         */                void addKeywords(String keywords) {            put(PdfName.KEYWORDS, new PdfString(keywords, PdfObject.TEXT_UNICODE));        }                /**         * Adds the name of the author to the document.         *         * @param	author		the name of the author         */                void addAuthor(String author) {            put(PdfName.AUTHOR, new PdfString(author, PdfObject.TEXT_UNICODE));        }                /**         * Adds the name of the creator to the document.         *         * @param	creator		the name of the creator         */                void addCreator(String creator) {            put(PdfName.CREATOR, new PdfString(creator, PdfObject.TEXT_UNICODE));        }                /**         * Adds the name of the producer to the document.         */                void addProducer() {            // This line may only be changed by Bruno Lowagie or Paulo Soares            put(PdfName.PRODUCER, new PdfString(getVersion()));            // Do not edit the line above!        }                /**         * Adds the date of creation to the document.         */                void addCreationDate() {            put(PdfName.CREATIONDATE, new PdfDate());        }                void addkey(String key, String value) {            if (key.equals("Producer") || key.equals("CreationDate"))                return;            put(new PdfName(key), new PdfString(value, PdfObject.TEXT_UNICODE));        }    }        /**     * <CODE>PdfCatalog</CODE> is the PDF Catalog-object.     * <P>     * The Catalog is a dictionary that is the root node of the document. It contains a reference     * to the tree of pages contained in the document, a reference to the tree of objects representing     * the document's outline, a reference to the document's article threads, and the list of named     * destinations. In addition, the Catalog indicates whether the document's outline or thumbnail     * page images should be displayed automatically when the document is viewed and wether some location     * other than the first page should be shown when the document is opened.<BR>     * In this class however, only the reference to the tree of pages is implemented.<BR>     * This object is described in the 'Portable Document Format Reference Manual version 1.3'     * section 6.2 (page 67-71)     */        class PdfCatalog extends PdfDictionary {                // constructors                /**         * Constructs a <CODE>PdfCatalog</CODE>.         *         * @param		pages		an indirect reference to the root of the document's Pages tree.         */                PdfCatalog(PdfIndirectReference pages) {            super(CATALOG);            put(PdfName.PAGES, pages);        }                /**         * Constructs a <CODE>PdfCatalog</CODE>.         *         * @param		pages		an indirect reference to the root of the document's Pages tree.         * @param		outlines	an indirect reference to the outline tree.         */                PdfCatalog(PdfIndirectReference pages, PdfIndirectReference outlines) {            super(CATALOG);            put(PdfName.PAGES, pages);            put(PdfName.PAGEMODE, PdfName.USEOUTLINES);            put(PdfName.OUTLINES, outlines);        }                /**         * Adds the names of the named destinations to the catalog.         * @param localDestinations the local destinations         */        void addNames(TreeMap localDestinations, ArrayList documentJavaScript, PdfWriter writer) {            if (localDestinations.size() == 0 && documentJavaScript.size() == 0)                return;            try {                PdfDictionary names = new PdfDictionary();                if (localDestinations.size() > 0) {                    PdfArray ar = new PdfArray();                    for (Iterator i = localDestinations.keySet().iterator(); i.hasNext();) {                        String name = (String)i.next();                        Object obj[] = (Object[])localDestinations.get(name);                        PdfIndirectReference ref = (PdfIndirectReference)obj[1];                        ar.add(new PdfString(name));                        ar.add(ref);                    }                    PdfDictionary dests = new PdfDictionary();                    dests.put(PdfName.NAMES, ar);                    names.put(PdfName.DESTS, writer.addToBody(dests).getIndirectReference());                }                if (documentJavaScript.size() > 0) {                    String s[] = new String[documentJavaScript.size()];                    for (int k = 0; k < s.length; ++k)                        s[k] = Integer.toHexString(k);                    Arrays.sort(s, new StringCompare());                    PdfArray ar = new PdfArray();                    for (int k = 0; k < s.length; ++k) {                        ar.add(new PdfString(s[k]));                        ar.add((PdfIndirectReference)documentJavaScript.get(k));                    }                    PdfDictionary js = new PdfDictionary();                    js.put(PdfName.NAMES, ar);                    names.put(PdfName.JAVASCRIPT, writer.addToBody(js).getIndirectReference());                }                put(PdfName.NAMES, writer.addToBody(names).getIndirectReference());            }            catch (IOException e) {                throw new ExceptionConverter(e);            }        }                /** Sets the viewer preferences as the sum of several constants.         * @param preferences the viewer preferences         * @see PdfWriter#setViewerPreferences         */                void setViewerPreferences(int preferences) {            if ((preferences & PdfWriter.PageLayoutSinglePage) != 0)                put(PdfName.PAGELAYOUT, PdfName.SINGLEPAGE);            else if ((preferences & PdfWriter.PageLayoutOneColumn) != 0)                put(PdfName.PAGELAYOUT, PdfName.ONECOLUMN);            else if ((preferences & PdfWriter.PageLayoutTwoColumnLeft) != 0)                put(PdfName.PAGELAYOUT, PdfName.TWOCOLUMNLEFT);            else if ((preferences & PdfWriter.PageLayoutTwoColumnRight) != 0)                put(PdfName.PAGELAYOUT, PdfName.TWOCOLUMNRIGHT);            if ((preferences & PdfWriter.PageModeUseNone) != 0)                put(PdfName.PAGEMODE, PdfName.USENONE);            else if ((preferences & PdfWriter.PageModeUseOutlines) != 0)                put(PdfName.PAGEMODE, PdfName.USEOUTLINES);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩一区二区三区在线| 欧美群妇大交群的观看方式| 亚洲精品在线观| 日本午夜精品视频在线观看| 欧美亚洲免费在线一区| 亚洲国产成人porn| 日韩一区二区视频| 另类人妖一区二区av| 精品国产一区二区三区av性色| 欧美日韩极品在线观看一区| 日韩三级精品电影久久久| 色噜噜狠狠成人网p站| 石原莉奈在线亚洲三区| 精品乱码亚洲一区二区不卡| 91视频xxxx| 日韩精品一卡二卡三卡四卡无卡| 亚洲二区在线视频| 日本成人超碰在线观看| 国内精品伊人久久久久av影院| 国产精品日日摸夜夜摸av| 99国产精品久久久| 精品一区二区三区免费| 亚洲国产日韩一级| 免费观看日韩av| 亚洲高清不卡在线| 美腿丝袜在线亚洲一区| 亚洲精品视频免费观看| 久久女同精品一区二区| 日本黄色一区二区| 日韩小视频在线观看专区| 久久精品免费在线观看| 538在线一区二区精品国产| 国产尤物一区二区| 日本中文一区二区三区| 国产一区二区成人久久免费影院| www.综合网.com| 国产综合色视频| 91麻豆福利精品推荐| 欧美一级艳片视频免费观看| 在线欧美一区二区| 色欧美日韩亚洲| 91蜜桃免费观看视频| 日韩色视频在线观看| 国产日韩精品一区二区三区在线| 欧美美女喷水视频| 欧美日韩高清在线| 欧美极品美女视频| 国产日韩欧美精品在线| 亚洲成人精品一区二区| 免费观看91视频大全| 91在线视频网址| 久久久一区二区三区捆绑**| 亚洲成人一区二区在线观看| 国产不卡一区视频| 国产乱淫av一区二区三区| 国内精品不卡在线| 欧美日韩精品一区二区三区| 亚洲国产精品成人综合色在线婷婷| 五月婷婷激情综合网| 美女网站在线免费欧美精品| 色综合天天综合狠狠| 欧美午夜宅男影院| 椎名由奈av一区二区三区| 国产精品电影一区二区三区| 亚洲免费看黄网站| 午夜一区二区三区视频| 99精品视频在线观看| 国产精品午夜久久| 国产成人精品在线看| 一本久道久久综合中文字幕| 国产视频一区二区在线观看| 国内久久精品视频| 久久精品人人做| 大白屁股一区二区视频| 色综合天天视频在线观看 | 美女一区二区视频| 色88888久久久久久影院野外| 欧美韩国日本不卡| 成人午夜在线视频| 国产精品美女久久福利网站| 国产.精品.日韩.另类.中文.在线.播放| 精品国产青草久久久久福利| 黑人巨大精品欧美一区| 精品久久久三级丝袜| 国产在线精品不卡| 日本一区二区免费在线| 99久久国产综合精品女不卡| 国产精品初高中害羞小美女文 | 国产精品福利一区| 91在线看国产| 一区二区三区在线视频观看| 免费高清不卡av| 欧美剧在线免费观看网站| 日韩成人免费在线| 欧美精品一区二区精品网| 国产欧美精品在线观看| 不卡的av电影在线观看| 日韩视频在线一区二区| 韩国毛片一区二区三区| 国产精品久久久久久久久晋中| 北条麻妃国产九九精品视频| 一区二区三区在线免费视频| 在线影视一区二区三区| 午夜精品福利一区二区蜜股av| 欧美精品久久久久久久多人混战| 免费视频一区二区| 日本一区二区免费在线观看视频 | 色综合天天综合网天天狠天天| 亚洲高清免费观看| 国产免费成人在线视频| 欧美亚洲日本国产| 国产成人亚洲综合色影视| 成人免费在线视频| 成人性生交大片免费| 一卡二卡欧美日韩| 久久亚洲影视婷婷| 欧美日韩一二区| 成人网男人的天堂| 蜜臀久久99精品久久久久久9| 国产午夜精品在线观看| 欧美日韩精品综合在线| 国产成人av在线影院| 日本亚洲一区二区| 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆| 欧美日韩不卡一区| av成人动漫在线观看| 久久精品免费看| 亚洲午夜一区二区三区| 国产精品美日韩| 久久综合久色欧美综合狠狠| 欧美日韩午夜精品| 色一情一伦一子一伦一区| 国产制服丝袜一区| 美女国产一区二区| 午夜久久久久久电影| 亚洲裸体在线观看| 中文一区一区三区高中清不卡| 欧美一区二区免费| 欧美人妖巨大在线| 欧美日韩一区二区三区在线看| 99久久久久久99| 成人永久免费视频| 国产精品一区二区男女羞羞无遮挡| 无吗不卡中文字幕| 亚洲狠狠爱一区二区三区| 亚洲三级在线看| 亚洲欧美成人一区二区三区| 国产精品入口麻豆原神| 中文字幕不卡的av| 国产精品污www在线观看| 国产欧美综合在线观看第十页| 精品福利在线导航| 欧美mv和日韩mv国产网站| 日韩三级免费观看| 欧美精品一区二区在线观看| 欧美mv日韩mv亚洲| 国产亚洲精品精华液| 国产欧美一区视频| 中文字幕亚洲一区二区va在线| 国产精品久久久久7777按摩| 国产精品天天摸av网| 国产精品久99| 洋洋av久久久久久久一区| 亚洲国产视频网站| 秋霞影院一区二区| 精品一区二区三区在线视频| 精品一区二区三区在线视频| 丁香桃色午夜亚洲一区二区三区 | 国产精品久久久久9999吃药| 亚洲欧洲国产日韩| 亚洲成人动漫在线免费观看| 日本视频一区二区| 国产精品白丝jk白祙喷水网站| a亚洲天堂av| 欧美区视频在线观看| xnxx国产精品| 亚洲伦在线观看| 久久99最新地址| 91在线精品秘密一区二区| 9191成人精品久久| 国产欧美日韩麻豆91| 午夜视频在线观看一区二区| 黄页网站大全一区二区| 91视频.com| 26uuu精品一区二区三区四区在线| 中文字幕免费观看一区| 亚洲丶国产丶欧美一区二区三区| 久久精品99国产精品| 成人av在线电影| 日韩区在线观看| 一个色综合av| 国产精品99久久久久久似苏梦涵| jizz一区二区| 精品国产乱码久久久久久图片| 日韩伦理av电影| 国产老肥熟一区二区三区| 欧美撒尿777hd撒尿| 欧美国产成人精品| 久久精品99国产国产精| 欧美日韩国产影片|