Save This Page
Home » iText-src-2.1.3 » com.lowagie » text » pdf » [javadoc | source]
com.lowagie.text.pdf
public class: PdfAction [javadoc | source]
java.lang.Object
   com.lowagie.text.pdf.PdfObject
      com.lowagie.text.pdf.PdfDictionary
         com.lowagie.text.pdf.PdfAction
A PdfAction defines an action that can be triggered from a PDF file.
Field Summary
public static final  int FIRSTPAGE    A named action to go to the first page. 
public static final  int PREVPAGE    A named action to go to the previous page. 
public static final  int NEXTPAGE    A named action to go to the next page. 
public static final  int LASTPAGE    A named action to go to the last page. 
public static final  int PRINTDIALOG    A named action to open a print dialog. 
public static final  int SUBMIT_EXCLUDE    a possible submitvalue 
public static final  int SUBMIT_INCLUDE_NO_VALUE_FIELDS    a possible submitvalue 
public static final  int SUBMIT_HTML_FORMAT    a possible submitvalue 
public static final  int SUBMIT_HTML_GET    a possible submitvalue 
public static final  int SUBMIT_COORDINATES    a possible submitvalue 
public static final  int SUBMIT_XFDF    a possible submitvalue 
public static final  int SUBMIT_INCLUDE_APPEND_SAVES    a possible submitvalue 
public static final  int SUBMIT_INCLUDE_ANNOTATIONS    a possible submitvalue 
public static final  int SUBMIT_PDF    a possible submitvalue 
public static final  int SUBMIT_CANONICAL_FORMAT    a possible submitvalue 
public static final  int SUBMIT_EXCL_NON_USER_ANNOTS    a possible submitvalue 
public static final  int SUBMIT_EXCL_F_KEY    a possible submitvalue 
public static final  int SUBMIT_EMBED_FORM    a possible submitvalue 
public static final  int RESET_EXCLUDE    a possible submitvalue 
Fields inherited from com.lowagie.text.pdf.PdfDictionary:
FONT,  OUTLINES,  PAGE,  PAGES,  CATALOG,  hashMap
Fields inherited from com.lowagie.text.pdf.PdfObject:
BOOLEAN,  NUMBER,  STRING,  NAME,  ARRAY,  DICTIONARY,  STREAM,  NULL,  INDIRECT,  NOTHING,  TEXT_PDFDOCENCODING,  TEXT_UNICODE,  bytes,  type,  indRef
Constructor:
 public PdfAction() 
 public PdfAction(URL url) 
    Constructs a new PdfAction of Subtype URI.
    Parameters:
    url - the Url to go to
 public PdfAction(String url) 
    Constructs a new PdfAction of Subtype URI.
    Parameters:
    url - the url to go to
 PdfAction(PdfIndirectReference destination) 
    Constructs a new PdfAction of Subtype GoTo.
    Parameters:
    destination - the destination to go to
 public PdfAction(int named) 
 public PdfAction(URL url,
    boolean isMap) 
    Construct a new PdfAction of Subtype URI that accepts the x and y coordinate of the position that was clicked.
    Parameters:
    url -
    isMap -
 public PdfAction(String url,
    boolean isMap) 
    Construct a new PdfAction of Subtype URI that accepts the x and y coordinate of the position that was clicked.
    Parameters:
    url -
    isMap -
 public PdfAction(String filename,
    String name) 
    Constructs a new PdfAction of Subtype GoToR.
    Parameters:
    filename - the file name to go to
    name - the named destination to go to
 public PdfAction(String filename,
    int page) 
    Constructs a new PdfAction of Subtype GoToR.
    Parameters:
    filename - the file name to go to
    page - the page destination to go to
 public PdfAction(String application,
    String parameters,
    String operation,
    String defaultDir) 
    Launches an application or a document.
    Parameters:
    application - the application to be launched or the document to be opened or printed.
    parameters - (Windows-specific) A parameter string to be passed to the application. It can be null.
    operation - (Windows-specific) the operation to perform: "open" - Open a document, "print" - Print a document. It can be null.
    defaultDir - (Windows-specific) the default directory in standard DOS syntax. It can be null.
Method from com.lowagie.text.pdf.PdfAction Summary:
buildArray,   createHide,   createHide,   createHide,   createHide,   createImportData,   createLaunch,   createResetForm,   createSubmitForm,   gotoEmbedded,   gotoEmbedded,   gotoLocalPage,   gotoLocalPage,   gotoRemotePage,   javaScript,   javaScript,   next,   rendition,   setOCGstate
Methods from com.lowagie.text.pdf.PdfDictionary:
contains,   get,   getAsArray,   getAsBoolean,   getAsDict,   getAsIndirectObject,   getAsName,   getAsNumber,   getAsStream,   getAsString,   getDirectObject,   getKeys,   isCatalog,   isFont,   isOutlineTree,   isPage,   isPages,   merge,   mergeDifferent,   put,   putAll,   putEx,   remove,   size,   toPdf,   toString
Methods from com.lowagie.text.pdf.PdfObject:
canBeInObjStm,   getBytes,   getIndRef,   isArray,   isBoolean,   isDictionary,   isIndirect,   isName,   isNull,   isNumber,   isStream,   isString,   length,   setContent,   setIndRef,   toPdf,   toString,   type
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.lowagie.text.pdf.PdfAction Detail:
 static PdfArray buildArray(Object[] names) 
 static PdfAction createHide(PdfObject obj,
    boolean hide) 
    A Hide action hides or shows an object.
 public static PdfAction createHide(PdfAnnotation annot,
    boolean hide) 
    A Hide action hides or shows an annotation.
 public static PdfAction createHide(String name,
    boolean hide) 
    A Hide action hides or shows an annotation.
 public static PdfAction createHide(Object[] names,
    boolean hide) 
    A Hide action hides or shows objects.
 public static PdfAction createImportData(String file) 
    Creates an Import field.
 public static PdfAction createLaunch(String application,
    String parameters,
    String operation,
    String defaultDir) 
    Launches an application or a document.
 public static PdfAction createResetForm(Object[] names,
    int flags) 
    Creates a resetform.
 public static PdfAction createSubmitForm(String file,
    Object[] names,
    int flags) 
    Creates a submit form.
 public static PdfAction gotoEmbedded(String filename,
    PdfTargetDictionary target,
    PdfObject dest,
    boolean newWindow) 
    Creates a GoToE action to an embedded file.
 public static PdfAction gotoEmbedded(String filename,
    PdfTargetDictionary target,
    String dest,
    boolean isName,
    boolean newWindow) 
    Creates a GoToE action to an embedded file.
 public static PdfAction gotoLocalPage(String dest,
    boolean isName) 
    Creates a GoTo action to a named destination.
 public static PdfAction gotoLocalPage(int page,
    PdfDestination dest,
    PdfWriter writer) 
    Creates a GoTo action to an internal page.
 public static PdfAction gotoRemotePage(String filename,
    String dest,
    boolean isName,
    boolean newWindow) 
    Creates a GoToR action to a named destination.
 public static PdfAction javaScript(String code,
    PdfWriter writer) 
    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.
 public static PdfAction javaScript(String code,
    PdfWriter writer,
    boolean unicode) 
    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.
 public  void next(PdfAction na) 
    Add a chained action.
 public static PdfAction rendition(String file,
    PdfFileSpecification fs,
    String mimeType,
    PdfIndirectReference ref) throws IOException 
    Creates a Rendition action
 public static PdfAction setOCGstate(ArrayList state,
    boolean preserveRB) 
    A set-OCG-state action (PDF 1.5) sets the state of one or more optional content groups.