multivalent.std.adaptor.pdf
public final class COS extends Object
Version: $Revision: 1.7 $ $Date: 2004/01/28 14:48:22 $
Field Summary | |
---|---|
static Class | CLASS_ARRAY
Java type ( Object[] ) of PDF array data type (e.g., [ 41 63 572 729 ] ).
|
static Class | CLASS_BOOLEAN Java type ( Boolean ) of PDF boolean data type (true or false ). |
static Class | CLASS_COMMENT Java type ( char[] ) of PDF comment data type (e.g., % comments run from '%' to end of line ). |
static Class | CLASS_DATA
Java type ( byte[] ) for raw data, which is not a PDF data type, but which is sometimes mixed with them.
|
static Class | CLASS_DICTIONARY
Java type (Dict) of PDF dictionary data type (e.g., << /Length 705 /Filter /FlateDecode >> ).
|
static Class | CLASS_INTEGER
Java type ( Integer ) of PDF integer number data type (e.g., 93515 ).
|
static Class | CLASS_IREF Java type (IRef) of PDF indirect reference data type (e.g., 15 0 R ). |
static Class | CLASS_NAME Java type ( String ) of PDF name data type (e.g., /Title ). |
static Class | CLASS_OBJSTMC If move object into a ObjStm, replace it with the object number of the ObjStm of this class ( java.lang.Long ) . |
static Class | CLASS_REAL Java type ( Double ) of PDF real number data type (e.g., 0.9505 ). |
static Class | CLASS_STRING
Java type ( StringBuffer ) of PDF string data type (e.g., (PDF Reference) and <a47cc386aea60669950095583bec355d> ).
|
static String | EOF String at end of trailer: "%%EOF". |
static FileFilter | FILTER |
static int | GEN_MAX |
static String | KEY_COMPRESS
Key in trailer for direct dictionary with compression information.
|
static String | KEY_COMPRESS_COMPACT Key in compression dictionary with indirect reference to Compact stream. |
static String | KEY_COMPRESS_FILTER Key in compression dictionary that gives compression method. |
static String | KEY_COMPRESS_LENGTHO Key in compression dictionary that gives original length of PDF. |
static String | KEY_COMPRESS_ROOT Key in compression dictionary that points to original /Catalog . |
static String | KEY_COMPRESS_SPECO Key in compression dictionary with major. |
static String | KEY_COMPRESS_VERSION Key in compresion dictionary that gives specification version of compression filter. |
static Object | OBJECT_DELETED |
static Object | OBJECT_NULL |
static String | REALIZED Injected key for objects cached within dictionaries, such as fonts, images. |
static String | SIGNATURE String at start of file that identifies as PDF: "%PDF-m.n". |
static String | STREAM_DATA For stream dictionary, offset of data in file if of type Long , or data itself if of type byte[] . |
static byte | XREF_FREE Cross reference type 0. |
static byte | XREF_NORMAL Cross reference type 1. |
static byte | XREF_OBJSTMC Cross reference type 2 (component of /Type /ObjStm ). |
Method Summary | |
---|---|
static Rectangle | array2Rectangle(Object[] oa, AffineTransform at)
Converts PDF rectangle array (llx lly urx ury) to Java Rectangle (ulx,uly, width, height), normalized to have positive width and height.
|
static StringBuffer | createDate(long javatimemillis)
Convert a Java time onto a PDF date. |
static StringBuffer | createID(File file, Dict info)
Computes value for trailer /ID, for initializing both if /ID doesn't exist or for updating the second value.
|
static long | parseDate(StringBuffer sb, boolean local)
Returns Java time of PDF Date.
|
Object[]
) of PDF array data type (e.g., [ 41 63 572 729 ]
).
Arrays can be heterogeneous.
When creating new PDF array objects, always make a Object[]
even though the array may be homogeneous of another type.Boolean
) of PDF boolean data type (true
or false
).char[]
) of PDF comment data type (e.g., % comments run from '%' to end of line
).byte[]
) for raw data, which is not a PDF data type, but which is sometimes mixed with them.
Some applications cache the contents of a stream in the stream dictionary under the key STREAM_DATA,
and if so remove the Length
key in favor of taking this information from byte[].length
.
InputStreamComposite accepts such streams, and internally inline images are processed into such streams to make them identical to image XObjects for subsequent merged transformation.<< /Length 705 /Filter /FlateDecode >>
).
Dictionary keys are of type CLASS_NAME.Integer
) of PDF integer number data type (e.g., 93515
).
Note PDF considers both integer and floating point the same type.
When is possible to represent a number without lose of accuracy as an integer, this is preferred; this is what COS does.15 0 R
).String
) of PDF name data type (e.g., /Title
).java.lang.Long
) .Double
) of PDF real number data type (e.g., 0.9505
).StringBuffer
) of PDF string data type (e.g., (PDF Reference)
and <a47cc386aea60669950095583bec355d>
).
Note that PDF strings are not Java java.lang.Strings./Catalog
.Long
, or data itself if of type byte[]
./Type /ObjStm
).See Also: COS
(D:20010406143021)
.Parameters: local convert time to local time
See Also: COS