01: package com.etymon.pj;
02:
03: import com.etymon.pj.object.*;
04:
05: /**
06: General constants used by the PJ classes.
07: @author Nassib Nassar
08: */
09: public class PjConst {
10:
11: /**
12: The PJ version number.
13: */
14: public static final String VERSION = "1.10";
15:
16: /**
17: The PJ copyright notice, which is inserted into the
18: Producer (and sometimes Creator) field of the Info
19: dictionary in all PDF files output by PJ; you may not
20: remove this copyright notice.
21: */
22: public static final PjString COPYRIGHT_IN_INFO = new PjString(
23: "Etymon PJ "
24: + VERSION
25: + ", Copyright (C) 1998-2000 Etymon Systems, Inc. <http://www.etymon.com/>");
26:
27: /**
28: The PJ version number in PDF format, which is inserted into
29: all PDF files output by PJ.
30: */
31: public static final String VERSION_IN_PDF = "%PJ-" + VERSION;
32:
33: /**
34: The PJ copyright notice, which is inserted into all PDF
35: files output by PJ; you may not remove this copyright
36: notice.
37: */
38: public static final String COPYRIGHT_IN_PDF = "%Generated with Etymon PJ "
39: + VERSION
40: + ", Copyright (C) 1998-2000 Etymon Systems, Inc. <http://www.etymon.com/>";
41:
42: /**
43: The PDF version output by this release of PJ.
44: */
45: public static final String PDF_VERSION = "1.3";
46:
47: /**
48: The number of bytes from the end of a PDF file at which to
49: start scanning for startxref.
50: */
51: public static final int SCAN_STARTXREF = 40;
52:
53: /**
54: The number of times to back up and retry scanning for
55: startxref. Each time, the parser will back up to a point
56: (SCAN_STARTXREF) bytes before the previous time.
57: */
58: public static final int SCAN_STARTXREF_RETRY = 10;
59:
60: /**
61: The size of the byte[] used for flate compression and
62: decompression.
63: */
64: public static final int FLATE_BUFFER_SIZE = 16384;
65:
66: /**
67: The end-of-line sequence to use when writing a PDF file to
68: disk.
69: */
70: public static final String PDF_EOL = "\n";
71:
72: /**
73: The string length of PDF_EOL.
74: */
75: public static final int PDF_EOL_LEN = PDF_EOL.length();
76:
77: }
|