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

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

?? document.java

?? iText可以制作中文PDF文件的JAVA源程序最新版下載
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/* * $Id: Document.java,v 1.42 2002/11/19 08:58:02 blowagie Exp $ * $Name:  $ * * 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;import java.util.ArrayList;import java.util.Iterator;import java.util.Date;/** * A generic Document class. * <P> * All kinds of Text-elements can be added to a <CODE>HTMLDocument</CODE>. * The <CODE>Document</CODE> signals all the listeners when an element * has been added. * <P> * Remark: * <OL> *     <LI>Once a document is created you can add some meta information. *     <LI>You can also set the headers/footers. *     <LI>You have to open the document before you can write content. *     <LI>You can only write content (no more meta-formation!) once a document is opened. *     <LI>When you change the header/footer on a certain page, this will be effective starting on the next page. *     <LI>Ater closing the document, every listener (as well as its <CODE>OutputStream</CODE>) is closed too. * </OL> * Example: * <BLOCKQUOTE><PRE> * // creation of the document with a certain size and certain margins * <STRONG>Document document = new Document(PageSize.A4, 50, 50, 50, 50);</STRONG> * try { *    // creation of the different writers *    HtmlWriter.getInstance(<STRONG>document</STRONG>, System.out); *    PdfWriter.getInstance(<STRONG>document</STRONG>, new FileOutputStream("text.pdf")); * *    // we add some meta information to the document *    <STRONG>document.addAuthor("Bruno Lowagie");</STRONG> *    <STRONG>document.addSubject("This is the result of a Test.");</STRONG> * *    // we define a header and a footer *    HeaderFooter header = new HeaderFooter(new Phrase("This is a header."), false); *    HeaderFooter footer = new HeaderFooter(new Phrase("This is page "), new Phrase(".")); *    footer.setAlignment(Element.ALIGN_CENTER); *    <STRONG>document.setHeader(header);</STRONG> *	  <STRONG>document.setFooter(footer);</STRONG> *    // we open the document for writing *    <STRONG>document.open();</STRONG> *    <STRONG>document.add(new Paragraph("Hello world"));</STRONG> * } * catch(DocumentException de) { *    System.err.println(de.getMessage()); * } * <STRONG>document.close();</CODE> * </PRE></BLOCKQUOTE> */public class Document implements DocListener {    // membervariables/** This constant may only be changed by Paulo Soares and/or Bruno Lowagie. */    private static final String ITEXT_VERSION = "iText by lowagie.com (r0.96 - p106)";/** Allows the pdf documents to be produced without compression for debugging purposes. */    public static boolean compress = true;/** The DocListener. */    private ArrayList listeners = new ArrayList();/** Is the document open or not? */    protected boolean open;/** Has the document already been closed? */    protected boolean close;    // membervariables concerning the layout/** The size of the page. */    protected Rectangle pageSize;/** The watermark on the pages. */    protected Watermark watermark = null;/** margin in x direction starting from the left */    protected float marginLeft = 0;/** margin in x direction starting from the right */    protected float marginRight = 0;/** margin in y direction starting from the top */    protected float marginTop = 0;/** margin in y direction starting from the bottom */    protected float marginBottom = 0;/** Content of JavaScript onLoad function */    protected String javaScript_onLoad = null;/** Content of JavaScript onUnLoad function  */    protected String javaScript_onUnLoad = null;/** Style class in HTML body tag */    protected String htmlStyleClass = null;    // headers, footers/** Current pagenumber */    protected int pageN = 0;/** This is the textual part of a Page; it can contain a header */    protected HeaderFooter header = null;/** This is the textual part of the footer */    protected HeaderFooter footer = null;    // constructor/** * Constructs a new <CODE>Document</CODE>-object. */    public Document() {        this(PageSize.A4);    }/** * Constructs a new <CODE>Document</CODE>-object. * * @param	pageSize	the pageSize */    public Document(Rectangle pageSize) {        this(pageSize, 36, 36, 36, 36);    }/** * Constructs a new <CODE>Document</CODE>-object. * * @param	pageSize		the pageSize * @param	marginLeft		the margin on the left * @param	marginRight		the margin on the right * @param	marginTop		the margin on the top * @param	marginBottom	the margin on the bottom */    public Document(Rectangle pageSize, float marginLeft, float marginRight, float marginTop, float marginBottom) {        this.pageSize = pageSize;        this.marginLeft = marginLeft;        this.marginRight = marginRight;        this.marginTop = marginTop;        this.marginBottom = marginBottom;    }    // listener methods/** * Adds a <CODE>DocListener</CODE> to the <CODE>Document</CODE>. * * @param	listener	the new DocListener. */    public void addDocListener(DocListener listener) {        listeners.add(listener);    }/** * Removes a <CODE>DocListener</CODE> from the <CODE>Document</CODE>. * * @param	listener	the DocListener that has to be removed. */    public void removeDocListener(DocListener listener) {        listeners.remove(listener);    }    // methods implementing the DocListener interface/** Adds an <CODE>Element</CODE> to the <CODE>Document</CODE>. * * @param element the <CODE>Element</CODE> to add * @return <CODE>true</CODE> if the element was added, <CODE>false</CODE> if not * @throws DocumentException when a document isn't open yet, or has been closed */    public boolean add(Element element) throws DocumentException {        if (close) {            throw new DocumentException("The document has been closed. You can't add any Elements.");        }        int type = element.type();        if (open) {            if (! (type == Element.CHUNK ||            type == Element.PHRASE ||            type == Element.PARAGRAPH ||            type == Element.TABLE ||            type == Element.PTABLE ||            type == Element.ANCHOR ||            type == Element.ANNOTATION ||            type == Element.CHAPTER ||            type == Element.SECTION ||            type == Element.LIST ||            type == Element.LISTITEM ||            type == Element.RECTANGLE ||            type == Element.PNG ||            type == Element.JPEG ||            type == Element.GIF ||            type == Element.IMGRAW ||            type == Element.IMGTEMPLATE ||            type == Element.GRAPHIC)) {                throw new DocumentException("The document is open; you can only add Elements with content.");            }        }        else {            if (! (type == Element.HEADER ||            type == Element.TITLE ||            type == Element.SUBJECT ||            type == Element.KEYWORDS ||            type == Element.AUTHOR ||            type == Element.PRODUCER ||            type == Element.CREATOR ||            type == Element.CREATIONDATE)) {                throw new DocumentException("The document is not open yet; you can only add Meta information.");            }        }        boolean success = false;        DocListener listener;        for (Iterator iterator = listeners.iterator(); iterator.hasNext(); ) {            listener = (DocListener) iterator.next();            success |= listener.add(element);        }        return success;    }/** * Opens the document. * <P> * Once the document is opened, you can't write any Header- or Meta-information * anymore. You have to open the document before you can begin to add content * to the body of the document. */    public void open() {        if (! close) {            open = true;        }        DocListener listener;        for (Iterator iterator = listeners.iterator(); iterator.hasNext(); ) {            listener = (DocListener) iterator.next();            listener.setPageSize(pageSize);            listener.setMargins(marginLeft, marginRight, marginTop, marginBottom);            listener.open();        }    }/** * Sets the pagesize. * * @param	pageSize	the new pagesize * @return	a <CODE>boolean</CODE> */    public boolean setPageSize(Rectangle pageSize) {        this.pageSize = pageSize;        DocListener listener;        for (Iterator iterator = listeners.iterator(); iterator.hasNext(); ) {            listener = (DocListener) iterator.next();            listener.setPageSize(pageSize);        }        return true;    }/** * Sets the <CODE>Watermark</CODE>. * * @param watermark the watermark to add * @return <CODE>true</CODE> if the element was added, <CODE>false</CODE> if not. */    public boolean add(Watermark watermark) {        this.watermark = watermark;        DocListener listener;        for (Iterator iterator = listeners.iterator(); iterator.hasNext(); ) {            listener = (DocListener) iterator.next();            listener.add(watermark);        }        return true;    }/** * Removes the <CODE>Watermark</CODE>. */    public void removeWatermark() {        this.watermark = null;        DocListener listener;        for (Iterator iterator = listeners.iterator(); iterator.hasNext(); ) {            listener = (DocListener) iterator.next();            listener.removeWatermark();        }    }/** * Sets the margins. * * @param	marginLeft		the margin on the left * @param	marginRight		the margin on the right * @param	marginTop		the margin on the top * @param	marginBottom	the margin on the bottom * @return	a <CODE>boolean</CODE> */    public boolean setMargins(float marginLeft,float marginRight,float marginTop,float marginBottom) {        this.marginLeft = marginLeft;        this.marginRight = marginRight;        this.marginTop = marginTop;        this.marginBottom = marginBottom;        DocListener listener;        for (Iterator iterator = listeners.iterator(); iterator.hasNext(); ) {            listener = (DocListener) iterator.next();            listener.setMargins(marginLeft, marginRight, marginTop, marginBottom);        }        return true;    }/** * Signals that an new page has to be started. * * @return	<CODE>true</CODE> if the page was added, <CODE>false</CODE> if not. * @throws	DocumentException	when a document isn't open yet, or has been closed */    public boolean newPage() throws DocumentException {        if (!open || close) {            return false;        }        DocListener listener;        for (Iterator iterator = listeners.iterator(); iterator.hasNext(); ) {            listener = (DocListener) iterator.next();            listener.newPage();        }        return true;    }/** * Changes the header of this document. * * @param	header		the new header */    public void setHeader(HeaderFooter header) {        this.header = header;        DocListener listener;        for (Iterator iterator = listeners.iterator(); iterator.hasNext(); ) {            listener = (DocListener) iterator.next();            listener.setHeader(header);        }    }/** * Resets the header of this document. */    public void resetHeader() {        this.header = null;        DocListener listener;        for (Iterator iterator = listeners.iterator(); iterator.hasNext(); ) {            listener = (DocListener) iterator.next();            listener.resetHeader();        }    }/** * Changes the footer of this document. *

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
视频一区欧美精品| 亚洲自拍另类综合| 亚洲成人免费在线| 国产乱人伦精品一区二区在线观看| 91麻豆高清视频| 久久一区二区视频| 午夜精品久久久久影视| 99热99精品| 日韩欧美不卡在线观看视频| 亚洲制服丝袜一区| 岛国av在线一区| 欧美videossexotv100| 亚洲国产精品久久久久婷婷884 | 亚洲欧洲中文日韩久久av乱码| 免费精品视频在线| 欧美日韩亚洲综合一区二区三区| 中文字幕日韩欧美一区二区三区| 狠狠色狠狠色综合| 日韩视频一区二区| 性欧美大战久久久久久久久| 色婷婷激情久久| 国产精品夫妻自拍| 岛国一区二区在线观看| 国产亚洲欧洲一区高清在线观看| 日韩电影在线观看电影| 欧美日韩一区二区在线观看视频| 亚洲欧美一区二区三区国产精品 | 日韩va亚洲va欧美va久久| 欧洲中文字幕精品| 亚洲精品国久久99热| 91最新地址在线播放| 国产精品麻豆一区二区| 国产91精品一区二区| 国产亚洲一区二区三区在线观看| 麻豆精品国产91久久久久久| 欧美一级理论片| 日韩成人免费电影| 欧美一区二区三区小说| 亚洲电影一区二区| 欧美色图天堂网| 一区二区三区国产精品| 日本久久精品电影| 亚洲综合色丁香婷婷六月图片| 在线欧美日韩国产| 亚洲美女免费在线| 欧美天堂亚洲电影院在线播放| 亚洲乱码国产乱码精品精小说 | 蜜桃视频在线观看一区二区| 91精品免费在线观看| 人人狠狠综合久久亚洲| 欧美一区二区三区播放老司机| 日韩**一区毛片| 欧美成人女星排名| 国产麻豆精品95视频| 欧美激情综合在线| 99久久精品国产一区二区三区| 亚洲欧美偷拍另类a∨色屁股| 91香蕉视频mp4| 一区二区三区.www| 欧美日韩精品三区| 日本成人在线电影网| 欧美成人精精品一区二区频| 国产一区二区三区在线看麻豆| 久久久久一区二区三区四区| 成人午夜精品一区二区三区| 中文字幕综合网| 欧美午夜寂寞影院| 日本vs亚洲vs韩国一区三区二区 | 欧洲精品视频在线观看| 日韩精彩视频在线观看| 日韩精品一区二区三区在线播放| 精品一区二区在线免费观看| 欧美国产欧美亚州国产日韩mv天天看完整| 不卡电影一区二区三区| 亚洲综合男人的天堂| 日韩一区二区视频| 国产99精品在线观看| 亚洲精品乱码久久久久久久久 | 91久久免费观看| 欧美bbbbb| 国产清纯白嫩初高生在线观看91 | 一本大道久久a久久综合婷婷| 性做久久久久久免费观看| 欧美一级二级三级乱码| 粉嫩aⅴ一区二区三区四区| 亚洲人成精品久久久久| 日韩一区二区三区电影在线观看 | 成人免费观看男女羞羞视频| 亚洲一线二线三线视频| 精品国产乱码久久久久久闺蜜 | 久久综合综合久久综合| 国产精品传媒入口麻豆| 制服丝袜亚洲播放| 成人免费视频视频在线观看免费| 夜夜揉揉日日人人青青一国产精品| 欧美日韩综合一区| 国产成人在线视频网址| 亚洲福利电影网| 欧美激情一区不卡| 制服丝袜av成人在线看| 成人动漫av在线| 日本美女一区二区| 亚洲三级在线播放| 精品国内二区三区| 欧美性感一类影片在线播放| 国产一区二区日韩精品| 亚洲电影视频在线| 国产精品你懂的| 制服丝袜亚洲播放| 色爱区综合激月婷婷| 国产在线视视频有精品| 亚洲成人午夜影院| 成人免费一区二区三区视频 | 日韩精品一区二区三区视频播放| av电影天堂一区二区在线| 捆绑紧缚一区二区三区视频| 一区二区三区免费网站| 久久久蜜桃精品| 欧美一级二级三级乱码| 欧日韩精品视频| 成人激情动漫在线观看| 精品一区二区免费在线观看| 亚洲第一在线综合网站| 国产精品国产三级国产aⅴ中文| 精品久久久久一区二区国产| 欧美日韩精品综合在线| 91原创在线视频| 国产精品一级片| 蜜桃视频一区二区三区 | 2022国产精品视频| 制服.丝袜.亚洲.中文.综合| 日本乱人伦一区| av亚洲精华国产精华| 国产精品18久久久久久久网站| 美日韩一区二区三区| 五月综合激情婷婷六月色窝| 亚洲天堂精品视频| 国产精品午夜春色av| 久久品道一品道久久精品| 日韩精品中午字幕| 91精品国产手机| 欧美日韩精品综合在线| 在线看国产一区| 色香色香欲天天天影视综合网| 国产91精品一区二区麻豆亚洲| 国产一区二区三区免费播放| 精品一区免费av| 另类调教123区| 久久电影国产免费久久电影| 日韩成人一区二区三区在线观看| 香蕉久久夜色精品国产使用方法 | 亚洲午夜久久久久久久久电影院 | 久久精品亚洲麻豆av一区二区| 欧美变态tickling挠脚心| 欧美一级日韩不卡播放免费| 欧美一区2区视频在线观看| 欧美日韩国产中文| 欧美在线|欧美| 日本高清成人免费播放| 色偷偷久久一区二区三区| 一本在线高清不卡dvd| 色狠狠综合天天综合综合| 在线观看欧美黄色| 欧美色欧美亚洲另类二区| 欧美日韩一级黄| 91精品国产综合久久久蜜臀粉嫩| 67194成人在线观看| 欧美一级搡bbbb搡bbbb| 精品av综合导航| 久久嫩草精品久久久精品一| 国产欧美一区二区精品忘忧草 | 欧美xxxxx牲另类人与| 2024国产精品视频| 欧美韩日一区二区三区| 国产精品盗摄一区二区三区| 亚洲色大成网站www久久九九| 夜夜操天天操亚洲| 天天综合日日夜夜精品| 久久99久久99精品免视看婷婷 | 久久97超碰国产精品超碰| 黑人精品欧美一区二区蜜桃| 国产丶欧美丶日本不卡视频| 成人aaaa免费全部观看| 色婷婷综合久久久久中文| 精品污污网站免费看| 日韩精品一区二区三区蜜臀 | 日韩欧美一级二级三级久久久| 欧美白人最猛性xxxxx69交| 中文天堂在线一区| 亚洲自拍偷拍网站| 日本欧美在线观看| 国产aⅴ综合色| 欧美又粗又大又爽| 欧美www视频| 中文字幕视频一区二区三区久| 亚洲无人区一区| 九九国产精品视频| 99久久国产免费看| 91精品国产综合久久蜜臀| 国产精品污www在线观看|