Java Doc for PdfAction.java in  » PDF » pdf-itext » com » lowagie » text » pdf » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » PDF » pdf itext » com.lowagie.text.pdf 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.lowagie.text.pdf.PdfObject
      com.lowagie.text.pdf.PdfDictionary
         com.lowagie.text.pdf.PdfAction

PdfAction
public class PdfAction extends PdfDictionary (Code)
A PdfAction defines an action that can be triggered from a PDF file.
See Also:   PdfDictionary


Field Summary
final public static  intFIRSTPAGE
     A named action to go to the first page.
final public static  intLASTPAGE
     A named action to go to the last page.
final public static  intNEXTPAGE
     A named action to go to the next page.
final public static  intPREVPAGE
     A named action to go to the previous page.
final public static  intPRINTDIALOG
     A named action to open a print dialog.
final public static  intRESET_EXCLUDE
    
final public static  intSUBMIT_CANONICAL_FORMAT
    
final public static  intSUBMIT_COORDINATES
    
final public static  intSUBMIT_EMBED_FORM
    
final public static  intSUBMIT_EXCLUDE
    
final public static  intSUBMIT_EXCL_F_KEY
    
final public static  intSUBMIT_EXCL_NON_USER_ANNOTS
    
final public static  intSUBMIT_HTML_FORMAT
    
final public static  intSUBMIT_HTML_GET
    
final public static  intSUBMIT_INCLUDE_ANNOTATIONS
    
final public static  intSUBMIT_INCLUDE_APPEND_SAVES
    
final public static  intSUBMIT_INCLUDE_NO_VALUE_FIELDS
    
final public static  intSUBMIT_PDF
    
final public static  intSUBMIT_XFDF
    

Constructor Summary
public  PdfAction()
     Create an empty action.
public  PdfAction(URL url)
     Constructs a new PdfAction of Subtype URI.
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.
public  PdfAction(String url)
     Constructs a new PdfAction of Subtype URI.
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.
 PdfAction(PdfIndirectReference destination)
     Constructs a new PdfAction of Subtype GoTo.
public  PdfAction(String filename, String name)
     Constructs a new PdfAction of Subtype GoToR.
public  PdfAction(String filename, int page)
     Constructs a new PdfAction of Subtype GoToR.
public  PdfAction(int named)
     Implements name actions.
public  PdfAction(String application, String parameters, String operation, String defaultDir)
     Launchs an application or a document.

Method Summary
static  PdfArraybuildArray(Object names)
    
static  PdfActioncreateHide(PdfObject obj, boolean hide)
     A Hide action hides or shows an object.
public static  PdfActioncreateHide(PdfAnnotation annot, boolean hide)
     A Hide action hides or shows an annotation.
public static  PdfActioncreateHide(String name, boolean hide)
     A Hide action hides or shows an annotation.
public static  PdfActioncreateHide(Object names, boolean hide)
     A Hide action hides or shows objects.
public static  PdfActioncreateImportData(String file)
     Creates an Import field.
public static  PdfActioncreateLaunch(String application, String parameters, String operation, String defaultDir)
     Launchs an application or a document.
Parameters:
  application - the application to be launched or the document to be opened or printed.
Parameters:
  parameters - (Windows-specific) A parameter string to be passed to the application.It can be null.
Parameters:
  operation - (Windows-specific) the operation to perform: "open" - Open a document,"print" - Print a document.It can be null.
Parameters:
  defaultDir - (Windows-specific) the default directory in standard DOS syntax.It can be null.
public static  PdfActioncreateResetForm(Object names, int flags)
     Creates a resetform.
public static  PdfActioncreateSubmitForm(String file, Object names, int flags)
     Creates a submit form.
public static  PdfActiongotoEmbedded(String filename, PdfTargetDictionary target, String dest, boolean isName, boolean newWindow)
     Creates a GoToE action to an embedded file.
public static  PdfActiongotoEmbedded(String filename, PdfTargetDictionary target, PdfObject dest, boolean newWindow)
     Creates a GoToE action to an embedded file.
public static  PdfActiongotoLocalPage(int page, PdfDestination dest, PdfWriter writer)
     Creates a GoTo action to an internal page.
