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

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

?? pdfaction.java

?? iText可以制作中文PDF文件的JAVA源程序最新版下載
?? JAVA
字號:
/* * $Id: PdfAction.java,v 1.34 2002/07/15 09:26:28 blowagie Exp $ * $Name:  $ * * Copyright 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 java.net.URL;import com.lowagie.text.ExceptionConverter;/** * A <CODE>PdfAction</CODE> defines an action that can be triggered from a PDF file. * * @see		PdfDictionary */public class PdfAction extends PdfDictionary {        /** A named action to go to the first page.     */    public static final int FIRSTPAGE = 1;    /** A named action to go to the previous page.     */    public static final int PREVPAGE = 2;    /** A named action to go to the next page.     */    public static final int NEXTPAGE = 3;    /** A named action to go to the last page.     */    public static final int LASTPAGE = 4;    /** A named action to open a print dialog.     */    public static final int PRINTDIALOG = 5;    // constructors    public static final int SUBMIT_EXCLUDE = 1;    public static final int SUBMIT_INCLUDE_NO_VALUE_FIELDS = 2;    public static final int SUBMIT_HTML_FORMAT = 4;    public static final int SUBMIT_HTML_GET = 8;    public static final int SUBMIT_COORDINATES = 16;    public static final int RESET_EXCLUDE = 1;        /** Create an empty action.     */        PdfAction() {    }        /**     * Constructs a new <CODE>PdfAction</CODE> of Subtype URI.     *     * @param url the Url to go to     */        public PdfAction(URL url) {        this(url.toExternalForm());    }        public PdfAction(URL url, boolean isMap) {        this(url.toExternalForm(), isMap);    }        /**     * Constructs a new <CODE>PdfAction</CODE> of Subtype URI.     *     * @param url the url to go to     */        public PdfAction(String url) {        this(url, false);    }        public PdfAction(String url, boolean isMap) {        put(PdfName.S, PdfName.URI);        put(PdfName.URI, new PdfString(url));        if (isMap)            put(PdfName.ISMAP, PdfBoolean.PDFTRUE);    }        /**     * Constructs a new <CODE>PdfAction</CODE> of Subtype GoTo.     * @param destination the destination to go to     */        PdfAction(PdfIndirectReference destination) {        put(PdfName.S, PdfName.GOTO);        put(PdfName.D, destination);    }        /**     * Constructs a new <CODE>PdfAction</CODE> of Subtype GoToR.     * @param filename the file name to go to     * @param name the named destination to go to     */        public PdfAction(String filename, String name) {        put(PdfName.S, PdfName.GOTOR);        put(PdfName.F, new PdfString(filename));        put(PdfName.D, new PdfString(name));    }        /**     * Constructs a new <CODE>PdfAction</CODE> of Subtype GoToR.     * @param filename the file name to go to     * @param page the page destination to go to     */        public PdfAction(String filename, int page) {        put(PdfName.S, PdfName.GOTOR);        put(PdfName.F, new PdfString(filename));        put(PdfName.D, new PdfLiteral("[" + (page - 1) + " /FitH 10000]"));    }        /** Implements name actions. The action can be FIRSTPAGE, LASTPAGE,     * NEXTPAGE and PREVPAGE.     * @param named the named action     */    public PdfAction(int named) {        put(PdfName.S, PdfName.NAMED);        switch (named) {            case FIRSTPAGE:                put(PdfName.N, PdfName.FIRSTPAGE);                break;            case LASTPAGE:                put(PdfName.N, PdfName.LASTPAGE);                break;            case NEXTPAGE:                put(PdfName.N, PdfName.NEXTPAGE);                break;            case PREVPAGE:                put(PdfName.N, PdfName.PREVPAGE);                break;            case PRINTDIALOG:                put(PdfName.S, PdfName.JAVASCRIPT);                put(PdfName.JS, new PdfString("this.print(true);\r"));            default:                throw new RuntimeException("Invalid named action.");        }    }        /** Launchs an application or a document.     * @param application the application to be launched or the document to be opened or printed.     * @param parameters (Windows-specific) A parameter string to be passed to the application.     * It can be <CODE>null</CODE>.     * @param operation (Windows-specific) the operation to perform: "open" - Open a document,     * "print" - Print a document.     * It can be <CODE>null</CODE>.     * @param defaultDir (Windows-specific) the default directory in standard DOS syntax.     * It can be <CODE>null</CODE>.     */    public PdfAction(String application, String parameters, String operation, String defaultDir) {        put(PdfName.S, PdfName.LAUNCH);        if (parameters == null && operation == null && defaultDir == null)            put(PdfName.F, new PdfString(application));        else {            PdfDictionary dic = new PdfDictionary();            dic.put(PdfName.F, new PdfString(application));            if (parameters != null)                dic.put(PdfName.P, new PdfString(parameters));            if (operation != null)                dic.put(PdfName.O, new PdfString(operation));            if (defaultDir != null)                dic.put(PdfName.D, new PdfString(defaultDir));            put(PdfName.WIN, dic);        }    }        /** Creates a JavaScript action. If the JavaScript is smaller than     * 50 characters it will be placed as a string, otherwise it will     * be placed as a compressed stream.     * @param code the JavaScript code     * @param writer the writer for this action     * @param unicode select JavaScript unicode. Note that the internal     * Acrobat JavaScript engine does not support unicode,     * so this may or may not work for you     * @return the JavaScript action     */        public static PdfAction javaScript(String code, PdfWriter writer, boolean unicode) {        PdfAction js = new PdfAction();        js.put(PdfName.S, PdfName.JAVASCRIPT);        if (unicode && code.length() < 50) {                js.put(PdfName.JS, new PdfString(code, PdfObject.TEXT_UNICODE));        }        else if (!unicode && code.length() < 100) {                js.put(PdfName.JS, new PdfString(code));        }        else {            try {                byte b[] = PdfEncodings.convertToBytes(code, unicode ? PdfObject.TEXT_UNICODE : PdfObject.ENCODING);                PdfStream stream = new PdfStream(b);                stream.flateCompress();                js.put(PdfName.JS, writer.addToBody(stream).getIndirectReference());            }            catch (Exception e) {                throw new ExceptionConverter(e);            }        }        return js;    }    /** Creates a JavaScript action. If the JavaScript is smaller than     * 50 characters it will be place as a string, otherwise it will     * be placed as a compressed stream.     * @param code the JavaScript code     * @param writer the writer for this action     * @return the JavaScript action     */        public static PdfAction javaScript(String code, PdfWriter writer) {        return javaScript(code, writer, false);    }        static PdfAction createHide(PdfObject obj, boolean hide) {        PdfAction action = new PdfAction();        action.put(PdfName.S, PdfName.HIDE);        action.put(PdfName.T, obj);        if (!hide)            action.put(PdfName.H, PdfBoolean.PDFFALSE);        return action;    }        public static PdfAction createHide(PdfAnnotation annot, boolean hide) {        return createHide(annot.getIndirectReference(), hide);    }        public static PdfAction createHide(String name, boolean hide) {        return createHide(new PdfString(name), hide);    }        static PdfArray buildArray(Object names[]) {        PdfArray array = new PdfArray();        for (int k = 0; k < names.length; ++k) {            Object obj = names[k];            if (obj instanceof String)                array.add(new PdfString((String)obj));            else if (obj instanceof PdfAnnotation)                array.add(((PdfAnnotation)obj).getIndirectReference());            else                throw new RuntimeException("The array must contain String or PdfAnnotation.");        }        return array;    }        public static PdfAction createHide(Object names[], boolean hide) {        return createHide(buildArray(names), hide);    }        public static PdfAction createSubmitForm(String file, Object names[], int flags) {        PdfAction action = new PdfAction();        action.put(PdfName.S, PdfName.SUBMITFORM);        PdfDictionary dic = new PdfDictionary();        dic.put(PdfName.F, new PdfString(file));        dic.put(PdfName.FS, PdfName.URL);        action.put(PdfName.F, dic);        if (names != null)            action.put(PdfName.FIELDS, buildArray(names));        action.put(PdfName.FLAGS, new PdfNumber(flags));        return action;    }        public static PdfAction createResetForm(Object names[], int flags) {        PdfAction action = new PdfAction();        action.put(PdfName.S, PdfName.RESETFORM);        if (names != null)            action.put(PdfName.FIELDS, buildArray(names));        action.put(PdfName.FLAGS, new PdfNumber(flags));        return action;    }        public static PdfAction createImportData(String file) {        PdfAction action = new PdfAction();        action.put(PdfName.S, PdfName.IMPORTDATA);        action.put(PdfName.F, new PdfString(file));        return action;    }        /** Add a chained action.     * @param na the next action     */        public void next(PdfAction na) {        PdfObject nextAction = get(PdfName.NEXT);        if (nextAction == null)            put(PdfName.NEXT, na);        else if (nextAction.type() == PdfObject.DICTIONARY) {            PdfArray array = new PdfArray(nextAction);            array.add(na);            put(PdfName.NEXT, array);        }        else {            ((PdfArray)nextAction).add(na);        }    }        /** Creates a GoTo action to an internal page.     * @param page the page to go. First page is 1     * @param dest the destination for the page     * @param writer the writer for this action     * @return a GoTo action     */        public static PdfAction gotoLocalPage(int page, PdfDestination dest, PdfWriter writer) {        PdfIndirectReference ref = writer.getPageReference(page);        dest.addPage(ref);        PdfAction action = new PdfAction();        action.put(PdfName.S, PdfName.GOTO);        action.put(PdfName.D, dest);        return action;    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国内精品嫩模私拍在线| 欧美日韩在线播放| 亚洲高清在线视频| 亚洲免费观看高清完整版在线 | 99精品国产一区二区三区不卡| 亚洲国产精品视频| 亚洲人成网站精品片在线观看| 国产精品福利一区二区| 中文字幕永久在线不卡| 中文字幕一区二区三区乱码在线| 欧美激情一区二区三区不卡| 亚洲国产精品国自产拍av| 中文字幕精品—区二区四季| 亚洲国产高清aⅴ视频| 国产精品伦理一区二区| 自拍偷自拍亚洲精品播放| 亚洲日本免费电影| 亚洲一级二级在线| 日韩电影免费在线看| 精品一区二区久久| 国产91精品露脸国语对白| 99re66热这里只有精品3直播| 日本道精品一区二区三区 | 91精品免费在线| 91精品国产综合久久精品app| 欧美一区二区国产| 日本一区二区三区四区| 亚洲欧美另类久久久精品2019| 亚洲国产一区二区三区| 激情欧美一区二区三区在线观看| 粗大黑人巨茎大战欧美成人| 91成人在线精品| 欧美xxxxx牲另类人与| 国产丝袜在线精品| 亚洲成av人片| 亚洲国产日产av| 亚洲成av人在线观看| 高清不卡一区二区在线| a4yy欧美一区二区三区| 91福利在线观看| 欧美一卡二卡在线| 久久久久99精品一区| 1024成人网色www| 亚洲不卡av一区二区三区| 国产一区二区中文字幕| 国产一区二区91| 欧美视频在线观看一区二区| 欧美一区二区人人喊爽| 国产色综合一区| 亚洲午夜精品一区二区三区他趣| 经典一区二区三区| 在线亚洲一区二区| 欧美精品乱码久久久久久按摩 | 免费观看久久久4p| 国产精品2024| 欧美日韩精品一二三区| 国产欧美日韩亚州综合 | 亚洲另类春色国产| 久久99精品国产麻豆不卡| 99久久夜色精品国产网站| 91精品国产aⅴ一区二区| 亚洲国产成人私人影院tom| 日韩va欧美va亚洲va久久| 91丨porny丨蝌蚪视频| 日韩网站在线看片你懂的| 成人免费在线视频| 国产精品一区二区无线| 欧美久久久久久久久久| 日本一区二区三区四区| 国产精品麻豆欧美日韩ww| 国产成人一区二区精品非洲| 欧美猛男gaygay网站| 亚洲视频在线一区观看| 国产精品白丝av| 精品美女在线播放| 青青草97国产精品免费观看无弹窗版| 99久久精品国产导航| 国产日韩精品一区二区三区在线| 日韩中文字幕不卡| 91传媒视频在线播放| 国产精品久久久久久亚洲毛片 | 国产传媒欧美日韩成人| 91精品视频网| 亚洲黄色小说网站| 欧美无乱码久久久免费午夜一区| 日韩欧美三级在线| 亚洲gay无套男同| 欧美视频在线一区二区三区| 亚洲美女屁股眼交| www.日韩在线| 亚洲天天做日日做天天谢日日欢| 国产一区二区三区av电影| 欧美人牲a欧美精品| 午夜激情综合网| 欧美体内she精高潮| 亚洲一区影音先锋| 欧美日韩大陆在线| 天天av天天翘天天综合网色鬼国产| 91国在线观看| 亚洲成av人片一区二区梦乃| 欧美裸体一区二区三区| 日韩高清欧美激情| 欧美不卡一区二区三区四区| 丰满放荡岳乱妇91ww| 国产精品蜜臀在线观看| 91麻豆国产在线观看| 日韩欧美aaaaaa| 男人的j进女人的j一区| 日韩女同互慰一区二区| 国产一区二区在线看| 精品奇米国产一区二区三区| 成人性生交大片免费看中文 | 紧缚捆绑精品一区二区| 久久亚洲欧美国产精品乐播| 成人黄色a**站在线观看| 亚洲另类在线视频| 日韩欧美你懂的| 成人aaaa免费全部观看| 一区二区三区在线观看动漫| 欧美日韩国产精品成人| 九九在线精品视频| 欧美久久一二三四区| 蜜桃91丨九色丨蝌蚪91桃色| 精品久久国产字幕高潮| aaa亚洲精品| 免费观看一级欧美片| 国产亚洲午夜高清国产拍精品 | 亚洲在线观看免费视频| 久久久精品tv| 欧美日免费三级在线| 国产一区二区三区在线观看免费视频| 国产精品私房写真福利视频| 欧美三级三级三级| 成人免费高清视频在线观看| 亚洲v日本v欧美v久久精品| 久久精品亚洲国产奇米99| 在线观看欧美日本| 国产成人综合在线播放| 亚洲妇女屁股眼交7| 国产亚洲精品资源在线26u| 一本到高清视频免费精品| 老司机午夜精品99久久| 亚洲人精品一区| 国产日韩精品一区二区浪潮av| 欧美日韩在线观看一区二区 | 欧美精品一区二区久久久| 色呦呦国产精品| 国产成人免费在线观看| 免费精品视频在线| 偷拍一区二区三区四区| 亚洲三级电影全部在线观看高清| 久久久久久97三级| 欧美电影免费观看完整版| 成人综合婷婷国产精品久久蜜臀| 狠狠色狠狠色综合系列| 五月激情丁香一区二区三区| 亚洲女女做受ⅹxx高潮| 国产欧美日韩中文久久| 欧美电影免费观看高清完整版在 | 91精品国产一区二区三区蜜臀 | 亚洲美女屁股眼交| 亚洲婷婷在线视频| 国产精品麻豆99久久久久久| 久久九九国产精品| 精品入口麻豆88视频| 欧美大片在线观看一区| 日韩美一区二区三区| 日韩一区二区三区在线观看| 91麻豆精品国产无毒不卡在线观看| 欧美在线视频全部完| 欧美日韩国产首页在线观看| 国产剧情一区在线| 国产成人午夜视频| 国产99一区视频免费| 国产成人av福利| 丁香婷婷综合激情五月色| 欧美不卡一区二区三区四区| 中文字幕精品一区| 久久欧美中文字幕| 国产欧美一区视频| 国产精品情趣视频| 欧美大片在线观看一区| 91麻豆精品国产| 国产精品乱码一区二三区小蝌蚪| 国产精品午夜在线观看| 国产精品第13页| 一区二区高清在线| 午夜电影网一区| 轻轻草成人在线| 国产成人精品免费在线| 9色porny自拍视频一区二区| 99re这里只有精品视频首页| 欧美久久久久久久久| 久久亚洲综合av| 亚洲三级在线免费| 午夜精品久久久| 国产成人av一区二区| 欧美性色欧美a在线播放| 日韩一级大片在线观看| 日本一区二区三级电影在线观看|