📄 pdfversionimp.html
字号:
<DL></DL></DL><HR><A NAME="headerWasWritten"><!-- --></A><H3>headerWasWritten</H3><PRE>protected boolean <B>headerWasWritten</B></PRE><DL><DD>Indicates if the header was already written.<P><DL></DL></DL><HR><A NAME="appendmode"><!-- --></A><H3>appendmode</H3><PRE>protected boolean <B>appendmode</B></PRE><DL><DD>Indicates if we are working in append mode.<P><DL></DL></DL><HR><A NAME="header_version"><!-- --></A><H3>header_version</H3><PRE>protected char <B>header_version</B></PRE><DL><DD>The version that was or will be written to the header.<P><DL></DL></DL><HR><A NAME="catalog_version"><!-- --></A><H3>catalog_version</H3><PRE>protected <A HREF="../../../../../com/lowagie/text/pdf/PdfName.html" title="class in com.lowagie.text.pdf">PdfName</A> <B>catalog_version</B></PRE><DL><DD>The version that will be written to the catalog.<P><DL></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_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>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="PdfVersionImp()"><!-- --></A><H3>PdfVersionImp</H3><PRE>public <B>PdfVersionImp</B>()</PRE><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="setPdfVersion(char)"><!-- --></A><H3>setPdfVersion</H3><PRE>public void <B>setPdfVersion</B>(char version)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../../com/lowagie/text/pdf/interfaces/PdfVersion.html#setPdfVersion(char)">PdfVersion</A></CODE></B></DD><DD>If the PDF Header hasn't been written yet, this changes the version as it will appear in the PDF Header. If the PDF header was already written to the OutputStream, this changes the version as it will appear in the Catalog.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../com/lowagie/text/pdf/interfaces/PdfVersion.html#setPdfVersion(char)">setPdfVersion</A></CODE> in interface <CODE><A HREF="../../../../../com/lowagie/text/pdf/interfaces/PdfVersion.html" title="interface in com.lowagie.text.pdf.interfaces">PdfVersion</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>version</CODE> - a character representing the PDF version<DT><B>See Also:</B><DD><A HREF="../../../../../com/lowagie/text/pdf/interfaces/PdfVersion.html#setPdfVersion(char)"><CODE>PdfVersion.setPdfVersion(char)</CODE></A></DL></DD></DL><HR><A NAME="setAtLeastPdfVersion(char)"><!-- --></A><H3>setAtLeastPdfVersion</H3><PRE>public void <B>setAtLeastPdfVersion</B>(char version)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../../com/lowagie/text/pdf/interfaces/PdfVersion.html#setAtLeastPdfVersion(char)">PdfVersion</A></CODE></B></DD><DD>If the PDF Header hasn't been written yet, this changes the version as it will appear in the PDF Header, but only if the parameter refers to a higher version. If the PDF header was already written to the OutputStream, this changes the version as it will appear in the Catalog.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../com/lowagie/text/pdf/interfaces/PdfVersion.html#setAtLeastPdfVersion(char)">setAtLeastPdfVersion</A></CODE> in interface <CODE><A HREF="../../../../../com/lowagie/text/pdf/interfaces/PdfVersion.html" title="interface in com.lowagie.text.pdf.interfaces">PdfVersion</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>version</CODE> - a character representing the PDF version<DT><B>See Also:</B><DD><A HREF="../../../../../com/lowagie/text/pdf/interfaces/PdfVersion.html#setAtLeastPdfVersion(char)"><CODE>PdfVersion.setAtLeastPdfVersion(char)</CODE></A></DL></DD></DL><HR><A NAME="setPdfVersion(com.lowagie.text.pdf.PdfName)"><!-- --></A><H3>setPdfVersion</H3><PRE>public void <B>setPdfVersion</B>(<A HREF="../../../../../com/lowagie/text/pdf/PdfName.html" title="class in com.lowagie.text.pdf">PdfName</A> version)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../../com/lowagie/text/pdf/interfaces/PdfVersion.html#setPdfVersion(com.lowagie.text.pdf.PdfName)">PdfVersion</A></CODE></B></DD><DD>Sets the PDF version as it will appear in the Catalog. Note that this only has effect if you use a later version than the one that appears in the header; this method ignores the parameter if you try to set a lower version.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../com/lowagie/text/pdf/interfaces/PdfVersion.html#setPdfVersion(com.lowagie.text.pdf.PdfName)">setPdfVersion</A></CODE> in interface <CODE><A HREF="../../../../../com/lowagie/text/pdf/interfaces/PdfVersion.html" title="interface in com.lowagie.text.pdf.interfaces">PdfVersion</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>version</CODE> - the PDF name that will be used for the Version key in the catalog<DT><B>See Also:</B><DD><A HREF="../../../../../com/lowagie/text/pdf/interfaces/PdfVersion.html#setPdfVersion(com.lowagie.text.pdf.PdfName)"><CODE>PdfVersion.setPdfVersion(com.lowagie.text.pdf.PdfName)</CODE></A></DL></DD></DL><HR><A NAME="setAppendmode(boolean)"><!-- --></A><H3>setAppendmode</H3><PRE>public void <B>setAppendmode</B>(boolean appendmode)</PRE><DL><DD>Sets the append mode.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="writeHeader(com.lowagie.text.pdf.OutputStreamCounter)"><!-- --></A><H3>writeHeader</H3><PRE>public void <B>writeHeader</B>(<A HREF="../../../../../com/lowagie/text/pdf/OutputStreamCounter.html" title="class in com.lowagie.text.pdf">OutputStreamCounter</A> os) 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>Writes the header to the OutputStreamCounter.<P><DD><DL></DL></DD><DD><DL><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="getVersionAsName(char)"><!-- --></A><H3>getVersionAsName</H3><PRE>public <A HREF="../../../../../com/lowagie/text/pdf/PdfName.html" title="class in com.lowagie.text.pdf">PdfName</A> <B>getVersionAsName</B>(char version)</PRE><DL><DD>Returns the PDF version as a name.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>version</CODE> - the version character.</DL></DD></DL><HR><A NAME="getVersionAsByteArray(char)"><!-- --></A><H3>getVersionAsByteArray</H3><PRE>public byte[] <B>getVersionAsByteArray</B>(char version)</PRE><DL><DD>Returns the version as a byte[].<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>version</CODE> - the version character</DL></DD></DL><HR><A NAME="addToCatalog(com.lowagie.text.pdf.PdfDictionary)"><!-- --></A><H3>addToCatalog</H3><PRE>public void <B>addToCatalog</B>(<A HREF="../../../../../com/lowagie/text/pdf/PdfDictionary.html" title="class in com.lowagie.text.pdf">PdfDictionary</A> catalog)</PRE><DL><DD>Adds the version to the Catalog dictionary.<P><DD><DL></DL></DD><DD><DL></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/internal/PdfAnnotationsImp.html" title="class in com.lowagie.text.pdf.internal"><B>PREV CLASS</B></A> <A HREF="../../../../../com/lowagie/text/pdf/internal/PdfViewerPreferencesImp.html" title="class in com.lowagie.text.pdf.internal"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../index.html?com/lowagie/text/pdf/internal/PdfVersionImp.html" target="_top"><B>FRAMES</B></A> <A HREF="PdfVersionImp.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 | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <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 + -