Parameters:
  page - the page to go.
public static  PdfActiongotoLocalPage(String dest, boolean isName)
     Creates a GoTo action to a named destination.
public static  PdfActiongotoRemotePage(String filename, String dest, boolean isName, boolean newWindow)
     Creates a GoToR action to a named destination.
Parameters:
  filename - the file name to go to
Parameters:
  dest - the destination name
Parameters:
  isName - if true sets the destination as a name, if false sets it as a String
Parameters:
  newWindow - open the document in a new window if true, if false the current document is replaced by the new document.
public static  PdfActionjavaScript(String code, PdfWriter writer, boolean unicode)
     Creates a JavaScript action.
public static  PdfActionjavaScript(String code, PdfWriter writer)
     Creates a JavaScript action.
public  voidnext(PdfAction na)
     Add a chained action.
public static  PdfActionrendition(String file, PdfFileSpecification fs, String mimeType, PdfIndirectReference ref)
    
public static  PdfActionsetOCGstate(ArrayList state, boolean preserveRB)
     A set-OCG-state action (PDF 1.5) sets the state of one or more optional content groups.
Parameters:
  state - an array consisting of any number of sequences beginning with a PdfNameor String (ON, OFF, or Toggle) followed by one or more optional content group dictionariesPdfLayer or a PdfIndirectReference to a PdfLayer.
The array elements are processed from left to right; each name is appliedto the subsequent groups until the next name is encountered:
  • ON sets the state of subsequent groups to ON
  • OFF sets the state of subsequent groups to OFF
  • Toggle reverses the state of subsequent groups

Parameters:
  preserveRB - if true, indicates that radio-button state relationships between optionalcontent groups (as specified by the RBGroups entry in the current configurationdictionary) should be preserved when the states in thestate array are applied.

Field Detail
FIRSTPAGE
final public static int FIRSTPAGE(Code)
A named action to go to the first page.



LASTPAGE
final public static int LASTPAGE(Code)
A named action to go to the last page.



NEXTPAGE
final public static int NEXTPAGE(Code)
A named action to go to the next page.



PREVPAGE
final public static int PREVPAGE(Code)
A named action to go to the previous page.



PRINTDIALOG
final public static int PRINTDIALOG(Code)
A named action to open a print dialog.



RESET_EXCLUDE
final public static int RESET_EXCLUDE(Code)
a possible submitvalue



SUBMIT_CANONICAL_FORMAT
final public static int SUBMIT_CANONICAL_FORMAT(Code)
a possible submitvalue



SUBMIT_COORDINATES
final public static int SUBMIT_COORDINATES(Code)
a possible submitvalue



SUBMIT_EMBED_FORM
final public static int SUBMIT_EMBED_FORM(Code)
a possible submitvalue



SUBMIT_EXCLUDE
final public static int SUBMIT_EXCLUDE(Code)
a possible submitvalue



SUBMIT_EXCL_F_KEY
final public static int SUBMIT_EXCL_F_KEY(Code)
a possible submitvalue



SUBMIT_EXCL_NON_USER_ANNOTS
final public static int SUBMIT_EXCL_NON_USER_ANNOTS(Code)
a possible submitvalue



SUBMIT_HTML_FORMAT
final public static int SUBMIT_HTML_FORMAT(Code)
a possible submitvalue



SUBMIT_HTML_GET
final public static int SUBMIT_HTML_GET(Code)
a possible submitvalue



SUBMIT_INCLUDE_ANNOTATIONS
final public static int SUBMIT_INCLUDE_ANNOTATIONS(Code)
a possible submitvalue



SUBMIT_INCLUDE_APPEND_SAVES
final public static int SUBMIT_INCLUDE_APPEND_SAVES(Code)
a possible submitvalue



SUBMIT_INCLUDE_NO_VALUE_FIELDS
final public static int SUBMIT_INCLUDE_NO_VALUE_FIELDS(Code)
a possible submitvalue



SUBMIT_PDF
final public static int SUBMIT_PDF(Code)
a possible submitvalue



SUBMIT_XFDF
final public static int SUBMIT_XFDF(Code)
a possible submitvalue




