1 50 51 package com.lowagie.text.pdf; 52 53 69 70 public class PdfName extends PdfObject implements Comparable { 71 72 74 75 public static final PdfName A = new PdfName("A"); 76 77 public static final PdfName AA = new PdfName("AA"); 78 79 public static final PdfName ABSOLUTECALORIMETRIC = new PdfName("AbsoluteColorimetric"); 80 81 public static final PdfName AC = new PdfName("AC"); 82 83 public static final PdfName ACROFORM = new PdfName("AcroForm"); 84 85 public static final PdfName ACTION = new PdfName("Action"); 86 87 public static final PdfName ADBE_PKCS7_DETACHED = new PdfName("adbe.pkcs7.detached"); 88 89 public static final PdfName ADBE_PKCS7_S4 =new PdfName("adbe.pkcs7.s4"); 90 91 public static final PdfName ADBE_PKCS7_S5 =new PdfName("adbe.pkcs7.s5"); 92 93 public static final PdfName ADBE_PKCS7_SHA1 = new PdfName("adbe.pkcs7.sha1"); 94 95 public static final PdfName ADBE_X509_RSA_SHA1 = new PdfName("adbe.x509.rsa_sha1"); 96 97 public static final PdfName ADOBE_PPKLITE = new PdfName("Adobe.PPKLite"); 98 99 public static final PdfName ADOBE_PPKMS = new PdfName("Adobe.PPKMS"); 100 101 public static final PdfName AESV2 = new PdfName("AESV2"); 102 103 public static final PdfName AIS = new PdfName("AIS"); 104 105 public static final PdfName ALLPAGES = new PdfName("AllPages"); 106 107 public static final PdfName ALT = new PdfName("Alt"); 108 109 public static final PdfName ALTERNATE = new PdfName("Alternate"); 110 111 public static final PdfName ANNOT = new PdfName("Annot"); 112 113 public static final PdfName ANTIALIAS = new PdfName("AntiAlias"); 114 115 public static final PdfName ANNOTS = new PdfName("Annots"); 116 117 public static final PdfName AP = new PdfName("AP"); 118 119 public static final PdfName APPDEFAULT = new PdfName("AppDefault"); 120 121 public static final PdfName ARTBOX = new PdfName("ArtBox"); 122 123 public static final PdfName ASCENT = new PdfName("Ascent"); 124 125 public static final PdfName AS = new PdfName("AS"); 126 127 public static final PdfName ASCII85DECODE = new PdfName("ASCII85Decode"); 128 129 public static final PdfName ASCIIHEXDECODE = new PdfName("ASCIIHexDecode"); 130 131 public static final PdfName AUTHEVENT = new PdfName("AuthEvent"); 132 133 public static final PdfName AUTHOR = new PdfName("Author"); 134 135 public static final PdfName B = new PdfName("B"); 136 137 public static final PdfName BASEENCODING = new PdfName("BaseEncoding"); 138 139 public static final PdfName BASEFONT = new PdfName("BaseFont"); 140 141 public static final PdfName BBOX = new PdfName("BBox"); 142 143 public static final PdfName BC = new PdfName("BC"); 144 145 public static final PdfName BG = new PdfName("BG"); 146 147 public static final PdfName BIGFIVE = new PdfName("BigFive"); 148 149 public static final PdfName BITSPERCOMPONENT = new PdfName("BitsPerComponent"); 150 151 public static final PdfName BITSPERSAMPLE = new PdfName("BitsPerSample"); 152 153 public static final PdfName BL = new PdfName("Bl"); 154 155 public static final PdfName BLACKIS1 = new PdfName("BlackIs1"); 156 157 public static final PdfName BLACKPOINT = new PdfName("BlackPoint"); 158 159 public static final PdfName BLEEDBOX = new PdfName("BleedBox"); 160 161 public static final PdfName BLINDS = new PdfName("Blinds"); 162 163 public static final PdfName BM = new PdfName("BM"); 164 165 public static final PdfName BORDER = new PdfName("Border"); 166 167 public static final PdfName BOUNDS = new PdfName("Bounds"); 168 169 public static final PdfName BOX = new PdfName("Box"); 170 171 public static final PdfName BS = new PdfName("BS"); 172 173 public static final PdfName BTN = new PdfName("Btn"); 174 175 public static final PdfName BYTERANGE = new PdfName("ByteRange"); 176 177 public static final PdfName C = new PdfName("C"); 178 179 public static final PdfName C0 = new PdfName("C0"); 180 181 public static final PdfName C1 = new PdfName("C1"); 182 183 public static final PdfName CA = new PdfName("CA"); 184 185 public static final PdfName ca = new PdfName("ca"); 186 187 public static final PdfName CALGRAY = new PdfName("CalGray"); 188 189 public static final PdfName CALRGB = new PdfName("CalRGB"); 190 191 public static final PdfName CAPHEIGHT = new PdfName("CapHeight"); 192 193 public static final PdfName CATALOG = new PdfName("Catalog"); 194 195 public static final PdfName CATEGORY = new PdfName("Category"); 196 197 public static final PdfName CCITTFAXDECODE = new PdfName("CCITTFaxDecode"); 198 199 public static final PdfName CENTERWINDOW = new PdfName("CenterWindow"); 200 201 public static final PdfName CERT = new PdfName("Cert"); 202 203 public static final PdfName CF = new PdfName("CF"); 204 205 public static final PdfName CFM = new PdfName("CFM"); 206 207 public static final PdfName CH = new PdfName("Ch"); 208 209 public static final PdfName CHARPROCS = new PdfName("CharProcs"); 210 211 public static final PdfName CI = new PdfName("CI"); 212 213 public static final PdfName CIDFONTTYPE0 = new PdfName("CIDFontType0"); 214 215 public static final PdfName CIDFONTTYPE2 = new PdfName("CIDFontType2"); 216 217 public static final PdfName CIDSYSTEMINFO = new PdfName("CIDSystemInfo"); 218 219 public static final PdfName CIDTOGIDMAP = new PdfName("CIDToGIDMap"); 220 221 public static final PdfName CIRCLE = new PdfName("Circle"); 222 223 public static final PdfName CO = new PdfName("CO"); 224 225 public static final PdfName COLORS = new PdfName("Colors"); 226 227 public static final PdfName COLORSPACE = new PdfName("ColorSpace"); 228 229 public static final PdfName COLLECTION = new PdfName("Collection"); 230 231 public static final PdfName COLLECTIONFIELD = new PdfName("CollectionField"); 232 233 public static final PdfName COLLECTIONITEM = new PdfName("CollectionItem"); 234 235 public static final PdfName COLLECTIONSCHEMA = new PdfName("CollectionSchema"); 236 237 public static final PdfName COLLECTIONSORT = new PdfName("CollectionSort"); 238 239 public static final PdfName COLLECTIONSUBITEM = new PdfName("CollectionSubitem"); 240 241 public static final PdfName COLUMNS = new PdfName("Columns"); 242 243 public static final PdfName CONTACTINFO = new PdfName("ContactInfo"); 244 245 public static final PdfName CONTENT = new PdfName("Content"); 246 247 public static final PdfName CONTENTS = new PdfName("Contents"); 248 249 public static final PdfName COORDS = new PdfName("Coords"); 250 251 public static final PdfName COUNT = new PdfName("Count"); 252 253 public static final PdfName COURIER = new PdfName("Courier"); 254 255 public static final PdfName COURIER_BOLD = new PdfName("Courier-Bold"); 256 257 public static final PdfName COURIER_OBLIQUE = new PdfName("Courier-Oblique"); 258 259 public static final PdfName COURIER_BOLDOBLIQUE = new PdfName("Courier-BoldOblique"); 260 261 public static final PdfName CREATIONDATE = new PdfName("CreationDate"); 262 263 public static final PdfName CREATOR = new PdfName("Creator"); 264 265 public static final PdfName CREATORINFO = new PdfName("CreatorInfo"); 266 267 public static final PdfName CROPBOX = new PdfName("CropBox"); 268 269 public static final PdfName CRYPT = new PdfName("Crypt"); 270 271 public static final PdfName CS = new PdfName("CS"); 272 273 public static final PdfName D = new PdfName("D"); 274 275 public static final PdfName DA = new PdfName("DA"); 276 277 public static final PdfName DATA = new PdfName("Data"); 278 279 public static final PdfName DC = new PdfName("DC"); 280 281 public static final PdfName DCTDECODE = new PdfName("DCTDecode"); 282 283 public static final PdfName DECODE = new PdfName("Decode"); 284 285 public static final PdfName DECODEPARMS = new PdfName("DecodeParms"); 286 287 public static final PdfName DEFAULTCRYPTFILER = new PdfName("DefaultCryptFilter"); 288 289 public static final PdfName DEFAULTCMYK = new PdfName("DefaultCMYK"); 290 291 public static final PdfName DEFAULTGRAY = new PdfName("DefaultGray"); 292 293 public static final PdfName DEFAULTRGB = new PdfName("DefaultRGB"); 294 295 public static final PdfName DESC = new PdfName("Desc"); 296 297 public static final PdfName DESCENDANTFONTS = new PdfName("DescendantFonts"); 298 299 public static final PdfName DESCENT = new PdfName("Descent"); 300 301 public static final PdfName DEST = new PdfName("Dest"); 302 303 public static final PdfName DESTOUTPUTPROFILE = new PdfName("DestOutputProfile"); 304 305 public static final PdfName DESTS = new PdfName("Dests"); 306 307 public static final PdfName DEVICEGRAY = new PdfName("DeviceGray"); 308 309 public static final PdfName DEVICERGB = new PdfName("DeviceRGB"); 310 311 public static final PdfName DEVICECMYK = new PdfName("DeviceCMYK"); 312 313 public static final PdfName DI = new PdfName("Di"); 314 315 public static final PdfName DIFFERENCES = new PdfName("Differences"); 316 317 public static final PdfName DISSOLVE = new PdfName("Dissolve"); 318 319 public static final PdfName DIRECTION = new PdfName("Direction"); 320 321 public static final PdfName DISPLAYDOCTITLE = new PdfName("DisplayDocTitle"); 322 323 public static final PdfName DIV = new PdfName("Div"); 324 325 public static final PdfName DM = new PdfName("Dm"); 326 327 public static final PdfName DOCMDP = new PdfName("DocMDP"); 328 329 public static final PdfName DOCOPEN = new PdfName("DocOpen"); 330 331 public static final PdfName DOMAIN = new PdfName("Domain"); 332 333 public static final PdfName DP = new PdfName("DP"); 334 335 public static final PdfName DR = new PdfName("DR"); 336 337 public static final PdfName DS = new PdfName("DS"); 338 339 public static final PdfName DUR = new PdfName("Dur"); 340 341 public static final PdfName DUPLEX = new PdfName("Duplex"); 342 343 public static final PdfName DUPLEXFLIPSHORTEDGE = new PdfName("DuplexFlipShortEdge"); 344 345 public static final PdfName DUPLEXFLIPLONGEDGE = new PdfName("DuplexFlipLongEdge"); 346 347 public static final PdfName DV = new PdfName("DV"); 348 349 public static final PdfName DW = new PdfName("DW"); 350 351 public static final PdfName E = new PdfName("E"); 352 353 public static final PdfName EARLYCHANGE = new PdfName("EarlyChange"); 354 355 public static final PdfName EF = new PdfName("EF"); 356 357 public static final PdfName EMBEDDEDFILE = new PdfName("EmbeddedFile"); 358 359 public static final PdfName EMBEDDEDFILES = new PdfName("EmbeddedFiles"); 360 361 public static final PdfName ENCODE = new PdfName("Encode"); 362 363 public static final PdfName ENCODEDBYTEALIGN = new PdfName("EncodedByteAlign"); 364 365 public static final PdfName ENCODING = new PdfName("Encoding"); 366 367 public static final PdfName ENCRYPT = new PdfName("Encrypt"); 368 369 public static final PdfName ENCRYPTMETADATA = new PdfName("EncryptMetadata"); 370 371 public static final PdfName ENDOFBLOCK = new PdfName("EndOfBlock"); 372 373 public static final PdfName ENDOFLINE = new PdfName("EndOfLine"); 374 375 public static final PdfName EXTEND = new PdfName("Extend"); 376 377 public static final PdfName EXTGSTATE = new PdfName("ExtGState"); 378 379 public static final PdfName EXPORT = new PdfName("Export"); 380 381 public static final PdfName EXPORTSTATE = new PdfName("ExportState"); 382 383 public static final PdfName EVENT = new PdfName("Event"); 384 385 public static final PdfName F = new PdfName("F"); 386 387 public static final PdfName FB = new PdfName("FB"); 388 389 public static final PdfName FDECODEPARMS = new PdfName("FDecodeParms"); 390 391 public static final PdfName FDF = new PdfName("FDF"); 392 393 public static final PdfName FF = new PdfName("Ff"); 394 395 public static final PdfName FFILTER = new PdfName("FFilter"); 396 397 public static final PdfName FIELDS = new PdfName("Fields"); 398 399 public static final PdfName FILEATTACHMENT = new PdfName("FileAttachment"); 400 401 public static final PdfName FILESPEC = new PdfName("Filespec"); 402 403 public static final PdfName FILTER = new PdfName("Filter"); 404 405 public static final PdfName FIRST = new PdfName("First"); 406 407 public static final PdfName FIRSTCHAR = new PdfName("FirstChar"); 408 409 public static final PdfName FIRSTPAGE = new PdfName("FirstPage"); 410 411 public static final PdfName FIT = new PdfName("Fit"); 412 413 public static final PdfName FITH = new PdfName("FitH"); 414 415 public static final PdfName FITV = new PdfName("FitV"); 416 417 public static final PdfName FITR = new PdfName("FitR"); 418 419 public static final PdfName FITB = new PdfName("FitB"); 420 421 public static final PdfName FITBH = new PdfName("FitBH"); 422 423 public static final PdfName FITBV = new PdfName("FitBV"); 424 425 public static final PdfName FITWINDOW = new PdfName("FitWindow"); 426 427 public static final PdfName FLAGS = new PdfName("Flags"); 428 429 public static final PdfName FLATEDECODE = new PdfName("FlateDecode"); 430 431 public static final PdfName FO = new PdfName("Fo"); 432 433 public static final PdfName FONT = new PdfName("Font"); 434 435 public static final PdfName FONTBBOX = new PdfName("FontBBox"); 436 437 public static final PdfName FONTDESCRIPTOR = new PdfName("FontDescriptor"); 438 439 public static final PdfName FONTFILE = new PdfName("FontFile"); 440 441 public static final PdfName FONTFILE2 = new PdfName("FontFile2"); 442 443 public static final PdfName FONTFILE3 = new PdfName("FontFile3"); 444 445 public static final PdfName FONTMATRIX = new PdfName("FontMatrix"); 446 447 public static final PdfName FONTNAME = new PdfName("FontName"); 448 449 public static final PdfName FORM = new PdfName("Form"); 450 451 public static final PdfName FORMTYPE = new PdfName("FormType"); 452 453 public static final PdfName FREETEXT = new PdfName("FreeText"); 454 455 public static final PdfName FRM = new PdfName("FRM"); 456 457 public static final PdfName FS = new PdfName("FS"); 458 459 public static final PdfName FT = new PdfName("FT"); 460 461 public static final PdfName FULLSCREEN = new PdfName("FullScreen"); 462 463 public static final PdfName FUNCTION = new PdfName("Function"); 464 465 public static final PdfName FUNCTIONS = new PdfName("Functions"); 466 467 public static final PdfName FUNCTIONTYPE = new PdfName("FunctionType"); 468 469 public static final PdfName GAMMA = new PdfName("Gamma"); 470 471 public static final PdfName GBK = new PdfName("GBK"); 472 473 public static final PdfName GLITTER = new PdfName("Glitter"); 474 475 public static final PdfName GOTO = new PdfName("GoTo"); 476 477 public static final PdfName GOTOE = new PdfName("GoToE"); 478 479 public static final PdfName GOTOR = new PdfName("GoToR"); 480 481 public static final PdfName GROUP = new PdfName("Group"); 482 483 public static final PdfName GTS_PDFX = new PdfName("GTS_PDFX"); 484 485 public static final PdfName GTS_PDFXVERSION = new PdfName("GTS_PDFXVersion"); 486 487 public static final PdfName H = new PdfName("H"); 488 489 public static final PdfName HEIGHT = new PdfName("Height"); 490 491 public static final PdfName HELV = new PdfName("Helv"); 492 493 public static final PdfName HELVETICA = new PdfName("Helvetica"); 494 495 public static final PdfName HELVETICA_BOLD = new PdfName("Helvetica-Bold"); 496 497 public static final PdfName HELVETICA_OBLIQUE = new PdfName("Helvetica-Oblique"); 498 499 public static final PdfName HELVETICA_BOLDOBLIQUE = new PdfName("Helvetica-BoldOblique"); 500 501 public static final PdfName HID = new PdfName("Hid"); 502 503 public static final PdfName HIDE = new PdfName("Hide"); 504 505 public static final PdfName HIDEMENUBAR = new PdfName("HideMenubar"); 506 507 public static final PdfName HIDETOOLBAR = new PdfName("HideToolbar"); 508 509 public static final PdfName HIDEWINDOWUI = new PdfName("HideWindowUI"); 510 511 public static final PdfName HIGHLIGHT = new PdfName("Highlight"); 512 513 public static final PdfName I = new PdfName("I"); 514 515 public static final PdfName ICCBASED = new PdfName("ICCBased"); 516 517 public static final PdfName ID = new PdfName("ID"); 518 519 public static final PdfName IDENTITY = new PdfName("Identity"); 520 521 public static final PdfName IF = new PdfName("IF"); 522 523 public static final PdfName IMAGE = new PdfName("Image"); 524 525 public static final PdfName IMAGEB = new PdfName("ImageB"); 526 527 public static final PdfName IMAGEC = new PdfName("ImageC"); 528 529 public static final PdfName IMAGEI = new PdfName("ImageI"); 530 531 public static final PdfName IMAGEMASK = new PdfName("ImageMask"); 532 533 public static final PdfName INDEX = new PdfName("Index"); 534 535 public static final PdfName INDEXED = new PdfName("Indexed"); 536 537 public static final PdfName INFO = new PdfName("Info"); 538 539 public static final PdfName INK = new PdfName("Ink"); 540 541 public static final PdfName INKLIST = new PdfName("InkList"); 542 543 public static final PdfName IMPORTDATA = new PdfName("ImportData"); 544 545 public static final PdfName INTENT = new PdfName("Intent"); 546 547 public static final PdfName INTERPOLATE = new PdfName("Interpolate"); 548 549 public static final PdfName ISMAP = new PdfName("IsMap"); 550 551 public static final PdfName IRT = new PdfName("IRT"); 552 553 public static final PdfName ITALICANGLE = new PdfName("ItalicAngle"); 554 555 public static final PdfName IX = new PdfName("IX"); 556 557 public static final PdfName JAVASCRIPT = new PdfName("JavaScript"); 558 559 public static final PdfName JS = new PdfName("JS"); 560 561 public static final PdfName K = new PdfName("K"); 562 563 public static final PdfName KEYWORDS = new PdfName("Keywords"); 564 565 public static final PdfName KIDS = new PdfName("Kids"); 566 567 public static final PdfName L = new PdfName("L"); 568 569 public static final PdfName L2R = new PdfName("L2R"); 570 571 public static final PdfName LANG = new PdfName("Lang"); 572 573 public static final PdfName LANGUAGE = new PdfName("Language"); 574 575 public static final PdfName LAST = new PdfName("Last"); 576 577 public static final PdfName LASTCHAR = new PdfName("LastChar"); 578 579 public static final PdfName LASTPAGE = new PdfName("LastPage"); 580 581 public static final PdfName LAUNCH = new PdfName("Launch"); 582 583 public static final PdfName LENGTH = new PdfName("Length"); 584 585 public static final PdfName LENGTH1 = new PdfName("Length1"); 586 587 public static final PdfName LIMITS = new PdfName("Limits"); 588 589 public static final PdfName LINE = new PdfName("Line"); 590 591 public static final PdfName LINK = new PdfName("Link"); 592 593 public static final PdfName LISTMODE = new PdfName("ListMode"); 594 595 public static final PdfName LOCATION = new PdfName("Location"); 596 597 public static final PdfName LOCK = new PdfName("Lock"); 598 599 public static final PdfName LZWDECODE = new PdfName("LZWDecode"); 600 601 public static final PdfName M = new PdfName("M"); 602 603 public static final PdfName MATRIX = new PdfName("Matrix"); 604 605 public static final PdfName MAC_EXPERT_ENCODING = new PdfName("MacExpertEncoding"); 606 607 public static final PdfName MAC_ROMAN_ENCODING = new PdfName("MacRomanEncoding"); 608 609 public static final PdfName MARKED = new PdfName("Marked"); 610 611 public static final PdfName MARKINFO = new PdfName("MarkInfo"); 612 613 public static final PdfName MASK = new PdfName("Mask"); 614 615 public static final PdfName MAX = new PdfName("max"); 616 617 public static final PdfName MAXLEN = new PdfName("MaxLen"); 618 619 public static final PdfName MEDIABOX = new PdfName("MediaBox"); 620 621 public static final PdfName MCID = new PdfName("MCID"); 622 623 public static final PdfName MCR = new PdfName("MCR"); 624 625 public static final PdfName METADATA = new PdfName("Metadata"); 626 627 public static final PdfName MIN = new PdfName("min"); 628 629 public static final PdfName MK = new PdfName("MK"); 630 631 public static final PdfName MMTYPE1 = new PdfName("MMType1"); 632 633 public static final PdfName MODDATE = new PdfName("ModDate"); 634 635 public static final PdfName N = new PdfName("N"); 636 637 public static final PdfName N0 = new PdfName("n0"); 638 639 public static final PdfName N1 = new PdfName("n1"); 640 641 public static final PdfName N2 = new PdfName("n2"); 642 643 public static final PdfName N3 = new PdfName("n3"); 644 645 public static final PdfName N4 = new PdfName("n4"); 646 647 public static final PdfName NAME = new PdfName("Name"); 648 649 public static final PdfName NAMED = new PdfName("Named"); 650 651 public static final PdfName NAMES = new PdfName("Names"); 652 653 public static final PdfName NEEDAPPEARANCES = new PdfName("NeedAppearances"); 654 655 public static final PdfName NEWWINDOW = new PdfName("NewWindow"); 656 657 public static final PdfName NEXT = new PdfName("Next"); 658 659 public static final PdfName NEXTPAGE = new PdfName("NextPage"); 660 661 public static final PdfName NM = new PdfName("NM"); 662 663 public static final PdfName NONE = new PdfName("None"); 664 665 public static final PdfName NONFULLSCREENPAGEMODE = new PdfName("NonFullScreenPageMode"); 666 667 public static final PdfName NUMCOPIES = new PdfName("NumCopies"); 668 669 public static final PdfName NUMS = new PdfName("Nums"); 670 671 public static final PdfName O = new PdfName("O"); 672 673 public static final PdfName OBJSTM = new PdfName("ObjStm"); 674 675 public static final PdfName OC = new PdfName("OC"); 676 677 public static final PdfName OCG = new PdfName("OCG"); 678 679 public static final PdfName OCGS = new PdfName("OCGs"); 680 681 public static final PdfName OCMD = new PdfName("OCMD"); 682 683 public static final PdfName OCPROPERTIES = new PdfName("OCProperties"); 684 685 public static final PdfName Off = new PdfName("Off"); 686 687 public static final PdfName OFF = new PdfName("OFF"); 688 689 public static final PdfName ON = new PdfName("ON"); 690 691 public static final PdfName ONECOLUMN = new PdfName("OneColumn"); 692 693 public static final PdfName OPEN = new PdfName("Open"); 694 695 public static final PdfName OPENACTION = new PdfName("OpenAction"); 696 697 public static final PdfName OP = new PdfName("OP"); 698 699 public static final PdfName op = new PdfName("op"); 700 701 public static final PdfName OPM = new PdfName("OPM"); 702 703 public static final PdfName OPT = new PdfName("Opt"); 704 705 public static final PdfName ORDER = new PdfName("Order"); 706 707 public static final PdfName ORDERING = new PdfName("Ordering"); 708 709 public static final PdfName OUTLINES = new PdfName("Outlines"); 710 711 public static final PdfName OUTPUTCONDITION = new PdfName("OutputCondition"); 712 713 public static final PdfName OUTPUTCONDITIONIDENTIFIER = new PdfName("OutputConditionIdentifier"); 714 715 public static final PdfName OUTPUTINTENT = new PdfName("OutputIntent"); 716 717 public static final PdfName OUTPUTINTENTS = new PdfName("OutputIntents"); 718 719 public static final PdfName P = new PdfName("P"); 720 721 public static final PdfName PAGE = new PdfName("Page"); 722 723 public static final PdfName PAGELABELS = new PdfName("PageLabels"); 724 725 public static final PdfName PAGELAYOUT = new PdfName("PageLayout"); 726 727 public static final PdfName PAGEMODE = new PdfName("PageMode"); 728 729 public static final PdfName PAGES = new PdfName("Pages"); 730 731 public static final PdfName PAINTTYPE = new PdfName("PaintType"); 732 733 public static final PdfName PANOSE = new PdfName("Panose"); 734 735 public static final PdfName PARAMS = new PdfName("Params"); 736 737 public static final PdfName PARENT = new PdfName("Parent"); 738 739 public static final PdfName PARENTTREE = new PdfName("ParentTree"); 740 741 public static final PdfName PATTERN = new PdfName("Pattern"); 742 743 public static final PdfName PATTERNTYPE = new PdfName("PatternType"); 744 745 public static final PdfName PDF = new PdfName("PDF"); 746 747 public static final PdfName PDFDOCENCODING = new PdfName("PDFDocEncoding"); 748 749 public static final PdfName PERCEPTUAL = new PdfName("Perceptual"); 750 751 public static final PdfName PERMS = new PdfName("Perms"); 752 753 public static final PdfName PG = new PdfName("Pg"); 754 755 public static final PdfName PICKTRAYBYPDFSIZE = new PdfName("PickTrayByPDFSize"); 756 757 public static final PdfName POPUP = new PdfName("Popup"); 758 759 public static final PdfName PREDICTOR = new PdfName("Predictor"); 760 761 public static final PdfName PREFERRED = new PdfName("Preferred"); 762 763 public static final PdfName PRESERVERB = new PdfName("PreserveRB"); 764 765 public static final PdfName PREV = new PdfName("Prev"); 766 767 public static final PdfName PREVPAGE = new PdfName("PrevPage"); 768 769 public static final PdfName PRINT = new PdfName("Print"); 770 771 public static final PdfName PRINTAREA = new PdfName("PrintArea"); 772 773 public static final PdfName PRINTCLIP = new PdfName("PrintClip"); 774 775 public static final PdfName PRINTPAGERANGE = new PdfName("PrintPageRange"); 776 777 public static final PdfName PRINTSCALING = new PdfName("PrintScaling"); 778 779 public static final PdfName PRINTSTATE = new PdfName("PrintState"); 780 781 public static final PdfName PROCSET = new PdfName("ProcSet"); 782 783 public static final PdfName PRODUCER = new PdfName("Producer"); 784 785 public static final PdfName PROPERTIES = new PdfName("Properties"); 786 787 public static final PdfName PS = new PdfName("PS"); 788 789 public static final PdfName PUBSEC = new PdfName("Adobe.PubSec"); 790 791 public static final PdfName Q = new PdfName("Q"); 792 793 public static final PdfName QUADPOINTS = new PdfName("QuadPoints"); 794 795 public static final PdfName R = new PdfName("R"); 796 797 public static final PdfName R2L = new PdfName("R2L"); 798 799 public static final PdfName RANGE = new PdfName("Range"); 800 801 public static final PdfName RC = new PdfName("RC"); 802 803 public static final PdfName RBGROUPS = new PdfName("RBGroups"); 804 805 public static final PdfName REASON = new PdfName("Reason"); 806 807 public static final PdfName RECIPIENTS = new PdfName("Recipients"); 808 809 public static final PdfName RECT = new PdfName("Rect"); 810 811 public static final PdfName REFERENCE = new PdfName("Reference"); 812 813 public static final PdfName REGISTRY = new PdfName("Registry"); 814 815 public static final PdfName REGISTRYNAME = new PdfName("RegistryName"); 816 817 public static final PdfName RELATIVECALORIMETRIC = new PdfName("RelativeColorimetric"); 818 819 public static final PdfName RENDITION = new PdfName("Rendition"); 820 821 public static final PdfName RESETFORM = new PdfName("ResetForm"); 822 823 public static final PdfName RESOURCES = new PdfName("Resources"); 824 825 public static final PdfName RI = new PdfName("RI"); 826 827 public static final PdfName ROLEMAP = new PdfName("RoleMap"); 828 829 public static final PdfName ROOT = new PdfName("Root"); 830 831 public static final PdfName ROTATE = new PdfName("Rotate"); 832 833 public static final PdfName ROWS = new PdfName("Rows"); 834 835 public static final PdfName RUNLENGTHDECODE = new PdfName("RunLengthDecode"); 836 837 public static final PdfName RV = new PdfName("RV"); 838 839 public static final PdfName S = new PdfName("S"); 840 841 public static final PdfName SATURATION = new PdfName("Saturation"); 842 843 public static final PdfName SCHEMA = new PdfName("Schema"); 844 845 public static final PdfName SCREEN = new PdfName("Screen"); 846 847 public static final PdfName SECT = new PdfName("Sect"); 848 849 public static final PdfName SEPARATION = new PdfName("Separation"); 850 851 public static final PdfName SETOCGSTATE = new PdfName("SetOCGState"); 852 853 public static final PdfName SHADING = new PdfName("Shading"); 854 855 public static final PdfName SHADINGTYPE = new PdfName("ShadingType"); 856 857 public static final PdfName SHIFT_JIS = new PdfName("Shift-JIS"); 858 859 public static final PdfName SIG = new PdfName("Sig"); 860 861 public static final PdfName SIGFLAGS = new PdfName("SigFlags"); 862 863 public static final PdfName SIGREF = new PdfName("SigRef"); 864 865 public static final PdfName SIMPLEX = new PdfName("Simplex"); 866 867 public static final PdfName SINGLEPAGE = new PdfName("SinglePage"); 868 869 public static final PdfName SIZE = new PdfName("Size"); 870 871 public static final PdfName SMASK = new PdfName("SMask"); 872 873 public static final PdfName SORT = new PdfName("Sort"); 874 875 public static final PdfName SPAN = new PdfName("Span"); 876 877 public static final PdfName SPLIT = new PdfName("Split"); 878 879 public static final PdfName SQUARE = new PdfName("Square"); 880 881 public static final PdfName ST = new PdfName("St"); 882 883 public static final PdfName STAMP = new PdfName("Stamp"); 884 885 public static final PdfName STANDARD = new PdfName("Standard"); 886 887 public static final PdfName STATE = new PdfName("State"); 888 889 public static final PdfName STDCF = new PdfName("StdCF"); 890 891 public static final PdfName STEMV = new PdfName("StemV"); 892 893 public static final PdfName STMF = new PdfName("StmF"); 894 895 public static final PdfName STRF = new PdfName("StrF"); 896 897 public static final PdfName STRIKEOUT = new PdfName("StrikeOut"); 898 899 public static final PdfName STRUCTPARENT = new PdfName("StructParent"); 900 901 public static final PdfName STRUCTPARENTS = new PdfName("StructParents"); 902 903 public static final PdfName STRUCTTREEROOT = new PdfName("StructTreeRoot"); 904 905 public static final PdfName STYLE = new PdfName("Style"); 906 907 public static final PdfName SUBFILTER = new PdfName("SubFilter"); 908 909 public static final PdfName SUBJECT = new PdfName("Subject"); 910 911 public static final PdfName SUBMITFORM = new PdfName("SubmitForm"); 912 913 public static final PdfName SUBTYPE = new PdfName("Subtype"); 914 915 public static final PdfName SUPPLEMENT = new PdfName("Supplement"); 916 917 public static final PdfName SV = new PdfName("SV"); 918 919 public static final PdfName SW = new PdfName("SW"); 920 921 public static final PdfName SYMBOL = new PdfName("Symbol"); 922 923 public static final PdfName T = new PdfName("T"); 924 925 public static final PdfName TEXT = new PdfName("Text"); 926 927 public static final PdfName THUMB = new PdfName("Thumb"); 928 929 public static final PdfName THREADS = new PdfName("Threads"); 930 931 public static final PdfName TI = new PdfName("TI"); 932 933 public static final PdfName TILINGTYPE = new PdfName("TilingType"); 934 935 public static final PdfName TIMES_ROMAN = new PdfName("Times-Roman"); 936 937 public static final PdfName TIMES_BOLD = new PdfName("Times-Bold"); 938 939 public static final PdfName TIMES_ITALIC = new PdfName("Times-Italic"); 940 941 public static final PdfName TIMES_BOLDITALIC = new PdfName("Times-BoldItalic"); 942 943 public static final PdfName TITLE = new PdfName("Title"); 944 945 public static final PdfName TK = new PdfName("TK"); 946 947 public static final PdfName TM = new PdfName("TM"); 948 949 public static final PdfName TOGGLE = new PdfName("Toggle"); 950 951 public static final PdfName TOUNICODE = new PdfName("ToUnicode"); 952 953 public static final PdfName TP = new PdfName("TP"); 954 955 public static final PdfName TRANS = new PdfName("Trans"); 956 957 public static final PdfName TRANSFORMPARAMS = new PdfName("TransformParams"); 958 959 public static final PdfName TRANSFORMMETHOD = new PdfName("TransformMethod"); 960 961 public static final PdfName TRANSPARENCY = new PdfName("Transparency"); 962 963 public static final PdfName TRAPPED = new PdfName("Trapped"); 964 965 public static final PdfName TRIMBOX = new PdfName("TrimBox"); 966 967 public static final PdfName TRUETYPE = new PdfName("TrueType"); 968 969 public static final PdfName TU = new PdfName("TU"); 970 971 public static final PdfName TWOCOLUMNLEFT = new PdfName("TwoColumnLeft"); 972 973 public static final PdfName TWOCOLUMNRIGHT = new PdfName("TwoColumnRight"); 974 975 public static final PdfName TWOPAGELEFT = new PdfName("TwoPageLeft"); 976 977 public static final PdfName TWOPAGERIGHT = new PdfName("TwoPageRight"); 978 979 public static final PdfName TX = new PdfName("Tx"); 980 981 public static final PdfName TYPE = new PdfName("Type"); 982 983 public static final PdfName TYPE0 = new PdfName("Type0"); 984 985 public static final PdfName TYPE1 = new PdfName("Type1"); 986 987 public static final PdfName TYPE3 = new PdfName("Type3"); 988 989 public static final PdfName U = new PdfName("U"); 990 991 public static final PdfName UF = new PdfName("UF"); 992 993 public static final PdfName UHC = new PdfName("UHC"); 994 995 public static final PdfName UNDERLINE = new PdfName("Underline"); 996 997 public static final PdfName UR = new PdfName("UR"); 998 999 public static final PdfName UR3 = new PdfName("UR3"); 1000 1001 public static final PdfName URI = new PdfName("URI"); 1002 1003 public static final PdfName URL = new PdfName("URL"); 1004 1005 public static final PdfName USAGE = new PdfName("Usage"); 1006 1007 public static final PdfName USEATTACHMENTS = new PdfName("UseAttachments"); 1008 1009 public static final PdfName USENONE = new PdfName("UseNone"); 1010 1011 public static final PdfName USEOC = new PdfName("UseOC"); 1012 1013 public static final PdfName USEOUTLINES = new PdfName("UseOutlines"); 1014 1015 public static final PdfName USER = new PdfName("User"); 1016 1017 public static final PdfName USERPROPERTIES = new PdfName("UserProperties"); 1018 1019 public static final PdfName USERUNIT = new PdfName("UserUnit"); 1020 1021 public static final PdfName USETHUMBS = new PdfName("UseThumbs"); 1022 1023 public static final PdfName V = new PdfName("V"); 1024 1025 public static final PdfName V2 = new PdfName("V2"); 1026 1027 public static final PdfName VERISIGN_PPKVS = new PdfName("VeriSign.PPKVS"); 1028 1029 public static final PdfName VERSION = new PdfName("Version"); 1030 1031 public static final PdfName VIEW = new PdfName("View"); 1032 1033 public static final PdfName VIEWAREA = new PdfName("ViewArea"); 1034 1035 public static final PdfName VIEWCLIP = new PdfName("ViewClip"); 1036 1037 public static final PdfName VIEWERPREFERENCES = new PdfName("ViewerPreferences"); 1038 1039 public static final PdfName VIEWSTATE = new PdfName("ViewState"); 1040 1041 public static final PdfName VISIBLEPAGES = new PdfName("VisiblePages"); 1042 1043 public static final PdfName W = new PdfName("W"); 1044 1045 public static final PdfName W2 = new PdfName("W2"); 1046 1047 public static final PdfName WC = new PdfName("WC"); 1048 1049 public static final PdfName WIDGET = new PdfName("Widget"); 1050 1051 public static final PdfName WIDTH = new PdfName("Width"); 1052 1053 public static final PdfName WIDTHS = new PdfName("Widths"); 1054 1055 public static final PdfName WIN = new PdfName("Win"); 1056 1057 public static final PdfName WIN_ANSI_ENCODING = new PdfName("WinAnsiEncoding"); 1058 1059 public static final PdfName WIPE = new PdfName("Wipe"); 1060 1061 public static final PdfName WHITEPOINT = new PdfName("WhitePoint"); 1062 1063 public static final PdfName WP = new PdfName("WP"); 1064 1065 public static final PdfName WS = new PdfName("WS"); 1066 1067 public static final PdfName X = new PdfName("X"); 1068 1069 public static final PdfName XFA = new PdfName("XFA"); 1070 1071 public static final PdfName XML = new PdfName("XML"); 1072 1073 public static final PdfName XOBJECT = new PdfName("XObject"); 1074 1075 public static final PdfName XSTEP = new PdfName("XStep"); 1076 1077 public static final PdfName XREF = new PdfName("XRef"); 1078 1079 public static final PdfName XREFSTM = new PdfName("XRefStm"); 1080 1081 public static final PdfName XYZ = new PdfName("XYZ"); 1082 1083 public static final PdfName YSTEP = new PdfName("YStep"); 1084 1085 public static final PdfName ZADB = new PdfName("ZaDb"); 1086 1087 public static final PdfName ZAPFDINGBATS = new PdfName("ZapfDingbats"); 1088 1089 public static final PdfName ZOOM = new PdfName("Zoom"); 1090 1091 private int hash = 0; 1092 1093 1095 1096 1100 public PdfName(String name) { 1101 this(name, true); 1102 } 1103 1104 1110 1111 public PdfName(String name, boolean lengthCheck) { 1112 super(PdfObject.NAME); 1113 int length = name.length(); 1115 if (lengthCheck && length > 127) { 1116 throw new IllegalArgumentException ("The name '" + name + "' is too long (" + length + " characters)."); 1117 } 1118 ByteBuffer pdfName = new ByteBuffer(length + 20); 1121 pdfName.append('/'); 1122 char character; 1123 char chars[] = name.toCharArray(); 1124 for (int index = 0; index < length; index++) { 1126 character = (char)(chars[index] & 0xff); 1127 switch (character) { 1129 case ' ': 1130 case '%': 1131 case '(': 1132 case ')': 1133 case '<': 1134 case '>': 1135 case '[': 1136 case ']': 1137 case '{': 1138 case '}': 1139 case '/': 1140 case '#': 1141 pdfName.append('#'); 1142 pdfName.append(Integer.toString((int) character, 16)); 1143 break; 1144 default: 1145 if (character > 126 || character < 32) { 1146 pdfName.append('#'); 1147 if (character < 16) 1148 pdfName.append('0'); 1149 pdfName.append(Integer.toString((int) character, 16)); 1150 } 1151 else 1152 pdfName.append(character); 1153 break; 1154 } 1155 } 1156 bytes = pdfName.toByteArray(); 1157 } 1158 1159 1163 public PdfName(byte bytes[]) { 1164 super(PdfObject.NAME, bytes); 1165 } 1166 1168 1178 public int compareTo(Object object) { 1179 PdfName name = (PdfName) object; 1180 1181 byte myBytes[] = bytes; 1182 byte objBytes[] = name.bytes; 1183 int len = Math.min(myBytes.length, objBytes.length); 1184 for(int i=0; i<len; i++) { 1185 if(myBytes[i] > objBytes[i]) 1186 return 1; 1187 1188 if(myBytes[i] < objBytes[i]) 1189 return -1; 1190 } 1191 if (myBytes.length < objBytes.length) 1192 return -1; 1193 if (myBytes.length > objBytes.length) 1194 return 1; 1195 return 0; 1196 } 1197 1198 1205 public boolean equals(Object obj) { 1206 if (this == obj) 1207 return true; 1208 if (obj instanceof PdfName) 1209 return compareTo(obj) == 0; 1210 return false; 1211 } 1212 1213 1220 public int hashCode() { 1221 int h = hash; 1222 if (h == 0) { 1223 int ptr = 0; 1224 int len = bytes.length; 1225 1226 for (int i = 0; i < len; i++) 1227 h = 31*h + (bytes[ptr++] & 0xff); 1228 hash = h; 1229 } 1230 return h; 1231 } 1232 1233 1237 public static String decodeName(String name) { 1238 StringBuffer buf = new StringBuffer (); 1239 try { 1240 int len = name.length(); 1241 for (int k = 1; k < len; ++k) { 1242 char c = name.charAt(k); 1243 if (c == '#') { 1244 c = (char)((PRTokeniser.getHex(name.charAt(k + 1)) << 4) + PRTokeniser.getHex(name.charAt(k + 2))); 1245 k += 2; 1246 } 1247 buf.append(c); 1248 } 1249 } 1250 catch (IndexOutOfBoundsException e) { 1251 } 1253 return buf.toString(); 1254 } 1255} 1256 | Popular Tags |