|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.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.
PdfDictionary
Field Summary | |
static int |
FIRSTPAGE
A named action to go to the first page. |
static int |
LASTPAGE
A named action to go to the last page. |
static int |
NEXTPAGE
A named action to go to the next page. |
static int |
PREVPAGE
A named action to go to the previous page. |
static int |
PRINTDIALOG
A named action to open a print dialog. |
static int |
RESET_EXCLUDE
|
static int |
SUBMIT_COORDINATES
|
static int |
SUBMIT_EXCLUDE
|
static int |
SUBMIT_HTML_FORMAT
|
static int |
SUBMIT_HTML_GET
|
static int |
SUBMIT_INCLUDE_NO_VALUE_FIELDS
|
Fields inherited from class com.lowagie.text.pdf.PdfDictionary |
CATALOG, FONT, hashMap, OUTLINES, PAGE, PAGES |
Fields inherited from class com.lowagie.text.pdf.PdfObject |
ARRAY, BOOLEAN, bytes, DICTIONARY, INDIRECT, NAME, NOTHING, NULL, NUMBER, STREAM, STRING, TEXT_PDFDOCENCODING, TEXT_UNICODE, type |
Constructor Summary | |
|
PdfAction()
Create an empty action. |
|
PdfAction(int named)
Implements name actions. |
(package private) |
PdfAction(PdfIndirectReference destination)
Constructs a new PdfAction of Subtype GoTo. |
|
PdfAction(String url)
Constructs a new PdfAction of Subtype URI. |
|
PdfAction(String url,
boolean isMap)
|
|
PdfAction(String filename,
int page)
Constructs a new PdfAction of Subtype GoToR. |
|
PdfAction(String filename,
String name)
Constructs a new PdfAction of Subtype GoToR. |
|
PdfAction(String application,
String parameters,
String operation,
String defaultDir)
Launchs an application or a document. |
|
PdfAction(URL url)
Constructs a new PdfAction of Subtype URI. |
|
PdfAction(URL url,
boolean isMap)
|
Method Summary | |
(package private) static PdfArray |
buildArray(Object[] names)
|
static PdfAction |
createHide(Object[] names,
boolean hide)
|
static PdfAction |
createHide(PdfAnnotation annot,
boolean hide)
|
(package private) static PdfAction |
createHide(PdfObject obj,
boolean hide)
|
static PdfAction |
createHide(String name,
boolean hide)
|
static PdfAction |
createImportData(String file)
|
static PdfAction |
createLaunch(String application,
String parameters,
String operation,
String defaultDir)
Launchs an application or a document. |
static PdfAction |
createResetForm(Object[] names,
int flags)
|
static PdfAction |
createSubmitForm(String file,
Object[] names,
int flags)
|
static PdfAction |
gotoLocalPage(int page,
PdfDestination dest,
PdfWriter writer)
Creates a GoTo action to an internal page. |
static PdfAction |
gotoLocalPage(String dest,
boolean isName)
Creates a GoTo action to a named destination. |
static PdfAction |
gotoRemotePage(String filename,
String dest,
boolean isName,
boolean newWindow)
Creates a GoToR action to a named destination. |
static PdfAction |
javaScript(String code,
PdfWriter writer)
Creates a JavaScript action. |
static PdfAction |
javaScript(String code,
PdfWriter writer,
boolean unicode)
Creates a JavaScript action. |
void |
next(PdfAction na)
Add a chained action. |
static PdfAction |
rendition(String file,
PdfFileSpecification fs,
String mimeType,
PdfIndirectReference ref)
Creates a Rendition action |
Methods inherited from class com.lowagie.text.pdf.PdfDictionary |
contains, get, getKeys, isCatalog, isDictionaryType, isFont, isOutlineTree, isPage, isPages, merge, mergeDifferent, put, putAll, putDel, putEx, remove, size, toPdf |
Methods inherited from class com.lowagie.text.pdf.PdfObject |
getBytes, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, toString, type |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int FIRSTPAGE
public static final int PREVPAGE
public static final int NEXTPAGE
public static final int LASTPAGE
public static final int PRINTDIALOG
public static final int SUBMIT_EXCLUDE
public static final int SUBMIT_INCLUDE_NO_VALUE_FIELDS
public static final int SUBMIT_HTML_FORMAT
public static final int SUBMIT_HTML_GET
public static final int SUBMIT_COORDINATES
public static final int RESET_EXCLUDE
Constructor Detail |
public PdfAction()
public PdfAction(URL url)
PdfAction
of Subtype URI.
url
- the Url to go topublic PdfAction(URL url, boolean isMap)
public PdfAction(String url)
PdfAction
of Subtype URI.
url
- the url to go topublic PdfAction(String url, boolean isMap)
PdfAction(PdfIndirectReference destination)
PdfAction
of Subtype GoTo.
destination
- the destination to go topublic PdfAction(String filename, String name)
PdfAction
of Subtype GoToR.
filename
- the file name to go toname
- the named destination to go topublic PdfAction(String filename, int page)
PdfAction
of Subtype GoToR.
filename
- the file name to go topage
- the page destination to go topublic PdfAction(int named)
named
- the named actionpublic PdfAction(String application, String parameters, String operation, String defaultDir)
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 Detail |
public static PdfAction createLaunch(String application, String parameters, String operation, String defaultDir)
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
.
public static PdfAction rendition(String file, PdfFileSpecification fs, String mimeType, PdfIndirectReference ref) throws IOException
IOException
public static PdfAction javaScript(String code, PdfWriter writer, boolean unicode)
code
- the JavaScript codewriter
- the writer for this actionunicode
- select JavaScript unicode. Note that the internal
Acrobat JavaScript engine does not support unicode,
so this may or may not work for you
public static PdfAction javaScript(String code, PdfWriter writer)
code
- the JavaScript codewriter
- the writer for this action
static PdfAction createHide(PdfObject obj, boolean hide)
public static PdfAction createHide(PdfAnnotation annot, boolean hide)
public static PdfAction createHide(String name, boolean hide)
static PdfArray buildArray(Object[] names)
public static PdfAction createHide(Object[] names, boolean hide)
public static PdfAction createSubmitForm(String file, Object[] names, int flags)
public static PdfAction createResetForm(Object[] names, int flags)
public static PdfAction createImportData(String file)
public void next(PdfAction na)
na
- the next actionpublic static PdfAction gotoLocalPage(int page, PdfDestination dest, PdfWriter writer)
page
- the page to go. First page is 1dest
- the destination for the pagewriter
- the writer for this action
public static PdfAction gotoLocalPage(String dest, boolean isName)
dest
- the named destinationisName
- if true sets the destination as a name, if false sets it as a String
public static PdfAction gotoRemotePage(String filename, String dest, boolean isName, boolean newWindow)
filename
- the file name to go todest
- the destination namenewWindow
- open the document in a new window if true
isName
- if true sets the destination as a name, if false sets it as a String
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |