0001: /*
0002: * $Id: PdfName.java 2832 2007-06-05 14:40:21Z psoares33 $
0003: * $Name$
0004: *
0005: * Copyright 1999-2006 Bruno Lowagie
0006: *
0007: * The contents of this file are subject to the Mozilla Public License Version 1.1
0008: * (the "License"); you may not use this file except in compliance with the License.
0009: * You may obtain a copy of the License at http://www.mozilla.org/MPL/
0010: *
0011: * Software distributed under the License is distributed on an "AS IS" basis,
0012: * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
0013: * for the specific language governing rights and limitations under the License.
0014: *
0015: * The Original Code is 'iText, a free JAVA-PDF library'.
0016: *
0017: * The Initial Developer of the Original Code is Bruno Lowagie. Portions created by
0018: * the Initial Developer are Copyright (C) 1999, 2000, 2001, 2002 by Bruno Lowagie.
0019: * All Rights Reserved.
0020: * Co-Developer of the code is Paulo Soares. Portions created by the Co-Developer
0021: * are Copyright (C) 2000, 2001, 2002 by Paulo Soares. All Rights Reserved.
0022: *
0023: * Contributor(s): all the names of the contributors are added in the source code
0024: * where applicable.
0025: *
0026: * Alternatively, the contents of this file may be used under the terms of the
0027: * LGPL license (the "GNU LIBRARY GENERAL PUBLIC LICENSE"), in which case the
0028: * provisions of LGPL are applicable instead of those above. If you wish to
0029: * allow use of your version of this file only under the terms of the LGPL
0030: * License and not to allow others to use your version of this file under
0031: * the MPL, indicate your decision by deleting the provisions above and
0032: * replace them with the notice and other provisions required by the LGPL.
0033: * If you do not delete the provisions above, a recipient may use your version
0034: * of this file under either the MPL or the GNU LIBRARY GENERAL PUBLIC LICENSE.
0035: *
0036: * This library is free software; you can redistribute it and/or modify it
0037: * under the terms of the MPL as stated above or under the terms of the GNU
0038: * Library General Public License as published by the Free Software Foundation;
0039: * either version 2 of the License, or any later version.
0040: *
0041: * This library is distributed in the hope that it will be useful, but WITHOUT
0042: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
0043: * FOR A PARTICULAR PURPOSE. See the GNU Library general Public License for more
0044: * details.
0045: *
0046: * If you didn't download this code from the following link, you should check if
0047: * you aren't using an obsolete version:
0048: * http://www.lowagie.com/iText/
0049: */
0050:
0051: package com.lowagie.text.pdf;
0052:
0053: /**
0054: * <CODE>PdfName</CODE> is an object that can be used as a name in a PDF-file.
0055: * <P>
0056: * A name, like a string, is a sequence of characters. It must begin with a slash
0057: * followed by a sequence of ASCII characters in the range 32 through 136 except
0058: * %, (, ), [, ], <, >, {, }, / and #. Any character except 0x00 may be included
0059: * in a name by writing its twocharacter hex code, preceded by #. The maximum number
0060: * of characters in a name is 127.<BR>
0061: * This object is described in the 'Portable Document Format Reference Manual version 1.7'
0062: * section 3.2.4 (page 56-58).
0063: * <P>
0064: *
0065: * @see PdfObject
0066: * @see PdfDictionary
0067: * @see BadPdfFormatException
0068: */
0069:
0070: public class PdfName extends PdfObject implements Comparable {
0071:
0072: // static membervariables (a variety of standard names used in PDF)
0073:
0074: /** A name */
0075: public static final PdfName A = new PdfName("A");
0076: /** A name */
0077: public static final PdfName AA = new PdfName("AA");
0078: /** A name */
0079: public static final PdfName ABSOLUTECALORIMETRIC = new PdfName(
0080: "AbsoluteColorimetric");
0081: /** A name */
0082: public static final PdfName AC = new PdfName("AC");
0083: /** A name */
0084: public static final PdfName ACROFORM = new PdfName("AcroForm");
0085: /** A name */
0086: public static final PdfName ACTION = new PdfName("Action");
0087: /** A name */
0088: public static final PdfName ADBE_PKCS7_DETACHED = new PdfName(
0089: "adbe.pkcs7.detached");
0090: /** A name */
0091: public static final PdfName ADBE_PKCS7_S4 = new PdfName(
0092: "adbe.pkcs7.s4");
0093: /** A name */
0094: public static final PdfName ADBE_PKCS7_S5 = new PdfName(
0095: "adbe.pkcs7.s5");
0096: /** A name */
0097: public static final PdfName ADBE_PKCS7_SHA1 = new PdfName(
0098: "adbe.pkcs7.sha1");
0099: /** A name */
0100: public static final PdfName ADBE_X509_RSA_SHA1 = new PdfName(
0101: "adbe.x509.rsa_sha1");
0102: /** A name */
0103: public static final PdfName ADOBE_PPKLITE = new PdfName(
0104: "Adobe.PPKLite");
0105: /** A name */
0106: public static final PdfName ADOBE_PPKMS = new PdfName("Adobe.PPKMS");
0107: /** A name */
0108: public static final PdfName AESV2 = new PdfName("AESV2");
0109: /** A name */
0110: public static final PdfName AIS = new PdfName("AIS");
0111: /** A name */
0112: public static final PdfName ALLPAGES = new PdfName("AllPages");
0113: /** A name */
0114: public static final PdfName ALT = new PdfName("Alt");
0115: /** A name */
0116: public static final PdfName ALTERNATE = new PdfName("Alternate");
0117: /** A name */
0118: public static final PdfName ANNOT = new PdfName("Annot");
0119: /** A name */
0120: public static final PdfName ANTIALIAS = new PdfName("AntiAlias");
0121: /** A name */
0122: public static final PdfName ANNOTS = new PdfName("Annots");
0123: /** A name */
0124: public static final PdfName AP = new PdfName("AP");
0125: /** A name */
0126: public static final PdfName APPDEFAULT = new PdfName("AppDefault");
0127: /** A name */
0128: public static final PdfName ARTBOX = new PdfName("ArtBox");
0129: /** A name */
0130: public static final PdfName ASCENT = new PdfName("Ascent");
0131: /** A name */
0132: public static final PdfName AS = new PdfName("AS");
0133: /** A name */
0134: public static final PdfName ASCII85DECODE = new PdfName(
0135: "ASCII85Decode");
0136: /** A name */
0137: public static final PdfName ASCIIHEXDECODE = new PdfName(
0138: "ASCIIHexDecode");
0139: /** A name */
0140: public static final PdfName AUTHEVENT = new PdfName("AuthEvent");
0141: /** A name */
0142: public static final PdfName AUTHOR = new PdfName("Author");
0143: /** A name */
0144: public static final PdfName B = new PdfName("B");
0145: /** A name */
0146: public static final PdfName BASEENCODING = new PdfName(
0147: "BaseEncoding");
0148: /** A name */
0149: public static final PdfName BASEFONT = new PdfName("BaseFont");
0150: /** A name */
0151: public static final PdfName BBOX = new PdfName("BBox");
0152: /** A name */
0153: public static final PdfName BC = new PdfName("BC");
0154: /** A name */
0155: public static final PdfName BG = new PdfName("BG");
0156: /** A name */
0157: public static final PdfName BIGFIVE = new PdfName("BigFive");
0158: /** A name */
0159: public static final PdfName BITSPERCOMPONENT = new PdfName(
0160: "BitsPerComponent");
0161: /** A name */
0162: public static final PdfName BITSPERSAMPLE = new PdfName(
0163: "BitsPerSample");
0164: /** A name */
0165: public static final PdfName BL = new PdfName("Bl");
0166: /** A name */
0167: public static final PdfName BLACKIS1 = new PdfName("BlackIs1");
0168: /** A name */
0169: public static final PdfName BLACKPOINT = new PdfName("BlackPoint");
0170: /** A name */
0171: public static final PdfName BLEEDBOX = new PdfName("BleedBox");
0172: /** A name */
0173: public static final PdfName BLINDS = new PdfName("Blinds");
0174: /** A name */
0175: public static final PdfName BM = new PdfName("BM");
0176: /** A name */
0177: public static final PdfName BORDER = new PdfName("Border");
0178: /** A name */
0179: public static final PdfName BOUNDS = new PdfName("Bounds");
0180: /** A name */
0181: public static final PdfName BOX = new PdfName("Box");
0182: /** A name */
0183: public static final PdfName BS = new PdfName("BS");
0184: /** A name */
0185: public static final PdfName BTN = new PdfName("Btn");
0186: /** A name */
0187: public static final PdfName BYTERANGE = new PdfName("ByteRange");
0188: /** A name */
0189: public static final PdfName C = new PdfName("C");
0190: /** A name */
0191: public static final PdfName C0 = new PdfName("C0");
0192: /** A name */
0193: public static final PdfName C1 = new PdfName("C1");
0194: /** A name */
0195: public static final PdfName CA = new PdfName("CA");
0196: /** A name */
0197: public static final PdfName ca = new PdfName("ca");
0198: /** A name */
0199: public static final PdfName CALGRAY = new PdfName("CalGray");
0200: /** A name */
0201: public static final PdfName CALRGB = new PdfName("CalRGB");
0202: /** A name */
0203: public static final PdfName CAPHEIGHT = new PdfName("CapHeight");
0204: /** A name */
0205: public static final PdfName CATALOG = new PdfName("Catalog");
0206: /** A name */
0207: public static final PdfName CATEGORY = new PdfName("Category");
0208: /** A name */
0209: public static final PdfName CCITTFAXDECODE = new PdfName(
0210: "CCITTFaxDecode");
0211: /** A name */
0212: public static final PdfName CENTERWINDOW = new PdfName(
0213: "CenterWindow");
0214: /** A name */
0215: public static final PdfName CERT = new PdfName("Cert");
0216: /** A name */
0217: public static final PdfName CF = new PdfName("CF");
0218: /** A name */
0219: public static final PdfName CFM = new PdfName("CFM");
0220: /** A name */
0221: public static final PdfName CH = new PdfName("Ch");
0222: /** A name */
0223: public static final PdfName CHARPROCS = new PdfName("CharProcs");
0224: /** A name */
0225: public static final PdfName CI = new PdfName("CI");
0226: /** A name */
0227: public static final PdfName CIDFONTTYPE0 = new PdfName(
0228: "CIDFontType0");
0229: /** A name */
0230: public static final PdfName CIDFONTTYPE2 = new PdfName(
0231: "CIDFontType2");
0232: /** A name */
0233: public static final PdfName CIDSYSTEMINFO = new PdfName(
0234: "CIDSystemInfo");
0235: /** A name */
0236: public static final PdfName CIDTOGIDMAP = new PdfName("CIDToGIDMap");
0237: /** A name */
0238: public static final PdfName CIRCLE = new PdfName("Circle");
0239: /** A name */
0240: public static final PdfName CO = new PdfName("CO");
0241: /** A name */
0242: public static final PdfName COLORS = new PdfName("Colors");
0243: /** A name */
0244: public static final PdfName COLORSPACE = new PdfName("ColorSpace");
0245: /** A name */
0246: public static final PdfName COLLECTION = new PdfName("Collection");
0247: /** A name */
0248: public static final PdfName COLLECTIONFIELD = new PdfName(
0249: "CollectionField");
0250: /** A name */
0251: public static final PdfName COLLECTIONITEM = new PdfName(
0252: "CollectionItem");
0253: /** A name */
0254: public static final PdfName COLLECTIONSCHEMA = new PdfName(
0255: "CollectionSchema");
0256: /** A name */
0257: public static final PdfName COLLECTIONSORT = new PdfName(
0258: "CollectionSort");
0259: /** A name */
0260: public static final PdfName COLLECTIONSUBITEM = new PdfName(
0261: "CollectionSubitem");
0262: /** A name */
0263: public static final PdfName COLUMNS = new PdfName("Columns");
0264: /** A name */
0265: public static final PdfName CONTACTINFO = new PdfName("ContactInfo");
0266: /** A name */
0267: public static final PdfName CONTENT = new PdfName("Content");
0268: /** A name */
0269: public static final PdfName CONTENTS = new PdfName("Contents");
0270: /** A name */
0271: public static final PdfName COORDS = new PdfName("Coords");
0272: /** A name */
0273: public static final PdfName COUNT = new PdfName("Count");
0274: /** A name of a base 14 type 1 font */
0275: public static final PdfName COURIER = new PdfName("Courier");
0276: /** A name of a base 14 type 1 font */
0277: public static final PdfName COURIER_BOLD = new PdfName(
0278: "Courier-Bold");
0279: /** A name of a base 14 type 1 font */
0280: public static final PdfName COURIER_OBLIQUE = new PdfName(
0281: "Courier-Oblique");
0282: /** A name of a base 14 type 1 font */
0283: public static final PdfName COURIER_BOLDOBLIQUE = new PdfName(
0284: "Courier-BoldOblique");
0285: /** A name */
0286: public static final PdfName CREATIONDATE = new PdfName(
0287: "CreationDate");
0288: /** A name */
0289: public static final PdfName CREATOR = new PdfName("Creator");
0290: /** A name */
0291: public static final PdfName CREATORINFO = new PdfName("CreatorInfo");
0292: /** A name */
0293: public static final PdfName CROPBOX = new PdfName("CropBox");
0294: /** A name */
0295: public static final PdfName CRYPT = new PdfName("Crypt");
0296: /** A name */
0297: public static final PdfName CS = new PdfName("CS");
0298: /** A name */
0299: public static final PdfName D = new PdfName("D");
0300: /** A name */
0301: public static final PdfName DA = new PdfName("DA");
0302: /** A name */
0303: public static final PdfName DATA = new PdfName("Data");
0304: /** A name */
0305: public static final PdfName DC = new PdfName("DC");
0306: /** A name */
0307: public static final PdfName DCTDECODE = new PdfName("DCTDecode");
0308: /** A name */
0309: public static final PdfName DECODE = new PdfName("Decode");
0310: /** A name */
0311: public static final PdfName DECODEPARMS = new PdfName("DecodeParms");
0312: /** A name */
0313: public static final PdfName DEFAULTCRYPTFILER = new PdfName(
0314: "DefaultCryptFilter");
0315: /** A name */
0316: public static final PdfName DEFAULTCMYK = new PdfName("DefaultCMYK");
0317: /** A name */
0318: public static final PdfName DEFAULTGRAY = new PdfName("DefaultGray");
0319: /** A name */
0320: public static final PdfName DEFAULTRGB = new PdfName("DefaultRGB");
0321: /** A name */
0322: public static final PdfName DESC = new PdfName("Desc");
0323: /** A name */
0324: public static final PdfName DESCENDANTFONTS = new PdfName(
0325: "DescendantFonts");
0326: /** A name */
0327: public static final PdfName DESCENT = new PdfName("Descent");
0328: /** A name */
0329: public static final PdfName DEST = new PdfName("Dest");
0330: /** A name */
0331: public static final PdfName DESTOUTPUTPROFILE = new PdfName(
0332: "DestOutputProfile");
0333: /** A name */
0334: public static final PdfName DESTS = new PdfName("Dests");
0335: /** A name */
0336: public static final PdfName DEVICEGRAY = new PdfName("DeviceGray");
0337: /** A name */
0338: public static final PdfName DEVICERGB = new PdfName("DeviceRGB");
0339: /** A name */
0340: public static final PdfName DEVICECMYK = new PdfName("DeviceCMYK");
0341: /** A name */
0342: public static final PdfName DI = new PdfName("Di");
0343: /** A name */
0344: public static final PdfName DIFFERENCES = new PdfName("Differences");
0345: /** A name */
0346: public static final PdfName DISSOLVE = new PdfName("Dissolve");
0347: /** A name */
0348: public static final PdfName DIRECTION = new PdfName("Direction");
0349: /** A name */
0350: public static final PdfName DISPLAYDOCTITLE = new PdfName(
0351: "DisplayDocTitle");
0352: /** A name */
0353: public static final PdfName DIV = new PdfName("Div");
0354: /** A name */
0355: public static final PdfName DM = new PdfName("Dm");
0356: /** A name */
0357: public static final PdfName DOCMDP = new PdfName("DocMDP");
0358: /** A name */
0359: public static final PdfName DOCOPEN = new PdfName("DocOpen");
0360: /** A name */
0361: public static final PdfName DOMAIN = new PdfName("Domain");
0362: /** A name */
0363: public static final PdfName DP = new PdfName("DP");
0364: /** A name */
0365: public static final PdfName DR = new PdfName("DR");
0366: /** A name */
0367: public static final PdfName DS = new PdfName("DS");
0368: /** A name */
0369: public static final PdfName DUR = new PdfName("Dur");
0370: /** A name */
0371: public static final PdfName DUPLEX = new PdfName("Duplex");
0372: /** A name */
0373: public static final PdfName DUPLEXFLIPSHORTEDGE = new PdfName(
0374: "DuplexFlipShortEdge");
0375: /** A name */
0376: public static final PdfName DUPLEXFLIPLONGEDGE = new PdfName(
0377: "DuplexFlipLongEdge");
0378: /** A name */
0379: public static final PdfName DV = new PdfName("DV");
0380: /** A name */
0381: public static final PdfName DW = new PdfName("DW");
0382: /** A name */
0383: public static final PdfName E = new PdfName("E");
0384: /** A name */
0385: public static final PdfName EARLYCHANGE = new PdfName("EarlyChange");
0386: /** A name */
0387: public static final PdfName EF = new PdfName("EF");
0388: /** A name */
0389: public static final PdfName EMBEDDEDFILE = new PdfName(
0390: "EmbeddedFile");
0391: /** A name */
0392: public static final PdfName EMBEDDEDFILES = new PdfName(
0393: "EmbeddedFiles");
0394: /** A name */
0395: public static final PdfName ENCODE = new PdfName("Encode");
0396: /** A name */
0397: public static final PdfName ENCODEDBYTEALIGN = new PdfName(
0398: "EncodedByteAlign");
0399: /** A name */
0400: public static final PdfName ENCODING = new PdfName("Encoding");
0401: /** A name */
0402: public static final PdfName ENCRYPT = new PdfName("Encrypt");
0403: /** A name */
0404: public static final PdfName ENCRYPTMETADATA = new PdfName(
0405: "EncryptMetadata");
0406: /** A name */
0407: public static final PdfName ENDOFBLOCK = new PdfName("EndOfBlock");
0408: /** A name */
0409: public static final PdfName ENDOFLINE = new PdfName("EndOfLine");
0410: /** A name */
0411: public static final PdfName EXTEND = new PdfName("Extend");
0412: /** A name */
0413: public static final PdfName EXTGSTATE = new PdfName("ExtGState");
0414: /** A name */
0415: public static final PdfName EXPORT = new PdfName("Export");
0416: /** A name */
0417: public static final PdfName EXPORTSTATE = new PdfName("ExportState");
0418: /** A name */
0419: public static final PdfName EVENT = new PdfName("Event");
0420: /** A name */
0421: public static final PdfName F = new PdfName("F");
0422: /** A name */
0423: public static final PdfName FB = new PdfName("FB");
0424: /** A name */
0425: public static final PdfName FDECODEPARMS = new PdfName(
0426: "FDecodeParms");
0427: /** A name */
0428: public static final PdfName FDF = new PdfName("FDF");
0429: /** A name */
0430: public static final PdfName FF = new PdfName("Ff");
0431: /** A name */
0432: public static final PdfName FFILTER = new PdfName("FFilter");
0433: /** A name */
0434: public static final PdfName FIELDS = new PdfName("Fields");
0435: /** A name */
0436: public static final PdfName FILEATTACHMENT = new PdfName(
0437: "FileAttachment");
0438: /** A name */
0439: public static final PdfName FILESPEC = new PdfName("Filespec");
0440: /** A name */
0441: public static final PdfName FILTER = new PdfName("Filter");
0442: /** A name */
0443: public static final PdfName FIRST = new PdfName("First");
0444: /** A name */
0445: public static final PdfName FIRSTCHAR = new PdfName("FirstChar");
0446: /** A name */
0447: public static final PdfName FIRSTPAGE = new PdfName("FirstPage");
0448: /** A name */
0449: public static final PdfName FIT = new PdfName("Fit");
0450: /** A name */
0451: public static final PdfName FITH = new PdfName("FitH");
0452: /** A name */
0453: public static final PdfName FITV = new PdfName("FitV");
0454: /** A name */
0455: public static final PdfName FITR = new PdfName("FitR");
0456: /** A name */
0457: public static final PdfName FITB = new PdfName("FitB");
0458: /** A name */
0459: public static final PdfName FITBH = new PdfName("FitBH");
0460: /** A name */
0461: public static final PdfName FITBV = new PdfName("FitBV");
0462: /** A name */
0463: public static final PdfName FITWINDOW = new PdfName("FitWindow");
0464: /** A name */
0465: public static final PdfName FLAGS = new PdfName("Flags");
0466: /** A name */
0467: public static final PdfName FLATEDECODE = new PdfName("FlateDecode");
0468: /** A name */
0469: public static final PdfName FO = new PdfName("Fo");
0470: /** A name */
0471: public static final PdfName FONT = new PdfName("Font");
0472: /** A name */
0473: public static final PdfName FONTBBOX = new PdfName("FontBBox");
0474: /** A name */
0475: public static final PdfName FONTDESCRIPTOR = new PdfName(
0476: "FontDescriptor");
0477: /** A name */
0478: public static final PdfName FONTFILE = new PdfName("FontFile");
0479: /** A name */
0480: public static final PdfName FONTFILE2 = new PdfName("FontFile2");
0481: /** A name */
0482: public static final PdfName FONTFILE3 = new PdfName("FontFile3");
0483: /** A name */
0484: public static final PdfName FONTMATRIX = new PdfName("FontMatrix");
0485: /** A name */
0486: public static final PdfName FONTNAME = new PdfName("FontName");
0487: /** A name */
0488: public static final PdfName FORM = new PdfName("Form");
0489: /** A name */
0490: public static final PdfName FORMTYPE = new PdfName("FormType");
0491: /** A name */
0492: public static final PdfName FREETEXT = new PdfName("FreeText");
0493: /** A name */
0494: public static final PdfName FRM = new PdfName("FRM");
0495: /** A name */
0496: public static final PdfName FS = new PdfName("FS");
0497: /** A name */
0498: public static final PdfName FT = new PdfName("FT");
0499: /** A name */
0500: public static final PdfName FULLSCREEN = new PdfName("FullScreen");
0501: /** A name */
0502: public static final PdfName FUNCTION = new PdfName("Function");
0503: /** A name */
0504: public static final PdfName FUNCTIONS = new PdfName("Functions");
0505: /** A name */
0506: public static final PdfName FUNCTIONTYPE = new PdfName(
0507: "FunctionType");
0508: /** A name of an attribute. */
0509: public static final PdfName GAMMA = new PdfName("Gamma");
0510: /** A name of an attribute. */
0511: public static final PdfName GBK = new PdfName("GBK");
0512: /** A name of an attribute. */
0513: public static final PdfName GLITTER = new PdfName("Glitter");
0514: /** A name of an attribute. */
0515: public static final PdfName GOTO = new PdfName("GoTo");
0516: /** A name of an attribute. */
0517: public static final PdfName GOTOE = new PdfName("GoToE");
0518: /** A name of an attribute. */
0519: public static final PdfName GOTOR = new PdfName("GoToR");
0520: /** A name of an attribute. */
0521: public static final PdfName GROUP = new PdfName("Group");
0522: /** A name of an attribute. */
0523: public static final PdfName GTS_PDFA1 = new PdfName("GTS_PDFA1");
0524: /** A name of an attribute. */
0525: public static final PdfName GTS_PDFX = new PdfName("GTS_PDFX");
0526: /** A name of an attribute. */
0527: public static final PdfName GTS_PDFXVERSION = new PdfName(
0528: "GTS_PDFXVersion");
0529: /** A name of an attribute. */
0530: public static final PdfName H = new PdfName("H");
0531: /** A name of an attribute. */
0532: public static final PdfName HEIGHT = new PdfName("Height");
0533: /** A name */
0534: public static final PdfName HELV = new PdfName("Helv");
0535: /** A name of a base 14 type 1 font */
0536: public static final PdfName HELVETICA = new PdfName("Helvetica");
0537: /** A name of a base 14 type 1 font */
0538: public static final PdfName HELVETICA_BOLD = new PdfName(
0539: "Helvetica-Bold");
0540: /** This is a static PdfName PdfName of a base 14 type 1 font */
0541: public static final PdfName HELVETICA_OBLIQUE = new PdfName(
0542: "Helvetica-Oblique");
0543: /** This is a static PdfName PdfName of a base 14 type 1 font */
0544: public static final PdfName HELVETICA_BOLDOBLIQUE = new PdfName(
0545: "Helvetica-BoldOblique");
0546: /** A name */
0547: public static final PdfName HID = new PdfName("Hid");
0548: /** A name */
0549: public static final PdfName HIDE = new PdfName("Hide");
0550: /** A name */
0551: public static final PdfName HIDEMENUBAR = new PdfName("HideMenubar");
0552: /** A name */
0553: public static final PdfName HIDETOOLBAR = new PdfName("HideToolbar");
0554: /** A name */
0555: public static final PdfName HIDEWINDOWUI = new PdfName(
0556: "HideWindowUI");
0557: /** A name */
0558: public static final PdfName HIGHLIGHT = new PdfName("Highlight");
0559: /** A name */
0560: public static final PdfName I = new PdfName("I");
0561: /** A name */
0562: public static final PdfName ICCBASED = new PdfName("ICCBased");
0563: /** A name */
0564: public static final PdfName ID = new PdfName("ID");
0565: /** A name */
0566: public static final PdfName IDENTITY = new PdfName("Identity");
0567: /** A name */
0568: public static final PdfName IF = new PdfName("IF");
0569: /** A name */
0570: public static final PdfName IMAGE = new PdfName("Image");
0571: /** A name */
0572: public static final PdfName IMAGEB = new PdfName("ImageB");
0573: /** A name */
0574: public static final PdfName IMAGEC = new PdfName("ImageC");
0575: /** A name */
0576: public static final PdfName IMAGEI = new PdfName("ImageI");
0577: /** A name */
0578: public static final PdfName IMAGEMASK = new PdfName("ImageMask");
0579: /** A name */
0580: public static final PdfName INDEX = new PdfName("Index");
0581: /** A name */
0582: public static final PdfName INDEXED = new PdfName("Indexed");
0583: /** A name */
0584: public static final PdfName INFO = new PdfName("Info");
0585: /** A name */
0586: public static final PdfName INK = new PdfName("Ink");
0587: /** A name */
0588: public static final PdfName INKLIST = new PdfName("InkList");
0589: /** A name */
0590: public static final PdfName IMPORTDATA = new PdfName("ImportData");
0591: /** A name */
0592: public static final PdfName INTENT = new PdfName("Intent");
0593: /** A name */
0594: public static final PdfName INTERPOLATE = new PdfName("Interpolate");
0595: /** A name */
0596: public static final PdfName ISMAP = new PdfName("IsMap");
0597: /** A name */
0598: public static final PdfName IRT = new PdfName("IRT");
0599: /** A name */
0600: public static final PdfName ITALICANGLE = new PdfName("ItalicAngle");
0601: /** A name */
0602: public static final PdfName IX = new PdfName("IX");
0603: /** A name */
0604: public static final PdfName JAVASCRIPT = new PdfName("JavaScript");
0605: /** A name */
0606: public static final PdfName JS = new PdfName("JS");
0607: /** A name */
0608: public static final PdfName K = new PdfName("K");
0609: /** A name */
0610: public static final PdfName KEYWORDS = new PdfName("Keywords");
0611: /** A name */
0612: public static final PdfName KIDS = new PdfName("Kids");
0613: /** A name */
0614: public static final PdfName L = new PdfName("L");
0615: /** A name */
0616: public static final PdfName L2R = new PdfName("L2R");
0617: /** A name */
0618: public static final PdfName LANG = new PdfName("Lang");
0619: /** A name */
0620: public static final PdfName LANGUAGE = new PdfName("Language");
0621: /** A name */
0622: public static final PdfName LAST = new PdfName("Last");
0623: /** A name */
0624: public static final PdfName LASTCHAR = new PdfName("LastChar");
0625: /** A name */
0626: public static final PdfName LASTPAGE = new PdfName("LastPage");
0627: /** A name */
0628: public static final PdfName LAUNCH = new PdfName("Launch");
0629: /** A name */
0630: public static final PdfName LENGTH = new PdfName("Length");
0631: /** A name */
0632: public static final PdfName LENGTH1 = new PdfName("Length1");
0633: /** A name */
0634: public static final PdfName LIMITS = new PdfName("Limits");
0635: /** A name */
0636: public static final PdfName LINE = new PdfName("Line");
0637: /** A name */
0638: public static final PdfName LINK = new PdfName("Link");
0639: /** A name */
0640: public static final PdfName LISTMODE = new PdfName("ListMode");
0641: /** A name */
0642: public static final PdfName LOCATION = new PdfName("Location");
0643: /** A name */
0644: public static final PdfName LOCK = new PdfName("Lock");
0645: /** A name */
0646: public static final PdfName LZWDECODE = new PdfName("LZWDecode");
0647: /** A name */
0648: public static final PdfName M = new PdfName("M");
0649: /** A name */
0650: public static final PdfName MATRIX = new PdfName("Matrix");
0651: /** A name of an encoding */
0652: public static final PdfName MAC_EXPERT_ENCODING = new PdfName(
0653: "MacExpertEncoding");
0654: /** A name of an encoding */
0655: public static final PdfName MAC_ROMAN_ENCODING = new PdfName(
0656: "MacRomanEncoding");
0657: /** A name */
0658: public static final PdfName MARKED = new PdfName("Marked");
0659: /** A name */
0660: public static final PdfName MARKINFO = new PdfName("MarkInfo");
0661: /** A name */
0662: public static final PdfName MASK = new PdfName("Mask");
0663: /** A name */
0664: public static final PdfName MAX = new PdfName("max");
0665: /** A name */
0666: public static final PdfName MAXLEN = new PdfName("MaxLen");
0667: /** A name */
0668: public static final PdfName MEDIABOX = new PdfName("MediaBox");
0669: /** A name */
0670: public static final PdfName MCID = new PdfName("MCID");
0671: /** A name */
0672: public static final PdfName MCR = new PdfName("MCR");
0673: /** A name */
0674: public static final PdfName METADATA = new PdfName("Metadata");
0675: /** A name */
0676: public static final PdfName MIN = new PdfName("min");
0677: /** A name */
0678: public static final PdfName MK = new PdfName("MK");
0679: /** A name */
0680: public static final PdfName MMTYPE1 = new PdfName("MMType1");
0681: /** A name */
0682: public static final PdfName MODDATE = new PdfName("ModDate");
0683: /** A name */
0684: public static final PdfName N = new PdfName("N");
0685: /** A name */
0686: public static final PdfName N0 = new PdfName("n0");
0687: /** A name */
0688: public static final PdfName N1 = new PdfName("n1");
0689: /** A name */
0690: public static final PdfName N2 = new PdfName("n2");
0691: /** A name */
0692: public static final PdfName N3 = new PdfName("n3");
0693: /** A name */
0694: public static final PdfName N4 = new PdfName("n4");
0695: /** A name */
0696: public static final PdfName NAME = new PdfName("Name");
0697: /** A name */
0698: public static final PdfName NAMED = new PdfName("Named");
0699: /** A name */
0700: public static final PdfName NAMES = new PdfName("Names");
0701: /** A name */
0702: public static final PdfName NEEDAPPEARANCES = new PdfName(
0703: "NeedAppearances");
0704: /** A name */
0705: public static final PdfName NEWWINDOW = new PdfName("NewWindow");
0706: /** A name */
0707: public static final PdfName NEXT = new PdfName("Next");
0708: /** A name */
0709: public static final PdfName NEXTPAGE = new PdfName("NextPage");
0710: /** A name */
0711: public static final PdfName NM = new PdfName("NM");
0712: /** A name */
0713: public static final PdfName NONE = new PdfName("None");
0714: /** A name */
0715: public static final PdfName NONFULLSCREENPAGEMODE = new PdfName(
0716: "NonFullScreenPageMode");
0717: /** A name */
0718: public static final PdfName NUMCOPIES = new PdfName("NumCopies");
0719: /** A name */
0720: public static final PdfName NUMS = new PdfName("Nums");
0721: /** A name */
0722: public static final PdfName O = new PdfName("O");
0723: /** A name */
0724: public static final PdfName OBJSTM = new PdfName("ObjStm");
0725: /** A name */
0726: public static final PdfName OC = new PdfName("OC");
0727: /** A name */
0728: public static final PdfName OCG = new PdfName("OCG");
0729: /** A name */
0730: public static final PdfName OCGS = new PdfName("OCGs");
0731: /** A name */
0732: public static final PdfName OCMD = new PdfName("OCMD");
0733: /** A name */
0734: public static final PdfName OCPROPERTIES = new PdfName(
0735: "OCProperties");
0736: /** A name */
0737: public static final PdfName Off = new PdfName("Off");
0738: /** A name */
0739: public static final PdfName OFF = new PdfName("OFF");
0740: /** A name */
0741: public static final PdfName ON = new PdfName("ON");
0742: /** A name */
0743: public static final PdfName ONECOLUMN = new PdfName("OneColumn");
0744: /** A name */
0745: public static final PdfName OPEN = new PdfName("Open");
0746: /** A name */
0747: public static final PdfName OPENACTION = new PdfName("OpenAction");
0748: /** A name */
0749: public static final PdfName OP = new PdfName("OP");
0750: /** A name */
0751: public static final PdfName op = new PdfName("op");
0752: /** A name */
0753: public static final PdfName OPM = new PdfName("OPM");
0754: /** A name */
0755: public static final PdfName OPT = new PdfName("Opt");
0756: /** A name */
0757: public static final PdfName ORDER = new PdfName("Order");
0758: /** A name */
0759: public static final PdfName ORDERING = new PdfName("Ordering");
0760: /** A name */
0761: public static final PdfName OUTLINES = new PdfName("Outlines");
0762: /** A name */
0763: public static final PdfName OUTPUTCONDITION = new PdfName(
0764: "OutputCondition");
0765: /** A name */
0766: public static final PdfName OUTPUTCONDITIONIDENTIFIER = new PdfName(
0767: "OutputConditionIdentifier");
0768: /** A name */
0769: public static final PdfName OUTPUTINTENT = new PdfName(
0770: "OutputIntent");
0771: /** A name */
0772: public static final PdfName OUTPUTINTENTS = new PdfName(
0773: "OutputIntents");
0774: /** A name */
0775: public static final PdfName P = new PdfName("P");
0776: /** A name */
0777: public static final PdfName PAGE = new PdfName("Page");
0778: /** A name */
0779: public static final PdfName PAGELABELS = new PdfName("PageLabels");
0780: /** A name */
0781: public static final PdfName PAGELAYOUT = new PdfName("PageLayout");
0782: /** A name */
0783: public static final PdfName PAGEMODE = new PdfName("PageMode");
0784: /** A name */
0785: public static final PdfName PAGES = new PdfName("Pages");
0786: /** A name */
0787: public static final PdfName PAINTTYPE = new PdfName("PaintType");
0788: /** A name */
0789: public static final PdfName PANOSE = new PdfName("Panose");
0790: /** A name */
0791: public static final PdfName PARAMS = new PdfName("Params");
0792: /** A name */
0793: public static final PdfName PARENT = new PdfName("Parent");
0794: /** A name */
0795: public static final PdfName PARENTTREE = new PdfName("ParentTree");
0796: /** A name */
0797: public static final PdfName PATTERN = new PdfName("Pattern");
0798: /** A name */
0799: public static final PdfName PATTERNTYPE = new PdfName("PatternType");
0800: /** A name */
0801: public static final PdfName PDF = new PdfName("PDF");
0802: /** A name */
0803: public static final PdfName PDFDOCENCODING = new PdfName(
0804: "PDFDocEncoding");
0805: /** A name */
0806: public static final PdfName PERCEPTUAL = new PdfName("Perceptual");
0807: /** A name */
0808: public static final PdfName PERMS = new PdfName("Perms");
0809: /** A name */
0810: public static final PdfName PG = new PdfName("Pg");
0811: /** A name */
0812: public static final PdfName PICKTRAYBYPDFSIZE = new PdfName(
0813: "PickTrayByPDFSize");
0814: /** A name */
0815: public static final PdfName POPUP = new PdfName("Popup");
0816: /** A name */
0817: public static final PdfName PREDICTOR = new PdfName("Predictor");
0818: /** A name */
0819: public static final PdfName PREFERRED = new PdfName("Preferred");
0820: /** A name */
0821: public static final PdfName PRESERVERB = new PdfName("PreserveRB");
0822: /** A name */
0823: public static final PdfName PREV = new PdfName("Prev");
0824: /** A name */
0825: public static final PdfName PREVPAGE = new PdfName("PrevPage");
0826: /** A name */
0827: public static final PdfName PRINT = new PdfName("Print");
0828: /** A name */
0829: public static final PdfName PRINTAREA = new PdfName("PrintArea");
0830: /** A name */
0831: public static final PdfName PRINTCLIP = new PdfName("PrintClip");
0832: /** A name */
0833: public static final PdfName PRINTPAGERANGE = new PdfName(
0834: "PrintPageRange");
0835: /** A name */
0836: public static final PdfName PRINTSCALING = new PdfName(
0837: "PrintScaling");
0838: /** A name */
0839: public static final PdfName PRINTSTATE = new PdfName("PrintState");
0840: /** A name */
0841: public static final PdfName PROCSET = new PdfName("ProcSet");
0842: /** A name */
0843: public static final PdfName PRODUCER = new PdfName("Producer");
0844: /** A name */
0845: public static final PdfName PROPERTIES = new PdfName("Properties");
0846: /** A name */
0847: public static final PdfName PS = new PdfName("PS");
0848: /** A name */
0849: public static final PdfName PUBSEC = new PdfName("Adobe.PubSec");
0850: /** A name */
0851: public static final PdfName Q = new PdfName("Q");
0852: /** A name */
0853: public static final PdfName QUADPOINTS = new PdfName("QuadPoints");
0854: /** A name */
0855: public static final PdfName R = new PdfName("R");
0856: /** A name */
0857: public static final PdfName R2L = new PdfName("R2L");
0858: /** A name */
0859: public static final PdfName RANGE = new PdfName("Range");
0860: /** A name */
0861: public static final PdfName RC = new PdfName("RC");
0862: /** A name */
0863: public static final PdfName RBGROUPS = new PdfName("RBGroups");
0864: /** A name */
0865: public static final PdfName REASON = new PdfName("Reason");
0866: /** A name */
0867: public static final PdfName RECIPIENTS = new PdfName("Recipients");
0868: /** A name */
0869: public static final PdfName RECT = new PdfName("Rect");
0870: /** A name */
0871: public static final PdfName REFERENCE = new PdfName("Reference");
0872: /** A name */
0873: public static final PdfName REGISTRY = new PdfName("Registry");
0874: /** A name */
0875: public static final PdfName REGISTRYNAME = new PdfName(
0876: "RegistryName");
0877: /** A name */
0878: public static final PdfName RELATIVECALORIMETRIC = new PdfName(
0879: "RelativeColorimetric");
0880: /** A name */
0881: public static final PdfName RENDITION = new PdfName("Rendition");
0882: /** A name */
0883: public static final PdfName RESETFORM = new PdfName("ResetForm");
0884: /** A name */
0885: public static final PdfName RESOURCES = new PdfName("Resources");
0886: /** A name */
0887: public static final PdfName RI = new PdfName("RI");
0888: /** A name */
0889: public static final PdfName ROLEMAP = new PdfName("RoleMap");
0890: /** A name */
0891: public static final PdfName ROOT = new PdfName("Root");
0892: /** A name */
0893: public static final PdfName ROTATE = new PdfName("Rotate");
0894: /** A name */
0895: public static final PdfName ROWS = new PdfName("Rows");
0896: /** A name */
0897: public static final PdfName RUNLENGTHDECODE = new PdfName(
0898: "RunLengthDecode");
0899: /** A name */
0900: public static final PdfName RV = new PdfName("RV");
0901: /** A name */
0902: public static final PdfName S = new PdfName("S");
0903: /** A name */
0904: public static final PdfName SATURATION = new PdfName("Saturation");
0905: /** A name */
0906: public static final PdfName SCHEMA = new PdfName("Schema");
0907: /** A name */
0908: public static final PdfName SCREEN = new PdfName("Screen");
0909: /** A name */
0910: public static final PdfName SECT = new PdfName("Sect");
0911: /** A name */
0912: public static final PdfName SEPARATION = new PdfName("Separation");
0913: /** A name */
0914: public static final PdfName SETOCGSTATE = new PdfName("SetOCGState");
0915: /** A name */
0916: public static final PdfName SHADING = new PdfName("Shading");
0917: /** A name */
0918: public static final PdfName SHADINGTYPE = new PdfName("ShadingType");
0919: /** A name */
0920: public static final PdfName SHIFT_JIS = new PdfName("Shift-JIS");
0921: /** A name */
0922: public static final PdfName SIG = new PdfName("Sig");
0923: /** A name */
0924: public static final PdfName SIGFLAGS = new PdfName("SigFlags");
0925: /** A name */
0926: public static final PdfName SIGREF = new PdfName("SigRef");
0927: /** A name */
0928: public static final PdfName SIMPLEX = new PdfName("Simplex");
0929: /** A name */
0930: public static final PdfName SINGLEPAGE = new PdfName("SinglePage");
0931: /** A name */
0932: public static final PdfName SIZE = new PdfName("Size");
0933: /** A name */
0934: public static final PdfName SMASK = new PdfName("SMask");
0935: /** A name */
0936: public static final PdfName SORT = new PdfName("Sort");
0937: /** A name */
0938: public static final PdfName SPAN = new PdfName("Span");
0939: /** A name */
0940: public static final PdfName SPLIT = new PdfName("Split");
0941: /** A name */
0942: public static final PdfName SQUARE = new PdfName("Square");
0943: /** A name */
0944: public static final PdfName ST = new PdfName("St");
0945: /** A name */
0946: public static final PdfName STAMP = new PdfName("Stamp");
0947: /** A name */
0948: public static final PdfName STANDARD = new PdfName("Standard");
0949: /** A name */
0950: public static final PdfName STATE = new PdfName("State");
0951: /** A name */
0952: public static final PdfName STDCF = new PdfName("StdCF");
0953: /** A name */
0954: public static final PdfName STEMV = new PdfName("StemV");
0955: /** A name */
0956: public static final PdfName STMF = new PdfName("StmF");
0957: /** A name */
0958: public static final PdfName STRF = new PdfName("StrF");
0959: /** A name */
0960: public static final PdfName STRIKEOUT = new PdfName("StrikeOut");
0961: /** A name */
0962: public static final PdfName STRUCTPARENT = new PdfName(
0963: "StructParent");
0964: /** A name */
0965: public static final PdfName STRUCTPARENTS = new PdfName(
0966: "StructParents");
0967: /** A name */
0968: public static final PdfName STRUCTTREEROOT = new PdfName(
0969: "StructTreeRoot");
0970: /** A name */
0971: public static final PdfName STYLE = new PdfName("Style");
0972: /** A name */
0973: public static final PdfName SUBFILTER = new PdfName("SubFilter");
0974: /** A name */
0975: public static final PdfName SUBJECT = new PdfName("Subject");
0976: /** A name */
0977: public static final PdfName SUBMITFORM = new PdfName("SubmitForm");
0978: /** A name */
0979: public static final PdfName SUBTYPE = new PdfName("Subtype");
0980: /** A name */
0981: public static final PdfName SUPPLEMENT = new PdfName("Supplement");
0982: /** A name */
0983: public static final PdfName SV = new PdfName("SV");
0984: /** A name */
0985: public static final PdfName SW = new PdfName("SW");
0986: /** A name of a base 14 type 1 font */
0987: public static final PdfName SYMBOL = new PdfName("Symbol");
0988: /** A name */
0989: public static final PdfName T = new PdfName("T");
0990: /** A name */
0991: public static final PdfName TEXT = new PdfName("Text");
0992: /** A name */
0993: public static final PdfName THUMB = new PdfName("Thumb");
0994: /** A name */
0995: public static final PdfName THREADS = new PdfName("Threads");
0996: /** A name */
0997: public static final PdfName TI = new PdfName("TI");
0998: /** A name */
0999: public static final PdfName TILINGTYPE = new PdfName("TilingType");
1000: /** A name of a base 14 type 1 font */
1001: public static final PdfName TIMES_ROMAN = new PdfName("Times-Roman");
1002: /** A name of a base 14 type 1 font */
1003: public static final PdfName TIMES_BOLD = new PdfName("Times-Bold");
1004: /** A name of a base 14 type 1 font */
1005: public static final PdfName TIMES_ITALIC = new PdfName(
1006: "Times-Italic");
1007: /** A name of a base 14 type 1 font */
1008: public static final PdfName TIMES_BOLDITALIC = new PdfName(
1009: "Times-BoldItalic");
1010: /** A name */
1011: public static final PdfName TITLE = new PdfName("Title");
1012: /** A name */
1013: public static final PdfName TK = new PdfName("TK");
1014: /** A name */
1015: public static final PdfName TM = new PdfName("TM");
1016: /** A name */
1017: public static final PdfName TOGGLE = new PdfName("Toggle");
1018: /** A name */
1019: public static final PdfName TOUNICODE = new PdfName("ToUnicode");
1020: /** A name */
1021: public static final PdfName TP = new PdfName("TP");
1022: /** A name */
1023: public static final PdfName TRANS = new PdfName("Trans");
1024: /** A name */
1025: public static final PdfName TRANSFORMPARAMS = new PdfName(
1026: "TransformParams");
1027: /** A name */
1028: public static final PdfName TRANSFORMMETHOD = new PdfName(
1029: "TransformMethod");
1030: /** A name */
1031: public static final PdfName TRANSPARENCY = new PdfName(
1032: "Transparency");
1033: /** A name */
1034: public static final PdfName TRAPPED = new PdfName("Trapped");
1035: /** A name */
1036: public static final PdfName TRIMBOX = new PdfName("TrimBox");
1037: /** A name */
1038: public static final PdfName TRUETYPE = new PdfName("TrueType");
1039: /** A name */
1040: public static final PdfName TU = new PdfName("TU");
1041: /** A name */
1042: public static final PdfName TWOCOLUMNLEFT = new PdfName(
1043: "TwoColumnLeft");
1044: /** A name */
1045: public static final PdfName TWOCOLUMNRIGHT = new PdfName(
1046: "TwoColumnRight");
1047: /** A name */
1048: public static final PdfName TWOPAGELEFT = new PdfName("TwoPageLeft");
1049: /** A name */
1050: public static final PdfName TWOPAGERIGHT = new PdfName(
1051: "TwoPageRight");
1052: /** A name */
1053: public static final PdfName TX = new PdfName("Tx");
1054: /** A name */
1055: public static final PdfName TYPE = new PdfName("Type");
1056: /** A name */
1057: public static final PdfName TYPE0 = new PdfName("Type0");
1058: /** A name */
1059: public static final PdfName TYPE1 = new PdfName("Type1");
1060: /** A name of an attribute. */
1061: public static final PdfName TYPE3 = new PdfName("Type3");
1062: /** A name of an attribute. */
1063: public static final PdfName U = new PdfName("U");
1064: /** A name of an attribute. */
1065: public static final PdfName UF = new PdfName("UF");
1066: /** A name of an attribute. */
1067: public static final PdfName UHC = new PdfName("UHC");
1068: /** A name of an attribute. */
1069: public static final PdfName UNDERLINE = new PdfName("Underline");
1070: /** A name */
1071: public static final PdfName UR = new PdfName("UR");
1072: /** A name */
1073: public static final PdfName UR3 = new PdfName("UR3");
1074: /** A name */
1075: public static final PdfName URI = new PdfName("URI");
1076: /** A name */
1077: public static final PdfName URL = new PdfName("URL");
1078: /** A name */
1079: public static final PdfName USAGE = new PdfName("Usage");
1080: /** A name */
1081: public static final PdfName USEATTACHMENTS = new PdfName(
1082: "UseAttachments");
1083: /** A name */
1084: public static final PdfName USENONE = new PdfName("UseNone");
1085: /** A name */
1086: public static final PdfName USEOC = new PdfName("UseOC");
1087: /** A name */
1088: public static final PdfName USEOUTLINES = new PdfName("UseOutlines");
1089: /** A name */
1090: public static final PdfName USER = new PdfName("User");
1091: /** A name */
1092: public static final PdfName USERPROPERTIES = new PdfName(
1093: "UserProperties");
1094: /** A name */
1095: public static final PdfName USERUNIT = new PdfName("UserUnit");
1096: /** A name */
1097: public static final PdfName USETHUMBS = new PdfName("UseThumbs");
1098: /** A name */
1099: public static final PdfName V = new PdfName("V");
1100: /** A name */
1101: public static final PdfName V2 = new PdfName("V2");
1102: /** A name */
1103: public static final PdfName VERISIGN_PPKVS = new PdfName(
1104: "VeriSign.PPKVS");
1105: /** A name */
1106: public static final PdfName VERSION = new PdfName("Version");
1107: /** A name */
1108: public static final PdfName VIEW = new PdfName("View");
1109: /** A name */
1110: public static final PdfName VIEWAREA = new PdfName("ViewArea");
1111: /** A name */
1112: public static final PdfName VIEWCLIP = new PdfName("ViewClip");
1113: /** A name */
1114: public static final PdfName VIEWERPREFERENCES = new PdfName(
1115: "ViewerPreferences");
1116: /** A name */
1117: public static final PdfName VIEWSTATE = new PdfName("ViewState");
1118: /** A name */
1119: public static final PdfName VISIBLEPAGES = new PdfName(
1120: "VisiblePages");
1121: /** A name of an attribute. */
1122: public static final PdfName W = new PdfName("W");
1123: /** A name of an attribute. */
1124: public static final PdfName W2 = new PdfName("W2");
1125: /** A name of an attribute. */
1126: public static final PdfName WC = new PdfName("WC");
1127: /** A name of an attribute. */
1128: public static final PdfName WIDGET = new PdfName("Widget");
1129: /** A name of an attribute. */
1130: public static final PdfName WIDTH = new PdfName("Width");
1131: /** A name */
1132: public static final PdfName WIDTHS = new PdfName("Widths");
1133: /** A name of an encoding */
1134: public static final PdfName WIN = new PdfName("Win");
1135: /** A name of an encoding */
1136: public static final PdfName WIN_ANSI_ENCODING = new PdfName(
1137: "WinAnsiEncoding");
1138: /** A name of an encoding */
1139: public static final PdfName WIPE = new PdfName("Wipe");
1140: /** A name */
1141: public static final PdfName WHITEPOINT = new PdfName("WhitePoint");
1142: /** A name */
1143: public static final PdfName WP = new PdfName("WP");
1144: /** A name of an encoding */
1145: public static final PdfName WS = new PdfName("WS");
1146: /** A name */
1147: public static final PdfName X = new PdfName("X");
1148: /** A name */
1149: public static final PdfName XFA = new PdfName("XFA");
1150: /** A name */
1151: public static final PdfName XML = new PdfName("XML");
1152: /** A name */
1153: public static final PdfName XOBJECT = new PdfName("XObject");
1154: /** A name */
1155: public static final PdfName XSTEP = new PdfName("XStep");
1156: /** A name */
1157: public static final PdfName XREF = new PdfName("XRef");
1158: /** A name */
1159: public static final PdfName XREFSTM = new PdfName("XRefStm");
1160: /** A name */
1161: public static final PdfName XYZ = new PdfName("XYZ");
1162: /** A name */
1163: public static final PdfName YSTEP = new PdfName("YStep");
1164: /** A name */
1165: public static final PdfName ZADB = new PdfName("ZaDb");
1166: /** A name of a base 14 type 1 font */
1167: public static final PdfName ZAPFDINGBATS = new PdfName(
1168: "ZapfDingbats");
1169: /** A name */
1170: public static final PdfName ZOOM = new PdfName("Zoom");
1171:
1172: private int hash = 0;
1173:
1174: // constructors
1175:
1176: /**
1177: * Constructs a new <CODE>PdfName</CODE>. The name length will be checked.
1178: * @param name the new name
1179: */
1180: public PdfName(String name) {
1181: this (name, true);
1182: }
1183:
1184: /**
1185: * Constructs a new <CODE>PdfName</CODE>.
1186: * @param name the new name
1187: * @param lengthCheck if <CODE>true</CODE> check the lenght validity, if <CODE>false</CODE> the name can
1188: * have any length
1189: */
1190:
1191: public PdfName(String name, boolean lengthCheck) {
1192: super (PdfObject.NAME);
1193: // The minimum number of characters in a name is 0, the maximum is 127 (the '/' not included)
1194: int length = name.length();
1195: if (lengthCheck && length > 127) {
1196: throw new IllegalArgumentException("The name '" + name
1197: + "' is too long (" + length + " characters).");
1198: }
1199: // The name has to be checked for illegal characters
1200: // every special character has to be substituted
1201: ByteBuffer pdfName = new ByteBuffer(length + 20);
1202: pdfName.append('/');
1203: char character;
1204: char chars[] = name.toCharArray();
1205: // loop over all the characters
1206: for (int index = 0; index < length; index++) {
1207: character = (char) (chars[index] & 0xff);
1208: // special characters are escaped (reference manual p.39)
1209: switch (character) {
1210: case ' ':
1211: case '%':
1212: case '(':
1213: case ')':
1214: case '<':
1215: case '>':
1216: case '[':
1217: case ']':
1218: case '{':
1219: case '}':
1220: case '/':
1221: case '#':
1222: pdfName.append('#');
1223: pdfName.append(Integer.toString((int) character, 16));
1224: break;
1225: default:
1226: if (character > 126 || character < 32) {
1227: pdfName.append('#');
1228: if (character < 16)
1229: pdfName.append('0');
1230: pdfName.append(Integer
1231: .toString((int) character, 16));
1232: } else
1233: pdfName.append(character);
1234: break;
1235: }
1236: }
1237: bytes = pdfName.toByteArray();
1238: }
1239:
1240: /**
1241: * Constructs a PdfName.
1242: * @param bytes the byte representation of the name
1243: */
1244: public PdfName(byte bytes[]) {
1245: super (PdfObject.NAME, bytes);
1246: }
1247:
1248: // methods
1249:
1250: /**
1251: * Compares this object with the specified object for order. Returns a
1252: * negative integer, zero, or a positive integer as this object is less
1253: * than, equal to, or greater than the specified object.<p>
1254: * @param object the Object to be compared.
1255: * @return a negative integer, zero, or a positive integer as this object
1256: * is less than, equal to, or greater than the specified object.
1257: * @throws ClassCastException if the specified object's type prevents it
1258: * from being compared to this Object.
1259: */
1260: public int compareTo(Object object) {
1261: PdfName name = (PdfName) object;
1262:
1263: byte myBytes[] = bytes;
1264: byte objBytes[] = name.bytes;
1265: int len = Math.min(myBytes.length, objBytes.length);
1266: for (int i = 0; i < len; i++) {
1267: if (myBytes[i] > objBytes[i])
1268: return 1;
1269:
1270: if (myBytes[i] < objBytes[i])
1271: return -1;
1272: }
1273: if (myBytes.length < objBytes.length)
1274: return -1;
1275: if (myBytes.length > objBytes.length)
1276: return 1;
1277: return 0;
1278: }
1279:
1280: /**
1281: * Indicates whether some other object is "equal to" this one.
1282: *
1283: * @param obj the reference object with which to compare.
1284: * @return <code>true</code> if this object is the same as the obj
1285: * argument; <code>false</code> otherwise.
1286: */
1287: public boolean equals(Object obj) {
1288: if (this == obj)
1289: return true;
1290: if (obj instanceof PdfName)
1291: return compareTo(obj) == 0;
1292: return false;
1293: }
1294:
1295: /**
1296: * Returns a hash code value for the object. This method is
1297: * supported for the benefit of hashtables such as those provided by
1298: * <code>java.util.Hashtable</code>.
1299: *
1300: * @return a hash code value for this object.
1301: */
1302: public int hashCode() {
1303: int h = hash;
1304: if (h == 0) {
1305: int ptr = 0;
1306: int len = bytes.length;
1307:
1308: for (int i = 0; i < len; i++)
1309: h = 31 * h + (bytes[ptr++] & 0xff);
1310: hash = h;
1311: }
1312: return h;
1313: }
1314:
1315: /** Decodes an escaped name in the form "/AB#20CD" into "AB CD".
1316: * @param name the name to decode
1317: * @return the decoded name
1318: */
1319: public static String decodeName(String name) {
1320: StringBuffer buf = new StringBuffer();
1321: try {
1322: int len = name.length();
1323: for (int k = 1; k < len; ++k) {
1324: char c = name.charAt(k);
1325: if (c == '#') {
1326: c = (char) ((PRTokeniser.getHex(name.charAt(k + 1)) << 4) + PRTokeniser
1327: .getHex(name.charAt(k + 2)));
1328: k += 2;
1329: }
1330: buf.append(c);
1331: }
1332: } catch (IndexOutOfBoundsException e) {
1333: // empty on purpose
1334: }
1335: return buf.toString();
1336: }
1337: }
|