xfa.java

来自「Java生成PDF Java生成PDF Java生成PDF」· Java 代码 · 共 33 行

JAVA
33
字号
// $Id: XFA.java,v 1.2 2007/11/15 06:20:01 mike Exp $package org.faceless.pdf2.viewer2.feature;import org.faceless.pdf2.viewer2.*;import org.faceless.pdf2.*;import javax.swing.*;import javax.swing.event.*;import java.awt.event.*;import javax.swing.border.*;import java.awt.*;import java.util.*;/** * A class which suppressed warnings about missing XFA support in the PDF Viewer when * JavaScript is supported. In the future this may well form the basis of XFA support * in the viewer, but for now it's largely a no-op. * The name of this feature is "XFA" * <p><i>This code is copyright the Big Faceless Organization. You're welcome to use, modify and distribute it in any form in your own projects, provided those projects continue to make use of the Big Faceless PDF library.</i></p> * @since 2.8 */public class XFA extends ViewerWidget{    public XFA() {        super("XFA");    }    public void initialize(PDFViewer viewer) {        JSManager manager = viewer.getJSManager();        manager.defineObject(null, null, "var ADBE = new Object(); var xfa_installed = true; var xfa_version=2.1;");    }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?