Constructor Detail
PdfAction
public PdfAction()(Code)
Create an empty action.



PdfAction
public PdfAction(URL url)(Code)
Constructs a new PdfAction of Subtype URI.
Parameters:
  url - the Url to go to



PdfAction
public PdfAction(URL url, boolean isMap)(Code)
Construct a new PdfAction of Subtype URI that accepts the x and y coordinate of the position that was clicked.
Parameters:
  url -
Parameters:
  isMap -



PdfAction
public PdfAction(String url)(Code)
Constructs a new PdfAction of Subtype URI.
Parameters:
  url - the url to go to



PdfAction
public PdfAction(String url, boolean isMap)(Code)
Construct a new PdfAction of Subtype URI that accepts the x and y coordinate of the position that was clicked.
Parameters:
  url -
Parameters:
  isMap -



PdfAction
PdfAction(PdfIndirectReference destination)(Code)
Constructs a new PdfAction of Subtype GoTo.
Parameters:
  destination - the destination to go to



PdfAction
public PdfAction(String filename, String name)(Code)
Constructs a new PdfAction of Subtype GoToR.
Parameters:
  filename - the file name to go to
Parameters:
  name - the named destination to go to



PdfAction
public PdfAction(String filename, int page)(Code)
Constructs a new PdfAction of Subtype GoToR.
Parameters:
  filename - the file name to go to
Parameters:
  page - the page destination to go to



PdfAction
public PdfAction(int named)(Code)
Implements name actions. The action can be FIRSTPAGE, LASTPAGE, NEXTPAGE, PREVPAGE and PRINTDIALOG.
Parameters:
  named - the named action



PdfAction
public PdfAction(String application, String parameters, String operation, String defaultDir)(Code)
Launchs an application or a document.
Parameters:
  application - the application to be launched or the document to be opened or printed.
Parameters:
  parameters - (Windows-specific) A parameter string to be passed to the application.It can be null.
Parameters:
  operation - (Windows-specific) the operation to perform: "open" - Open a document,"print" - Print a document.It can be null.
Parameters:
  defaultDir - (Windows-specific) the default directory in standard DOS syntax.It can be null.




Method Detail
buildArray
static PdfArray buildArray(Object names)(Code)



createHide
static PdfAction createHide(PdfObject obj, boolean hide)(Code)
A Hide action hides or shows an object.
Parameters:
  obj - object to hide or show
Parameters:
  hide - true is hide, false is show a Hide Action



createHide
public static PdfAction createHide(PdfAnnotation annot, boolean hide)(Code)
A Hide action hides or shows an annotation.
Parameters:
  annot -
Parameters:
  hide - A Hide Action



createHide
public static PdfAction createHide(String name, boolean hide)(Code)
A Hide action hides or shows an annotation.
Parameters:
  name -
Parameters:
  hide - A Hide Action



createHide
public static PdfAction createHide(Object names, boolean hide)(Code)
A Hide action hides or shows objects.
Parameters:
  names -
Parameters:
  hide - A Hide Action



createImportData
public static PdfAction createImportData(String file)(Code)
Creates an Import field.
Parameters:
  file - A PdfAction



createLaunch
public static PdfAction createLaunch(String application, String parameters, String operation, String defaultDir)(Code)
Launchs an application or a document.
Parameters:
  application - the application to be launched or the document to be opened or printed.
Parameters:
  parameters - (Windows-specific) A parameter string to be passed to the application.It can be null.
Parameters:
  operation - (Windows-specific) the operation to perform: "open" - Open a document,"print" - Print a document.It can be null.
Parameters:
  defaultDir - (Windows-specific) the default directory in standard DOS syntax.It can be null. a Launch action



createResetForm
public static PdfAction createResetForm(Object names, int flags)(Code)
Creates a resetform.
Parameters:
  names - the objects to reset
Parameters:
  flags - submit properties A PdfAction



createSubmitForm
public static PdfAction createSubmitForm(String file, Object names, int flags)(Code)
Creates a submit form.
Parameters:
  file - the URI to submit the form to
Parameters:
  names - the objects to submit
