📄 pdfaction.html
字号:
<DT><B>Parameters:</B><DD><CODE>filename</CODE> - the file name to go to<DD><CODE>name</CODE> - the named destination to go to</DL></DL><HR><A NAME="PdfAction(java.lang.String, int)"><!-- --></A><H3>PdfAction</H3><PRE>public <B>PdfAction</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> filename, int page)</PRE><DL><DD>Constructs a new <CODE>PdfAction</CODE> of Subtype GoToR.<P><DL><DT><B>Parameters:</B><DD><CODE>filename</CODE> - the file name to go to<DD><CODE>page</CODE> - the page destination to go to</DL></DL><HR><A NAME="PdfAction(int)"><!-- --></A><H3>PdfAction</H3><PRE>public <B>PdfAction</B>(int named)</PRE><DL><DD>Implements name actions. The action can be FIRSTPAGE, LASTPAGE, NEXTPAGE, PREVPAGE and PRINTDIALOG.<P><DL><DT><B>Parameters:</B><DD><CODE>named</CODE> - the named action</DL></DL><HR><A NAME="PdfAction(java.lang.String, java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>PdfAction</H3><PRE>public <B>PdfAction</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> application, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> parameters, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> operation, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> defaultDir)</PRE><DL><DD>Launches an application or a document.<P><DL><DT><B>Parameters:</B><DD><CODE>application</CODE> - the application to be launched or the document to be opened or printed.<DD><CODE>parameters</CODE> - (Windows-specific) A parameter string to be passed to the application. It can be <CODE>null</CODE>.<DD><CODE>operation</CODE> - (Windows-specific) the operation to perform: "open" - Open a document, "print" - Print a document. It can be <CODE>null</CODE>.<DD><CODE>defaultDir</CODE> - (Windows-specific) the default directory in standard DOS syntax. It can be <CODE>null</CODE>.</DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="createLaunch(java.lang.String, java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>createLaunch</H3><PRE>public static <A HREF="../../../../com/lowagie/text/pdf/PdfAction.html" title="class in com.lowagie.text.pdf">PdfAction</A> <B>createLaunch</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> application, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> parameters, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> operation, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> defaultDir)</PRE><DL><DD>Launches an application or a document.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>application</CODE> - the application to be launched or the document to be opened or printed.<DD><CODE>parameters</CODE> - (Windows-specific) A parameter string to be passed to the application. It can be <CODE>null</CODE>.<DD><CODE>operation</CODE> - (Windows-specific) the operation to perform: "open" - Open a document, "print" - Print a document. It can be <CODE>null</CODE>.<DD><CODE>defaultDir</CODE> - (Windows-specific) the default directory in standard DOS syntax. It can be <CODE>null</CODE>.<DT><B>Returns:</B><DD>a Launch action</DL></DD></DL><HR><A NAME="rendition(java.lang.String, com.lowagie.text.pdf.PdfFileSpecification, java.lang.String, com.lowagie.text.pdf.PdfIndirectReference)"><!-- --></A><H3>rendition</H3><PRE>public static <A HREF="../../../../com/lowagie/text/pdf/PdfAction.html" title="class in com.lowagie.text.pdf">PdfAction</A> <B>rendition</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> file, <A HREF="../../../../com/lowagie/text/pdf/PdfFileSpecification.html" title="class in com.lowagie.text.pdf">PdfFileSpecification</A> fs, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> mimeType, <A HREF="../../../../com/lowagie/text/pdf/PdfIndirectReference.html" title="class in com.lowagie.text.pdf">PdfIndirectReference</A> ref) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE><DL><DD>Creates a Rendition action<P><DD><DL><DT><B>Parameters:</B><DD><CODE>file</CODE> - <DD><CODE>fs</CODE> - <DD><CODE>mimeType</CODE> - <DD><CODE>ref</CODE> - <DT><B>Returns:</B><DD>a Media Clip action<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL></DD></DL><HR><A NAME="javaScript(java.lang.String, com.lowagie.text.pdf.PdfWriter, boolean)"><!-- --></A><H3>javaScript</H3><PRE>public static <A HREF="../../../../com/lowagie/text/pdf/PdfAction.html" title="class in com.lowagie.text.pdf">PdfAction</A> <B>javaScript</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> code, <A HREF="../../../../com/lowagie/text/pdf/PdfWriter.html" title="class in com.lowagie.text.pdf">PdfWriter</A> writer, boolean unicode)</PRE><DL><DD>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.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>code</CODE> - the JavaScript code<DD><CODE>writer</CODE> - the writer for this action<DD><CODE>unicode</CODE> - select JavaScript unicode. Note that the internal Acrobat JavaScript engine does not support unicode, so this may or may not work for you<DT><B>Returns:</B><DD>the JavaScript action</DL></DD></DL><HR><A NAME="javaScript(java.lang.String, com.lowagie.text.pdf.PdfWriter)"><!-- --></A><H3>javaScript</H3><PRE>public static <A HREF="../../../../com/lowagie/text/pdf/PdfAction.html" title="class in com.lowagie.text.pdf">PdfAction</A> <B>javaScript</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> code, <A HREF="../../../../com/lowagie/text/pdf/PdfWriter.html" title="class in com.lowagie.text.pdf">PdfWriter</A> writer)</PRE><DL><DD>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.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>code</CODE> - the JavaScript code<DD><CODE>writer</CODE> - the writer for this action<DT><B>Returns:</B><DD>the JavaScript action</DL></DD></DL><HR><A NAME="createHide(com.lowagie.text.pdf.PdfObject, boolean)"><!-- --></A><H3>createHide</H3><PRE>static <A HREF="../../../../com/lowagie/text/pdf/PdfAction.html" title="class in com.lowagie.text.pdf">PdfAction</A> <B>createHide</B>(<A HREF="../../../../com/lowagie/text/pdf/PdfObject.html" title="class in com.lowagie.text.pdf">PdfObject</A> obj, boolean hide)</PRE><DL><DD>A Hide action hides or shows an object.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>obj</CODE> - object to hide or show<DD><CODE>hide</CODE> - true is hide, false is show<DT><B>Returns:</B><DD>a Hide Action</DL></DD></DL><HR><A NAME="createHide(com.lowagie.text.pdf.PdfAnnotation, boolean)"><!-- --></A><H3>createHide</H3><PRE>public static <A HREF="../../../../com/lowagie/text/pdf/PdfAction.html" title="class in com.lowagie.text.pdf">PdfAction</A> <B>createHide</B>(<A HREF="../../../../com/lowagie/text/pdf/PdfAnnotation.html" title="class in com.lowagie.text.pdf">PdfAnnotation</A> annot, boolean hide)</PRE><DL><DD>A Hide action hides or shows an annotation.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>annot</CODE> - <DD><CODE>hide</CODE> - <DT><B>Returns:</B><DD>A Hide Action</DL></DD></DL><HR><A NAME="createHide(java.lang.String, boolean)"><!-- --></A><H3>createHide</H3><PRE>public static <A HREF="../../../../com/lowagie/text/pdf/PdfAction.html" title="class in com.lowagie.text.pdf">PdfAction</A> <B>createHide</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> name, boolean hide)</PRE><DL><DD>A Hide action hides or shows an annotation.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - <DD><CODE>hide</CODE> - <DT><B>Returns:</B><DD>A Hide Action</DL></DD></DL><HR><A NAME="buildArray(java.lang.Object[])"><!-- --></A><H3>buildArray</H3><PRE>static <A HREF="../../../../com/lowagie/text/pdf/PdfArray.html" title="class in com.lowagie.text.pdf">PdfArray</A> <B>buildArray</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>[] names)</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="createHide(java.lang.Object[], boolean)"><!-- --></A><H3>createHide</H3><PRE>public static <A HREF="../../../../com/lowagie/text/pdf/PdfAction.html" title="class in com.lowagie.text.pdf">PdfAction</A> <B>createHide</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>[] names, boolean hide)</PRE><DL><DD>A Hide action hides or shows objects.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>names</CODE> - <DD><CODE>hide</CODE> - <DT><B>Returns:</B><DD>A Hide Action</DL></DD></DL><HR><A NAME="createSubmitForm(java.lang.String, java.lang.Object[], int)"><!-- --></A><H3>createSubmitForm</H3><PRE>public static <A HREF="../../../../com/lowagie/text/pdf/PdfAction.html" title="class in com.lowagie.text.pdf">PdfAction</A> <B>createSubmitForm</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> file, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>[] names, int flags)</PRE><DL><DD>Creates a submit form.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>file</CODE> - the URI to submit the form to<DD><CODE>names</CODE> - the objects to submit<DD><CODE>flags</CODE> - submit properties<DT><B>Returns:</B><DD>A PdfAction</DL></DD></DL><HR><A NAME="createResetForm(java.lang.Object[], int)"><!-- --></A><H3>createResetForm</H3><PRE>public static <A HREF="../../../../com/lowagie/text/pdf/PdfAction.html" title="class in com.lowagie.text.pdf
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -