📄 pdfviewerpreferences.html
字号:
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>Parameters:</B><DD><CODE>preferences</CODE> - the viewer preferences<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>addViewerPreference(com.lowagie.text.pdf.PdfName, com.lowagie.text.pdf.PdfObject)</CODE></A></DL></DD></DL><HR><A NAME="addViewerPreference(com.lowagie.text.pdf.PdfName, com.lowagie.text.pdf.PdfObject)"><!-- --></A><H3>addViewerPreference</H3><PRE>void <B>addViewerPreference</B>(<A HREF="../../../../../com/lowagie/text/pdf/PdfName.html" title="class in com.lowagie.text.pdf">PdfName</A> key, <A HREF="../../../../../com/lowagie/text/pdf/PdfObject.html" title="class in com.lowagie.text.pdf">PdfObject</A> value)</PRE><DL><DD>Adds a viewer preference. <ul> <li>In case the key is one of these values: <ul> <li>PdfName.<b>HIDETOOLBAR</b> <li>PdfName.<b>HIDEMENUBAR</b> <li>PdfName.<b>HIDEWINDOWUI</b> <li>PdfName.<b>FITWINDOW</b> <li>PdfName.<b>CENTERWINDOW</b> <li>PdfName.<b>DISPLAYDOCTITLE</b> </ul> The value must be a of type PdfBoolean (true or false). <li>In case the key is PdfName.<b>NONFULLSCREENPAGEMODE</b>, the value must be one of these names: <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>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#setViewerPreferences(int)"><CODE>setViewerPreferences(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> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </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"> <A HREF="../../../../../com/lowagie/text/pdf/interfaces/PdfVersion.html" title="interface in com.lowagie.text.pdf.interfaces"><B>PREV CLASS</B></A> <A HREF="../../../../../com/lowagie/text/pdf/interfaces/PdfXConformance.html" title="interface in com.lowagie.text.pdf.interfaces"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../index.html?com/lowagie/text/pdf/interfaces/PdfViewerPreferences.html" target="_top"><B>FRAMES</B></A> <A HREF="PdfViewerPreferences.html" target="_top"><B>NO FRAMES</B></A> <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: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | CONSTR | <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 + -