亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
精品电影一区二区三区| 亚洲一区二区在线视频| 亚洲色图欧洲色图婷婷| 蜜臀久久99精品久久久画质超高清 | 欧美视频在线不卡| 久久精品一区蜜桃臀影院| 亚洲第一二三四区| 成人午夜短视频| 日韩欧美一区二区在线视频| 一区二区高清在线| av一本久道久久综合久久鬼色| 日韩欧美成人午夜| 日本最新不卡在线| 欧美色偷偷大香| 亚洲精选在线视频| 91丝袜呻吟高潮美腿白嫩在线观看| 精品国产91洋老外米糕| 亚洲成人1区2区| 欧美天堂一区二区三区| 亚洲乱码一区二区三区在线观看| 成人精品国产福利| 国产精品天美传媒沈樵| 国产91综合网| 国产亚洲精品资源在线26u| 久久精品二区亚洲w码| 欧美一级欧美一级在线播放| 自拍偷拍亚洲综合| 日本丶国产丶欧美色综合| 亚洲精品国产第一综合99久久| 丰满白嫩尤物一区二区| 国产精品久久久久影院| 成人av第一页| 国产精品对白交换视频| 99久久国产综合精品女不卡| 一区在线中文字幕| 色综合咪咪久久| 亚洲国产精品一区二区www在线| 欧美性一二三区| 日av在线不卡| 久久综合久久久久88| 粉嫩一区二区三区在线看| 国产精品国产三级国产aⅴ入口| 99久久精品国产一区| 亚洲亚洲精品在线观看| 这里只有精品视频在线观看| 久久黄色级2电影| 久久久精品天堂| 91欧美一区二区| 国产69精品久久久久毛片| 国产精品久久久久7777按摩 | 欧美最猛性xxxxx直播| 亚洲一区二区影院| 日韩一区二区电影在线| 国产福利电影一区二区三区| 亚洲免费观看高清完整版在线观看| 色综合久久66| 久久国产精品99久久久久久老狼| 久久亚洲精品小早川怜子| www.成人在线| 日韩精品一卡二卡三卡四卡无卡| 欧美刺激脚交jootjob| 成人伦理片在线| 日韩精品一二三区| 国产日本欧美一区二区| 欧美综合欧美视频| 狠狠久久亚洲欧美| 亚洲精品成人悠悠色影视| 日韩一区二区三区电影 | 国产真实乱偷精品视频免| 国产女主播视频一区二区| 欧美三级电影在线看| 精品一区二区免费| 亚洲午夜国产一区99re久久| 亚洲精品在线观| 欧美在线免费观看亚洲| 国产成人免费视频网站高清观看视频| 亚洲黄色录像片| 亚洲视频一区二区在线| 精品国产一区二区三区av性色| 99re66热这里只有精品3直播| 日韩av在线免费观看不卡| 亚洲欧美一区二区三区国产精品| 日韩美女一区二区三区四区| 在线视频国内一区二区| www.欧美.com| 国产伦精品一区二区三区在线观看| 一区二区三区美女| 中文av一区二区| 亚洲精品在线电影| 欧美一级高清大全免费观看| 91成人免费网站| 色综合天天性综合| 国产高清精品久久久久| 韩国三级在线一区| 免费欧美日韩国产三级电影| 亚洲国产精品影院| 亚洲日本va午夜在线影院| 国产精品久久午夜夜伦鲁鲁| 久久综合九色综合欧美98| 日韩视频免费观看高清完整版| 在线观看91精品国产入口| 91在线无精精品入口| 波多野结衣中文字幕一区二区三区| 国产一区二区三区在线观看精品 | 亚洲国产sm捆绑调教视频 | 色国产综合视频| 成人av网站免费| 成人黄色免费短视频| 岛国一区二区三区| 国产精品亚洲午夜一区二区三区| 狠狠狠色丁香婷婷综合激情| 九色|91porny| 久久er99热精品一区二区| 久久成人精品无人区| 麻豆免费看一区二区三区| 麻豆国产精品一区二区三区| 久久成人免费网站| 国产剧情在线观看一区二区| 国产乱码精品一区二区三区五月婷| 精品一区免费av| 国产福利一区二区| 不卡视频一二三四| 91久久人澡人人添人人爽欧美| 91浏览器打开| 欧美日韩精品久久久| 欧美一区三区二区| 久久久久国产精品麻豆| 国产欧美一区二区精品忘忧草 | 91麻豆高清视频| 欧美性受xxxx| 欧美变态口味重另类| 久久综合久久综合亚洲| 欧美国产激情二区三区| 亚洲啪啪综合av一区二区三区| 亚洲午夜电影网| 麻豆成人av在线| 不卡一区在线观看| 欧美日本韩国一区二区三区视频 | 国产v日产∨综合v精品视频| 成人av免费网站| 欧美精品自拍偷拍| 国产欧美精品日韩区二区麻豆天美| 国产精品久久久久久久午夜片| 亚洲制服丝袜在线| 老汉av免费一区二区三区| 国产成人在线免费观看| 91精品福利视频| 精品国产成人系列| 一区二区久久久久| 激情五月婷婷综合网| 91色九色蝌蚪| 精品美女一区二区三区| 日韩一区在线播放| 久久99深爱久久99精品| 一本到高清视频免费精品| 日韩一区二区三区四区五区六区| 中文字幕一区二区三区四区不卡 | 一本到不卡免费一区二区| 日韩丝袜情趣美女图片| 1区2区3区欧美| 国内精品自线一区二区三区视频| 一道本成人在线| 久久久久九九视频| 亚洲国产精品久久久久婷婷884| 国产福利不卡视频| 欧美一区二区在线看| 亚洲免费观看高清完整版在线观看熊| 久久不见久久见免费视频7| 欧美写真视频网站| 中文字幕欧美一区| 国产suv精品一区二区6| 91精品国产一区二区三区香蕉| 亚洲欧美日韩一区二区| 国产999精品久久| 精品sm捆绑视频| 人人狠狠综合久久亚洲| 欧美日韩国产首页在线观看| 亚洲青青青在线视频| 风流少妇一区二区| 精品国产免费久久| 久久精品99国产国产精| 在线播放欧美女士性生活| 一区二区三区免费观看| 色悠悠亚洲一区二区| 国产精品美女久久久久aⅴ| 国内外成人在线| 2020日本不卡一区二区视频| 美女视频一区在线观看| 欧美一级免费大片| 天天操天天干天天综合网| 欧美色综合网站| 天天av天天翘天天综合网| 精品视频一区二区不卡| 亚洲图片欧美色图| 欧美日韩一区在线| 婷婷久久综合九色国产成人 | 日本一区二区三区dvd视频在线| 狂野欧美性猛交blacked| 日韩一区二区三区av| 日韩av电影免费观看高清完整版在线观看 |