📄 pdfencodings.html
字号:
<DT><B>Parameters:</B><DD><CODE>encoding</CODE> - the encoding<DD><CODE>text</CODE> - the <CODE>String</CODE> to be converted<DT><B>Returns:</B><DD>an array of <CODE>byte</CODE> representing the conversion according to the font's encoding</DL></DD></DL><HR><A NAME="convertToBytes(char, java.lang.String)"><!-- --></A><H3>convertToBytes</H3><PRE>public static final byte[] <B>convertToBytes</B>(char char1, <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> encoding)</PRE><DL><DD>Converts a <CODE>String</CODE> to a </CODE>byte</CODE> array according to the font's encoding.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>encoding</CODE> - the encoding<DD><CODE>char1</CODE> - the <CODE>char</CODE> to be converted<DT><B>Returns:</B><DD>an array of <CODE>byte</CODE> representing the conversion according to the font's encoding</DL></DD></DL><HR><A NAME="convertToString(byte[], java.lang.String)"><!-- --></A><H3>convertToString</H3><PRE>public static final <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> <B>convertToString</B>(byte[] bytes, <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> encoding)</PRE><DL><DD>Converts a </CODE>byte</CODE> array to a <CODE>String</CODE> according to the some encoding.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>bytes</CODE> - the bytes to convert<DD><CODE>encoding</CODE> - the encoding<DT><B>Returns:</B><DD>the converted <CODE>String</CODE></DL></DD></DL><HR><A NAME="isPdfDocEncoding(java.lang.String)"><!-- --></A><H3>isPdfDocEncoding</H3><PRE>public static boolean <B>isPdfDocEncoding</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> text)</PRE><DL><DD>Checks is <CODE>text</CODE> only has PdfDocEncoding characters.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>text</CODE> - the <CODE>String</CODE> to test<DT><B>Returns:</B><DD><CODE>true</CODE> if only PdfDocEncoding characters are present</DL></DD></DL><HR><A NAME="clearCmap(java.lang.String)"><!-- --></A><H3>clearCmap</H3><PRE>public static void <B>clearCmap</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)</PRE><DL><DD>Clears the CJK cmaps from the cache. If <CODE>name</CODE> is the empty string then all the cache is cleared. Calling this method has no consequences other than the need to reload the cmap if needed.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the cmap to clear or all the cmaps if the empty string</DL></DD></DL><HR><A NAME="loadCmap(java.lang.String, byte[][])"><!-- --></A><H3>loadCmap</H3><PRE>public static void <B>loadCmap</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, byte[][] newline)</PRE><DL><DD>Loads a CJK cmap to the cache with the option of associating sequences to the newline.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the CJK cmap name<DD><CODE>newline</CODE> - the sequences to be replaced by a newline in the resulting CID. See <CODE>CRLF_CID_NEWLINE</CODE></DL></DD></DL><HR><A NAME="convertCmap(java.lang.String, byte[])"><!-- --></A><H3>convertCmap</H3><PRE>public static <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> <B>convertCmap</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, byte[] seq)</PRE><DL><DD>Converts a <CODE>byte</CODE> array encoded as <CODE>name</CODE> to a CID string. This is needed to reach some CJK characters that don't exist in 16 bit Unicode.</p> The font to use this result must use the encoding "Identity-H" or "Identity-V".</p> See ftp://ftp.oreilly.com/pub/examples/nutshell/cjkv/adobe/.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the CJK encoding name<DD><CODE>seq</CODE> - the <CODE>byte</CODE> array to be decoded<DT><B>Returns:</B><DD>the CID string</DL></DD></DL><HR><A NAME="convertCmap(java.lang.String, byte[], int, int)"><!-- --></A><H3>convertCmap</H3><PRE>public static <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> <B>convertCmap</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, byte[] seq, int start, int length)</PRE><DL><DD>Converts a <CODE>byte</CODE> array encoded as <CODE>name</CODE> to a CID string. This is needed to reach some CJK characters that don't exist in 16 bit Unicode.</p> The font to use this result must use the encoding "Identity-H" or "Identity-V".</p> See ftp://ftp.oreilly.com/pub/examples/nutshell/cjkv/adobe/.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the CJK encoding name<DD><CODE>start</CODE> - the start offset in the data<DD><CODE>length</CODE> - the number of bytes to convert<DD><CODE>seq</CODE> - the <CODE>byte</CODE> array to be decoded<DT><B>Returns:</B><DD>the CID string</DL></DD></DL><HR><A NAME="decodeSequence(byte[], int, int, char[][])"><!-- --></A><H3>decodeSequence</H3><PRE>static <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> <B>decodeSequence</B>(byte[] seq, int start, int length, char[][] planes)</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="readCmap(java.lang.String, byte[][])"><!-- --></A><H3>readCmap</H3><PRE>static char[][] <B>readCmap</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, byte[][] newline) 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><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="readCmap(java.lang.String, java.util.ArrayList)"><!-- --></A><H3>readCmap</H3><PRE>static void <B>readCmap</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, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/ArrayList.html?is-external=true" title="class or interface in java.util">ArrayList</A> planes) 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><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="encodeStream(java.io.InputStream, java.util.ArrayList)"><!-- --></A><H3>encodeStream</H3><PRE>static void <B>encodeStream</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</A> in, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/ArrayList.html?is-external=true" title="class or interface in java.util">ArrayList</A> planes) 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><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="breakLong(long, int, byte[])"><!-- --></A><H3>breakLong</H3><PRE>static void <B>breakLong</B>(long n, int size, byte[] seqs)</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="encodeSequence(int, byte[], char, java.util.ArrayList)"><!-- --></A><H3>encodeSequence</H3><PRE>static void <B>encodeSequence</B>(int size, byte[] seqs, char cid, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/ArrayList.html?is-external=true" title="class or interface in java.util">ArrayList</A> planes)</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="addExtraEncoding(java.lang.String, com.lowagie.text.pdf.ExtraEncoding)"><!-- --></A><H3>addExtraEncoding</H3><PRE>public static void <B>addExtraEncoding</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, <A HREF="../../../../com/lowagie/text/pdf/ExtraEncoding.html" title="interface in com.lowagie.text.pdf">ExtraEncoding</A> enc)</PRE><DL><DD>Adds an extra encoding.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the encoding. The encoding recognition is case insensitive<DD><CODE>enc</CODE> - the conversion class</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/PdfDocument.RenderingContext.html" title="class in com.lowagie.text.pdf"><B>PREV CLASS</B></A> <A HREF="../../../../com/lowagie/text/pdf/PdfEncodings.Cp437Conversion.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/PdfEncodings.html" target="_top"><B>FRAMES</B></A> <A HREF="PdfEncodings.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: <A HREF="#nested_class_summary">NESTED</A> | <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 + -