⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pdfcopyfields.html

📁 IText PDF开发工具说明文档,使用很方便。
💻 HTML
📖 第 1 页 / 共 4 页
字号:
                <ul>                        <li>PdfName.<b>USENONE</b>                        <li>PdfName.<b>USEOUTLINES</b>                        <li>PdfName.<b>USETHUMBS</b>                        <li>PdfName.<b>USEOC</b>                </ul> <li>In case the key is PdfName.DIRECTION, the value must be one of these names:                <ul>                        <li>PdfName.<b>L2R</b>                        <li>PdfName.<b>R2L</b>                </ul> <li>In case the key is one of these values:                <ul>                        <li>PdfName.<b>VIEWAREA</b>                        <li>PdfName.<b>VIEWCLIP</b>                        <li>PdfName.<b>PRINTAREA</b>                        <li>PdfName.<b>PRINTCLIP</b>                </ul>        The value must be one of these names:                <ul>                        <li>PdfName.<b>MEDIABOX</b>                        <li>PdfName.<b>CROPBOX</b>                        <li>PdfName.<b>BLEEDBOX</b>                        <li>PdfName.<b>TRIMBOX</b>                        <li>PdfName.<b>ARTBOX</b>                </ul> <li>In case the key is PdfName.<b>PRINTSCALING</b>, the value can be                <ul>                        <li>PdfName.<b>APPDEFAULT</b>                        <li>PdfName.<b>NONE</b>                </ul> <li>In case the key is PdfName.<b>DUPLEX</b>, the value can be:                <ul>                        <li>PdfName.<b>SIMPLEX</b>                        <li>PdfName.<b>DUPLEXFLIPSHORTEDGE</b>                        <li>PdfName.<b>DUPLEXFLIPLONGEDGE</b>                </ul> <li>In case the key is PdfName.<b>PICKTRAYBYPDFSIZE</b>, the value must be of type PdfBoolean. <li>In case the key is PdfName.<b>PRINTPAGERANGE</b>, the value must be of type PdfArray. <li>In case the key is PdfName.<b>NUMCOPIES</b>, the value must be of type PdfNumber. <ul> </ul><P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/lowagie/text/pdf/interfaces/PdfViewerPreferences.html#addViewerPreference(com.lowagie.text.pdf.PdfName, com.lowagie.text.pdf.PdfObject)">addViewerPreference</A></CODE> in interface <CODE><A HREF="../../../../com/lowagie/text/pdf/interfaces/PdfViewerPreferences.html" title="interface in com.lowagie.text.pdf.interfaces">PdfViewerPreferences</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>key</CODE> - the name of the viewer preference<DD><CODE>value</CODE> - the value of the viewer preference<DT><B>See Also:</B><DD><A HREF="../../../../com/lowagie/text/pdf/interfaces/PdfViewerPreferences.html#addViewerPreference(com.lowagie.text.pdf.PdfName, com.lowagie.text.pdf.PdfObject)"><CODE>PdfViewerPreferences.addViewerPreference(com.lowagie.text.pdf.PdfName, com.lowagie.text.pdf.PdfObject)</CODE></A></DL></DD></DL><HR><A NAME="setViewerPreferences(int)"><!-- --></A><H3>setViewerPreferences</H3><PRE>public void <B>setViewerPreferences</B>(int&nbsp;preferences)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../com/lowagie/text/pdf/interfaces/PdfViewerPreferences.html#setViewerPreferences(int)">PdfViewerPreferences</A></CODE></B></DD><DD>Sets the page layout and page mode preferences by ORing one or two of these constants. <p> <ul> <li>The page layout to be used when the document is opened (choose one).   <ul>   <li><b>PAGE_LAYOUT_SINGLE_PAGE</b> - Display one page at a time. (default)   <li><b>PAGE_LAYOUT_ONE_COLUMN</b> - Display the pages in one column.   <li><b>PAGE_LAYOUT_TWO_COLUMN_LEFT</b> - Display the pages in two columns, with       oddnumbered pages on the left.   <li><b>PAGE_LAYOUT_TWO_COLUMN_RIGHT</b> - Display the pages in two columns, with       oddnumbered pages on the right.   <li><b>PAGE_LAYOUT_TWO_PAGE_LEFT</b> - Display the pages two at a time, with       oddnumbered pages on the left.   <li><b>PAGE_LAYOUT_TWO_PAGE_RIGHT</b> - Display the pages two at a time, with       oddnumbered pages on the right.   </ul> <li>The page mode how the document should be displayed     when opened (choose one).   <ul>   <li><b>PAGE_MODE_USE_NONE</b> - Neither document outline nor thumbnail images visible. (default)   <li><b>PAGE_MODE_USE_OUTLINES</b> - Document outline visible.   <li><b>PAGE_MODE_USE_THUMBS</b> - Thumbnail images visible.   <li><b>PAGE_MODE_FULL_SCREEN</b> - Full-screen mode, with no menu bar, window       controls, or any other window visible.   <li><b>PAGE_MODE_USE_OC</b> - Optional content group panel visible   <li><b>PAGE_MODE_USE_ATTACHMENTS</b> - Attachments panel visible   </ul> </ul> For backward compatibility these values are also supported, but it's better to use method <code>addViewerPreference(key, value)</code> if you want to change the following preferences: <ul> <li><b>HIDE_TOOLBAR</b> - A flag specifying whether to hide the viewer application's tool     bars when the document is active. <li><b>HIDE_MENUBAR</b> - A flag specifying whether to hide the viewer application's     menu bar when the document is active. <li><b>HIDE_WINDOW_UI</b> - A flag specifying whether to hide user interface elements in     the document's window (such as scroll bars and navigation controls),     leaving only the document's contents displayed. <li><b>FIT_WINDOW</b> - A flag specifying whether to resize the document's window to     fit the size of the first displayed page. <li><b>CENTER_WINDOW</b> - A flag specifying whether to position the document's window     in the center of the screen. <li><b>DISPLAY_DOC_TITLE</b> - A flag specifying whether to display the document's title     in the top bar. <li>The predominant reading order for text. This entry has no direct effect on the     document's contents or page numbering, but can be used to determine the relative     positioning of pages when displayed side by side or printed <i>n-up</i> (choose one).   <ul>   <li><b>DIRECTION_L2R</b> - Left to right   <li><b>DIRECTION_R2L</b> - Right to left (including vertical writing systems such as       Chinese, Japanese, and Korean)   </ul> <li>The document's page mode, specifying how to display the     document on exiting full-screen mode. It is meaningful only     if the page mode is <b>PageModeFullScreen</b> (choose one).   <ul>   <li><b>NON_FULL_SCREEN_PAGE_MODE_USE_NONE</b> - Neither document outline nor thumbnail images       visible   <li><b>NON_FULL_SCREEN_PAGE_MODE_USE_OUTLINES</b> - Document outline visible   <li><b>NON_FULL_SCREEN_PAGE_MODE_USE_THUMBS</b> - Thumbnail images visible   <li><b>NON_FULL_SCREEN_PAGE_MODE_USE_OC</b> - Optional content group panel visible   </ul> <li><b>PRINT_SCALING_NONE</b> - Indicates that the print dialog should reflect no page scaling. </ul><P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/lowagie/text/pdf/interfaces/PdfViewerPreferences.html#setViewerPreferences(int)">setViewerPreferences</A></CODE> in interface <CODE><A HREF="../../../../com/lowagie/text/pdf/interfaces/PdfViewerPreferences.html" title="interface in com.lowagie.text.pdf.interfaces">PdfViewerPreferences</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>preferences</CODE> - the viewer preferences<DT><B>See Also:</B><DD><A HREF="../../../../com/lowagie/text/pdf/interfaces/PdfViewerPreferences.html#setViewerPreferences(int)"><CODE>PdfViewerPreferences.setViewerPreferences(int)</CODE></A></DL></DD></DL><HR><A NAME="setEncryption(java.security.cert.Certificate[], int[], int)"><!-- --></A><H3>setEncryption</H3><PRE>public void <B>setEncryption</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/security/cert/Certificate.html?is-external=true" title="class or interface in java.security.cert">Certificate</A>[]&nbsp;certs,                          int[]&nbsp;permissions,                          int&nbsp;encryptionType)                   throws <A HREF="../../../../com/lowagie/text/DocumentException.html" title="class in com.lowagie.text">DocumentException</A></PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../com/lowagie/text/pdf/interfaces/PdfEncryptionSettings.html#setEncryption(java.security.cert.Certificate[], int[], int)">PdfEncryptionSettings</A></CODE></B></DD><DD>Sets the certificate encryption options for this document. An array of one or more public certificates must be provided together with an array of the same size for the permissions for each certificate.  The open permissions for the document can be  AllowPrinting, AllowModifyContents, AllowCopy, AllowModifyAnnotations,  AllowFillIn, AllowScreenReaders, AllowAssembly and AllowDegradedPrinting.  The permissions can be combined by ORing them. Optionally DO_NOT_ENCRYPT_METADATA can be ored to output the metadata in cleartext<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/lowagie/text/pdf/interfaces/PdfEncryptionSettings.html#setEncryption(java.security.cert.Certificate[], int[], int)">setEncryption</A></CODE> in interface <CODE><A HREF="../../../../com/lowagie/text/pdf/interfaces/PdfEncryptionSettings.html" title="interface in com.lowagie.text.pdf.interfaces">PdfEncryptionSettings</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>certs</CODE> - the public certificates to be used for the encryption<DD><CODE>permissions</CODE> - the user permissions for each of the certificates<DD><CODE>encryptionType</CODE> - the type of encryption. It can be one of STANDARD_ENCRYPTION_40, STANDARD_ENCRYPTION_128 or ENCRYPTION_AES128.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../com/lowagie/text/DocumentException.html" title="class in com.lowagie.text">DocumentException</A></CODE> - if the document is already open<DT><B>See Also:</B><DD><A HREF="../../../../com/lowagie/text/pdf/interfaces/PdfEncryptionSettings.html#setEncryption(java.security.cert.Certificate[], int[], int)"><CODE>PdfEncryptionSettings.setEncryption(java.security.cert.Certificate[], int[], int)</CODE></A></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>Hosted by <a href="http://www.hostbasket.com/">Hostbasket</a></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../../com/lowagie/text/pdf/PdfCopy.StampContent.html" title="class in com.lowagie.text.pdf"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../com/lowagie/text/pdf/PdfCopyFieldsImp.html" title="class in com.lowagie.text.pdf"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../../index.html?com/lowagie/text/pdf/PdfCopyFields.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="PdfCopyFields.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<SCRIPT type="text/javascript">  <!--  if(window==top) {    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');  }  //--></SCRIPT><NOSCRIPT>  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>

⌨️ 快捷键说明

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