Parameters:
  flags - submit properties A PdfAction



gotoEmbedded
public static PdfAction gotoEmbedded(String filename, PdfTargetDictionary target, String dest, boolean isName, boolean newWindow)(Code)
Creates a GoToE action to an embedded file.
Parameters:
  filename - the root document of the target (null if the target is in the same document)
Parameters:
  dest - the named destination
Parameters:
  isName - if true sets the destination as a name, if false sets it as a String a GoToE action



gotoEmbedded
public static PdfAction gotoEmbedded(String filename, PdfTargetDictionary target, PdfObject dest, boolean newWindow)(Code)
Creates a GoToE action to an embedded file.
Parameters:
  filename - the root document of the target (null if the target is in the same document)
Parameters:
  target - a path to the target document of this action
Parameters:
  dest - the destination inside the target document, can be of type PdfDestination, PdfName, or PdfString
Parameters:
  newWindow - if true, the destination document should be opened in a new window a GoToE action



gotoLocalPage
public static PdfAction gotoLocalPage(int page, PdfDestination dest, PdfWriter writer)(Code)
Creates a GoTo action to an internal page.
Parameters:
  page - the page to go. First page is 1
Parameters:
  dest - the destination for the page
Parameters:
  writer - the writer for this action a GoTo action



gotoLocalPage
public static PdfAction gotoLocalPage(String dest, boolean isName)(Code)
Creates a GoTo action to a named destination.
Parameters:
  dest - the named destination
Parameters:
  isName - if true sets the destination as a name, if false sets it as a String a GoTo action



gotoRemotePage
public static PdfAction gotoRemotePage(String filename, String dest, boolean isName, boolean newWindow)(Code)
Creates a GoToR action to a named destination.
Parameters:
  filename - the file name to go to
Parameters:
  dest - the destination name
Parameters:
  isName - if true sets the destination as a name, if false sets it as a String
Parameters:
  newWindow - open the document in a new window if true, if false the current document is replaced by the new document. a GoToR action



javaScript
public static PdfAction javaScript(String code, PdfWriter writer, boolean unicode)(Code)
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.
Parameters:
  code - the JavaScript code
Parameters:
  writer - the writer for this action
Parameters:
  unicode - select JavaScript unicode. Note that the internalAcrobat JavaScript engine does not support unicode,so this may or may not work for you the JavaScript action



javaScript
public static PdfAction javaScript(String code, PdfWriter writer)(Code)
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.
Parameters:
  code - the JavaScript code
Parameters:
  writer - the writer for this action the JavaScript action



next
public void next(PdfAction na)(Code)
Add a chained action.
Parameters:
  na - the next action



rendition
public static PdfAction rendition(String file, PdfFileSpecification fs, String mimeType, PdfIndirectReference ref) throws IOException(Code)
Creates a Rendition action
Parameters:
  file -
Parameters:
  fs -
Parameters:
  mimeType -
Parameters:
  ref - a Media Clip action
throws:
  IOException -



setOCGstate
public static PdfAction setOCGstate(ArrayList state, boolean preserveRB)(Code)
A set-OCG-state action (PDF 1.5) sets the state of one or more optional content groups.
Parameters:
  state - an array consisting of any number of sequences beginning with a PdfNameor String (ON, OFF, or Toggle) followed by one or more optional content group dictionariesPdfLayer or a PdfIndirectReference to a PdfLayer.
The array elements are processed from left to right; each name is appliedto the subsequent groups until the next name is encountered:
  • ON sets the state of subsequent groups to ON
  • OFF sets the state of subsequent groups to OFF
  • Toggle reverses the state of subsequent groups

Parameters:
  preserveRB - if true, indicates that radio-button state relationships between optionalcontent groups (as specified by the RBGroups entry in the current configurationdictionary) should be preserved when the states in thestate array are applied. That is, if a group is set to ON (either by ON or Toggle) duringprocessing of the state array, any other groups belong to the same radio-buttongroup are turned OFF. If a group is set to OFF, there is no effect on other groups.
If false, radio-button state relationships, if any, are ignored the action



Fields inherited from com.lowagie.text.pdf.PdfDictionary
final public static PdfName CATALOG(Code)(Java Doc)
final public static PdfName FONT(Code)(Java Doc)
final public static PdfName OUTLINES(Code)(Java Doc)
final public static PdfName PAGE(Code)(Java Doc)
final public static PdfName PAGES(Code)(Java Doc)
protected HashMap hashMap(Code)(Java Doc)

Methods inherited from com.lowagie.text.pdf.PdfDictionary
public boolean contains(PdfName key)(Code)(Java Doc)
public PdfObject get(PdfName key)(Code)(Java Doc)
public PdfArray getAsArray(PdfName key)(Code)(Java Doc)
public PdfBoolean getAsBoolean(PdfName key)(Code)(Java Doc)
public PdfDictionary getAsDict(PdfName key)(Code)(Java Doc)
public PdfIndirectReference getAsIndirectObject(PdfName key)(Code)(Java Doc)
public PdfName getAsName(PdfName key)(Code)(Java Doc)
public PdfNumber getAsNumber(PdfName key)(Code)(Java Doc)
public PdfStream getAsStream(PdfName key)(Code)(Java Doc)
public PdfString getAsString(PdfName key)(Code)(Java Doc)
public PdfObject getDirectObject(PdfName key)(Code)(Java Doc)
public Set getKeys()(Code)(Java Doc)
public boolean isCatalog()(Code)(Java Doc)
public boolean isDictionaryType(PdfName type)(Code)(Java Doc)
public boolean isFont()(Code)(Java Doc)
public boolean isOutlineTree()(Code)(Java Doc)
public boolean isPage()(Code)(Java Doc)
public boolean isPages()(Code)(Java Doc)
public void merge(PdfDictionary other)(Code)(Java Doc)
public void mergeDifferent(PdfDictionary other)(Code)(Java Doc)
public void put(PdfName key, PdfObject value)(Code)(Java Doc)
public void putAll(PdfDictionary dic)(Code)(Java Doc)
public void putEx(PdfName key, PdfObject value)(Code)(Java Doc)
public void remove(PdfName key)(Code)(Java Doc)
public int size()(Code)(Java Doc)
public void toPdf(PdfWriter writer, OutputStream os) throws IOException(Code)(Java Doc)
public String toString()(Code)(Java Doc)

Fields inherited from com.lowagie.text.pdf.PdfObject
final public static int ARRAY(Code)(Java Doc)
final public static int BOOLEAN(Code)(Java Doc)
final public static int DICTIONARY(Code)(Java Doc)
final public static int INDIRECT(Code)(Java Doc)
final public static int NAME(Code)(Java Doc)
final public static String NOTHING(Code)(Java Doc)
final public static int NULL(Code)(Java Doc)
final public static int NUMBER(Code)(Java Doc)
final public static int STREAM(Code)(Java Doc)
final public static int STRING(Code)(Java Doc)
final public static String TEXT_PDFDOCENCODING(Code)(Java Doc)
final public static String TEXT_UNICODE(Code)(Java Doc)
protected byte[] bytes(Code)(Java Doc)
protected PRIndirectReference indRef(Code)(Java Doc)
protected int type(Code)(Java Doc)

Methods inherited from com.lowagie.text.pdf.PdfObject
public boolean canBeInObjStm()(Code)(Java Doc)
public byte[] getBytes()(Code)(Java Doc)
public PRIndirectReference getIndRef()(Code)(Java Doc)
public boolean isArray()(Code)(Java Doc)
public boolean isBoolean()(Code)(Java Doc)
public boolean isDictionary()(Code)(Java Doc)
public boolean isIndirect()(Code)(Java Doc)
public boolean isName()(Code)(Java Doc)
public boolean isNull()(Code)(Java Doc)
public boolean isNumber()(Code)(Java Doc)
public boolean isStream()(Code)(Java Doc)
public boolean isString()(Code)(Java Doc)
public int length()(Code)(Java Doc)
protected void setContent(String content)(Code)(Java Doc)
public void setIndRef(PRIndirectReference indRef)(Code)(Java Doc)
public void toPdf(PdfWriter writer, OutputStream os) throws IOException(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public int type()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.