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

📄 rtfdocumentsettings.html

📁 IText PDF开发工具说明文档,使用很方便。
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<P><DD><DL></DL></DD></DL><HR><A NAME="setOptionsForOpenOfficeOrg()"><!-- --></A><H3>setOptionsForOpenOfficeOrg</H3><PRE>public void <B>setOptionsForOpenOfficeOrg</B>()</PRE><DL><DD>Set the options required for RTF documents to display correctly in OpenOffice.Org Writer. Sets <code>outputTableRowDefinitionAfter = false</code>.<P><DD><DL></DL></DD></DL><HR><A NAME="setProtection(int, java.lang.String)"><!-- --></A><H3>setProtection</H3><PRE>public boolean <B>setProtection</B>(int&nbsp;level,                             <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>&nbsp;pwd)</PRE><DL><DD>Author: Howard Shank (hgshank@yahoo.com)<P><DD><DL><DT><B>Parameters:</B><DD><CODE>level</CODE> - Document protecton level<DD><CODE>pwd</CODE> - Document password - clear text<DT><B>Since:</B></DT>  <DD>2.1.1</DD></DL></DD></DL><HR><A NAME="unprotectDocument(java.lang.String)"><!-- --></A><H3>unprotectDocument</H3><PRE>public boolean <B>unprotectDocument</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>&nbsp;pwd)</PRE><DL><DD>Author: Howard Shank (hgshank@yahoo.com)<P><DD><DL><DT><B>Parameters:</B><DD><CODE>pwd</CODE> - Document password - clear text<DT><B>Returns:</B><DD>true if document unprotected, false if protection is not removed.<DT><B>Since:</B></DT>  <DD>2.1.1</DD></DL></DD></DL><HR><A NAME="setProtectionLevel(int)"><!-- --></A><H3>setProtectionLevel</H3><PRE>public boolean <B>setProtectionLevel</B>(int&nbsp;level)</PRE><DL><DD>Author: Howard Shank (hgshank@yahoo.com)<P><DD><DL><DT><B>Parameters:</B><DD><CODE>level</CODE> - Document protection level<DT><B>Since:</B></DT>  <DD>2.1.1</DD></DL></DD></DL><HR><A NAME="setPasswordHash(java.lang.String)"><!-- --></A><H3>setPasswordHash</H3><PRE>public void <B>setPasswordHash</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>&nbsp;pwd)</PRE><DL><DD>This function is not intended for general use. Please see 'public boolean setProtection(int level, String pwd)'. Author: Howard Shank (hgshank@yahoo.com)<P><DD><DL><DT><B>Parameters:</B><DD><CODE>pwd</CODE> - Password HASH to set the document password hash to.<DT><B>Since:</B></DT>  <DD>2.1.1</DD></DL></DD></DL><HR><A NAME="convertProtectionLevel()"><!-- --></A><H3>convertProtectionLevel</H3><PRE>private int <B>convertProtectionLevel</B>()</PRE><DL><DD>Converts protection level from internal bitmap value to protlevel output value. Author: Howard Shank (hgshank@yahoo.com)<P><DD><DL><DT><B>Returns:</B><DD><pre> 0 = Revision protection 1 = Annotation/Comment protection 2 = Form protection 3 = Read only protection </pre><DT><B>Since:</B></DT>  <DD>2.1.1</DD></DL></DD></DL><HR><A NAME="getProtectionLevelRaw()"><!-- --></A><H3>getProtectionLevelRaw</H3><PRE>public int <B>getProtectionLevelRaw</B>()</PRE><DL><DD>Author: Howard Shank (hgshank@yahoo.com)<P><DD><DL><DT><B>Returns:</B><DD>RTF document protection level<DT><B>Since:</B></DT>  <DD>2.1.1</DD></DL></DD></DL><HR><A NAME="getProtectionLevel()"><!-- --></A><H3>getProtectionLevel</H3><PRE>public int <B>getProtectionLevel</B>()</PRE><DL><DD>Author: Howard Shank (hgshank@yahoo.com)<P><DD><DL><DT><B>Returns:</B><DD>RTF document protection level<DT><B>Since:</B></DT>  <DD>2.1.1</DD></DL></DD></DL><HR><A NAME="getProtectionLevelBytes()"><!-- --></A><H3>getProtectionLevelBytes</H3><PRE>public byte[] <B>getProtectionLevelBytes</B>()</PRE><DL><DD>Author: Howard Shank (hgshank@yahoo.com)<P><DD><DL><DT><B>Returns:</B><DD>RTF document protection level as a byte array (byte[])<DT><B>Since:</B></DT>  <DD>2.1.1</DD></DL></DD></DL><HR><A NAME="setNewPassword(java.lang.String, java.lang.String)"><!-- --></A><H3>setNewPassword</H3><PRE>public boolean <B>setNewPassword</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>&nbsp;oldPwd,                              <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>&nbsp;newPwd)</PRE><DL><DD>Author: Howard Shank (hgshank@yahoo.com)<P><DD><DL><DT><B>Parameters:</B><DD><CODE>oldPwd</CODE> - Old password - clear text<DD><CODE>newPwd</CODE> - New password - clear text<DT><B>Returns:</B><DD>true if password set, false if password not set<DT><B>Since:</B></DT>  <DD>2.1.1</DD></DL></DD></DL><HR><A NAME="setReadOnlyRecommended(boolean)"><!-- --></A><H3>setReadOnlyRecommended</H3><PRE>public void <B>setReadOnlyRecommended</B>(boolean&nbsp;value)</PRE><DL><DD>Set the RTF flag that recommends the document be opened in read only mode. Author: Howard Shank (hgshank@yahoo.com)<P><DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - true if the flag is to be set, false if it is NOT to be set<DT><B>Since:</B></DT>  <DD>2.1.1</DD></DL></DD></DL><HR><A NAME="getReadOnlyRecommended()"><!-- --></A><H3>getReadOnlyRecommended</H3><PRE>public boolean <B>getReadOnlyRecommended</B>()</PRE><DL><DD>Get the RTF flag that recommends if the the document should be opened in read only mode. Author: Howard Shank (hgshank@yahoo.com)<P><DD><DL><DT><B>Returns:</B><DD>true if flag is set, false if it is not set<DT><B>Since:</B></DT>  <DD>2.1.1</DD></DL></DD></DL><HR><A NAME="isDocumentProtected()"><!-- --></A><H3>isDocumentProtected</H3><PRE>public boolean <B>isDocumentProtected</B>()</PRE><DL><DD>Determine if document has protection enabled. Author: Howard Shank (hgshank@yahoo.com)<P><DD><DL><DT><B>Returns:</B><DD>true if protection is enabled, false if it is not enabled<DT><B>Since:</B></DT>  <DD>2.1.1</DD></DL></DD></DL><HR><A NAME="getProtectionHashBytes()"><!-- --></A><H3>getProtectionHashBytes</H3><PRE>public byte[] <B>getProtectionHashBytes</B>()</PRE><DL><DD>Obtain the password has as a byte array. Author: Howard Shank (hgshank@yahoo.com)<P><DD><DL><DT><B>Returns:</B><DD>The bytes of the password hash as a byte array (byte[])<DT><B>Since:</B></DT>  <DD>2.1.1</DD></DL></DD></DL><HR><A NAME="setImageWrittenAsBinary(boolean)"><!-- --></A><H3>setImageWrittenAsBinary</H3><PRE>public void <B>setImageWrittenAsBinary</B>(boolean&nbsp;imageWrittenAsBinary)</PRE><DL><DD>Set whether images are written as binary data or are hex encoded. Author: Mark Hall (Mark.Hall@mail.room3b.eu)<P><DD><DL><DT><B>Parameters:</B><DD><CODE>imageWrittenAsBinary</CODE> - <code>True</code> to write images as binary data, <code>false</code> for hex encoding.<DT><B>Since:</B></DT>  <DD>2.1.1</DD></DL></DD></DL><HR><A NAME="isImageWrittenAsBinary()"><!-- --></A><H3>isImageWrittenAsBinary</H3><PRE>public boolean <B>isImageWrittenAsBinary</B>()</PRE><DL><DD>Gets whether images are written as binary data or are hex encoded. Defaults to <code>true</code>. Author: Mark Hall (Mark.Hall@mail.room3b.eu)<P><DD><DL><DT><B>Returns:</B><DD><code>True</code> if images are written as binary data, <code>false</code> if hex encoded.<DT><B>Since:</B></DT>  <DD>2.1.1</DD></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/rtf/document/RtfDocumentHeader.html" title="class in com.lowagie.text.rtf.document"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../../com/lowagie/text/rtf/document/RtfGenerator.html" title="class in com.lowagie.text.rtf.document"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../../../index.html?com/lowagie/text/rtf/document/RtfDocumentSettings.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="RtfDocumentSettings.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 + -