Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Side by Side Diff: experimental/PdfViewer/pdfspec_autogen.py

Issue 17286007: few steps in the direction of to encapsulating podofo, so the client is not aware podofo is used. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « experimental/PdfViewer/pdf_viewer_main.cpp ('k') | experimental/PdfViewer/spec2def.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 import datatypes 1 import datatypes
2 2
3 def buildPdfSpec(pdfspec): 3 def buildPdfSpec(pdfspec):
4 pdfspec.addClass('StreamCommonDictionary', 'Dictionary', 'Entries common to al l stream dictionaries')\ 4 pdfspec.addClass('StreamCommonDictionary', 'Dictionary', 'Entries common to al l stream dictionaries')\
5 .required('NULL')\ 5 .required('NULL')\
6 .field('Length')\ 6 .field('Length')\
7 .name('Length')\ 7 .name('Length')\
8 .type('integer')\ 8 .type('integer')\
9 .comment('(Required) The number of bytes from the beginning of the lin e fol-\nlowing the keyword stream to the last byte just before the keyword\nends tream. (There may be an additional EOL marker, preceding\nendstream, that is not included in the count and is not logically part\nof the stream data.) See "Stre am Extent," above, for further discus-\nsion.')\ 9 .comment('(Required) The number of bytes from the beginning of the lin e fol-\nlowing the keyword stream to the last byte just before the keyword\nends tream. (There may be an additional EOL marker, preceding\nendstream, that is not included in the count and is not logically part\nof the stream data.) See "Stre am Extent," above, for further discus-\nsion.')\
10 .done().done()\ 10 .done().done()\
(...skipping 898 matching lines...) Expand 10 before | Expand all | Expand 10 after
909 .comment('(Optional) The embedded file\'s creator signature.')\ 909 .comment('(Optional) The embedded file\'s creator signature.')\
910 .done().done()\ 910 .done().done()\
911 .optional()\ 911 .optional()\
912 .field('ResFork')\ 912 .field('ResFork')\
913 .name('ResFork')\ 913 .name('ResFork')\
914 .type('stream')\ 914 .type('stream')\
915 .comment('(Optional) The binary contents of the embedded file\'s resou rce fork.')\ 915 .comment('(Optional) The binary contents of the embedded file\'s resou rce fork.')\
916 .done().done()\ 916 .done().done()\
917 .done() 917 .done()
918 918
919 pdfspec.addClass('GraphicsStateDictionary', 'Dictionary', 'Entries in a graphi cs state parameter dictionary')\
920 .optional()\
921 .field('Type')\
922 .name('Type')\
923 .type('name')\
924 .comment('(Optional) The type of PDF object that this dictionary descr ibes; must be\nExtGState for a graphics state parameter dictionary.')\
925 .done().done()\
926 .optional()\
927 .field('LW')\
928 .name('LW')\
929 .type('number')\
930 .comment('(Optional; PDF 1.3) The line width (see "Line Width" on page 152).')\
931 .done().done()\
932 .optional()\
933 .field('LC')\
934 .name('LC')\
935 .type('integer')\
936 .comment('(Optional; PDF 1.3) The line cap style (see "Line Cap Style" on page 153).')\
937 .done().done()\
938 .optional()\
939 .field('LJ')\
940 .name('LJ')\
941 .type('integer')\
942 .comment('(Optional; PDF 1.3) The line join style (see "Line Join Styl e" on page 153).')\
943 .done().done()\
944 .optional()\
945 .field('ML')\
946 .name('ML')\
947 .type('number')\
948 .comment('(Optional; PDF 1.3) The miter limit (see "Miter Limit" on pa ge 153).')\
949 .done().done()\
950 .optional()\
951 .field('D')\
952 .name('D')\
953 .type('array')\
954 .comment('(Optional; PDF 1.3) The line dash pattern, expressed as an a rray of the form\n[dashArray dashPhase], where dashArray is itself an array and dashPhase is an\ninteger (see "Line Dash Pattern" on page 155).')\
955 .done().done()\
956 .optional()\
957 .field('RI')\
958 .name('RI')\
959 .type('name')\
960 .comment('(Optional; PDF 1.3) The name of the rendering intent (see "R endering\nIntents" on page 197).')\
961 .done().done()\
962 .optional()\
963 .field('OP')\
964 .name('OP')\
965 .type('boolean')\
966 .comment('(Optional) A flag specifying whether to apply overprint (see Section 4.5.6,\n"Overprint Control"). In PDF 1.2 and earlier, there is a single overprint\nparameter that applies to all painting operations. Beginning with PD F 1.3,\nthere are two separate overprint parameters: one for stroking and one fo r all\nother painting operations. Specifying an OP entry sets both parameters un -\nless there is also an op entry in the same graphics state parameter dictionar y,\nin which case the OP entry sets only the overprint parameter for stroking.') \
967 .done().done()\
968 .optional()\
969 .field('op')\
970 .name('op')\
971 .type('boolean')\
972 .comment('(Optional; PDF 1.3) A flag specifying whether to apply overp rint (see Section\n4.5.6, "Overprint Control") for painting operations other tha n stroking. If\nthis entry is absent, the OP entry, if any, sets this parameter. ')\
973 .done().done()\
974 .optional()\
975 .field('OPM')\
976 .name('OPM')\
977 .type('integer')\
978 .comment('(Optional; PDF 1.3) The overprint mode (see Section 4.5.6, " Overprint Con-\ntrol").')\
979 .done().done()\
980 .optional()\
981 .field('Font')\
982 .name('Font')\
983 .type('array')\
984 .comment('(Optional; PDF 1.3) An array of the form [font size], where font is an indirect\nreference to a font dictionary and size is a number express ed in text space\nunits. These two objects correspond to the operands of the Tf operator (see\nSection 5.2, "Text State Parameters and Operators"); however, the first oper-\nand is an indirect object reference instead of a resource name.')\
985 .done().done()\
986 .optional()\
987 .field('BG')\
988 .name('BG')\
989 .type('function')\
990 .comment('(Optional) The black-generation function, which maps the int erval [0.0 1.0]\nto the interval [0.0 1.0] (see Section 6.2.3, "Conversion from DeviceRGB to\nDeviceCMYK").')\
991 .done().done()\
992 .optional()\
993 .field('BG2')\
994 .name('BG2')\
995 .type('function or name')\
996 .comment('(Optional; PDF 1.3) Same as BG except that the value may als o be the name\nDefault, denoting the black-generation function that was in effec t at the start\nof the page. If both BG and BG2 are present in the same graphics state param-\neter dictionary, BG2 takes precedence.')\
997 .done().done()\
998 .optional()\
999 .field('UCR')\
1000 .name('UCR')\
1001 .type('function')\
1002 .comment('(Optional) The undercolor-removal function, which maps the i nterval\n[0.0 1.0] to the interval [-1.0 1.0] (see Section 6.2.3, "Conversion fr om\nDeviceRGB to DeviceCMYK").')\
1003 .done().done()\
1004 .optional()\
1005 .field('UCR2')\
1006 .name('UCR2')\
1007 .type('function or name')\
1008 .comment('(Optional; PDF 1.3) Same as UCR except that the value may al so be the name\nDefault, denoting the undercolor-removal function that was in ef fect at the\nstart of the page. If both UCR and UCR2 are present in the same gra phics state\nparameter dictionary, UCR2 takes precedence.')\
1009 .done().done()\
1010 .optional()\
1011 .field('TR')\
1012 .name('TR')\
1013 .type('function, array, or name')\
1014 .comment('(Optional) The transfer function, which maps the interval [0 .0 1.0] to the\ninterval [0.0 1.0] (see Section 6.3, "Transfer Functions"). The value is either\na single function (which applies to all process colorants) or a n array of four\nfunctions (which apply to the process colorants individually). The name\nIdentity may be used to represent the identity function.')\
1015 .done().done()\
1016 .optional()\
1017 .field('TR2')\
1018 .name('TR2')\
1019 .type('function, array, or name')\
1020 .comment('(Optional; PDF 1.3) Same as TR except that the value may als o be the name\nDefault, denoting the transfer function that was in effect at the start of the\npage. If both TR and TR2 are present in the same graphics state p arameter dic-\ntionary, TR2 takes precedence.')\
1021 .done().done()\
1022 .optional()\
1023 .field('HT')\
1024 .name('HT')\
1025 .type('dictionary, stream, or name')\
1026 .comment('(Optional) The halftone dictionary or stream (see Section 6. 4, "Halftones")\nor the name Default, denoting the halftone that was in effect a t the start of the\npage.')\
1027 .done().done()\
1028 .optional()\
1029 .field('FL')\
1030 .name('FL')\
1031 .type('number')\
1032 .comment('(Optional; PDF 1.3) The flatness tolerance (see Section 6.5. 1, "Flatness Toler-\nance").')\
1033 .done().done()\
1034 .optional()\
1035 .field('SM')\
1036 .name('SM')\
1037 .type('number')\
1038 .comment('(Optional; PDF 1.3) The smoothness tolerance (see Section 6. 5.2, "Smooth-\nness Tolerance").')\
1039 .done().done()\
1040 .optional()\
1041 .field('SA')\
1042 .name('SA')\
1043 .type('boolean')\
1044 .comment('(Optional) A flag specifying whether to apply automatic stro ke adjustment\n(see Section 6.5.4, "Automatic Stroke Adjustment").')\
1045 .done().done()\
1046 .optional()\
1047 .field('BM')\
1048 .name('BM')\
1049 .type('name or array')\
1050 .comment('(Optional; PDF 1.4) The current blend mode to be used in the transparent\nimaging model (see Sections 7.2.4, "Blend Mode," and 7.5.2, "Speci fying\nBlending Color Space and Blend Mode").')\
1051 .done().done()\
1052 .optional()\
1053 .field('SMask')\
1054 .name('SMask')\
1055 .type('dictionary or name')\
1056 .comment('(Optional; PDF 1.4) The current soft mask, specifying the ma sk shape or\nmask opacity values to be used in the transparent imaging model (se e\n"Source Shape and Opacity" on page 421 and "Mask Shape and Opacity" on\npage 443).\nNote: Although the current soft mask is sometimes referred to as a "soft clip,"\naltering it with the gs operator completely replaces the old value with the new\none, rather than intersecting the two as is done with the current clipp ing path\nparameter (see Section 4.4.3, "Clipping Path Operators").')\
1057 .done().done()\
1058 .optional()\
1059 .field('CA')\
1060 .name('CA')\
1061 .type('number')\
1062 .comment('(Optional; PDF 1.4) The current stroking alpha constant, spe cifying the con-\nstant shape or constant opacity value to be used for stroking operations in the\ntransparent imaging model (see "Source Shape and Opacity" on page 421\nand "Constant Shape and Opacity" on page 444).')\
1063 .done().done()\
1064 .optional()\
1065 .field('ca')\
1066 .name('ca')\
1067 .type('number')\
1068 .comment('(Optional; PDF 1.4) Same as CA, but for nonstroking operatio ns.')\
1069 .done().done()\
1070 .optional()\
1071 .field('AIS')\
1072 .name('AIS')\
1073 .type('boolean')\
1074 .comment('(Optional; PDF 1.4) The alpha source flag ("alpha is shape") , specifying\nwhether the current soft mask and alpha constant are to be interpr eted as\nshape values (true) or opacity values (false).')\
1075 .done().done()\
1076 .optional()\
1077 .field('TK')\
1078 .name('TK')\
1079 .type('boolean')\
1080 .comment('(Optional; PDF 1.4) The text knockout flag, which determines the behavior\nof overlapping glyphs within a text object in the transparent ima ging model\n(see Section 5.2.7, "Text Knockout").')\
1081 .done().done()\
1082 .done()
1083
919 pdfspec.addClass('CalgrayColorSpaceDictionary', 'Dictionary', 'Entries in a Ca lGray color space dictionary')\ 1084 pdfspec.addClass('CalgrayColorSpaceDictionary', 'Dictionary', 'Entries in a Ca lGray color space dictionary')\
920 .required('NULL')\ 1085 .required('NULL')\
921 .field('WhitePoint')\ 1086 .field('WhitePoint')\
922 .name('WhitePoint')\ 1087 .name('WhitePoint')\
923 .type('array')\ 1088 .type('array')\
924 .comment('(Required) An array of three numbers [XW YW ZW ] specifying the tri-\nstimulus value, in the CIE 1931 XYZ space, of the diffuse white point; see\n"CalRGB Color Spaces," below, for further discussion. The numbers XW and\n ZW must be positive, and YW must be equal to 1.0.')\ 1089 .comment('(Required) An array of three numbers [XW YW ZW ] specifying the tri-\nstimulus value, in the CIE 1931 XYZ space, of the diffuse white point; see\n"CalRGB Color Spaces," below, for further discussion. The numbers XW and\n ZW must be positive, and YW must be equal to 1.0.')\
925 .done().done()\ 1090 .done().done()\
926 .optional()\ 1091 .optional()\
927 .field('BlackPoint')\ 1092 .field('BlackPoint')\
928 .name('BlackPoint')\ 1093 .name('BlackPoint')\
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after
1428 .name('FormType')\ 1593 .name('FormType')\
1429 .type('integer')\ 1594 .type('integer')\
1430 .comment('(Optional) A code identifying the type of form XObject that this dictionary\ndescribes. The only valid value defined at the time of publicat ion is 1. Default\nvalue: 1.')\ 1595 .comment('(Optional) A code identifying the type of form XObject that this dictionary\ndescribes. The only valid value defined at the time of publicat ion is 1. Default\nvalue: 1.')\
1431 .done().done()\ 1596 .done().done()\
1432 .optional()\ 1597 .optional()\
1433 .field('Name')\ 1598 .field('Name')\
1434 .name('Name')\ 1599 .name('Name')\
1435 .type('name')\ 1600 .type('name')\
1436 .comment('(Required in PDF 1.0; optional otherwise) The name by which this form\nXObject is referenced in the XObject subdictionary of the current res ource\ndictionary (see Section 3.7.2, "Resource Dictionaries").\nNote: This entr y is obsolescent and its use is no longer recommended. (See\nimplementation note 38 in Appendix H.)')\ 1601 .comment('(Required in PDF 1.0; optional otherwise) The name by which this form\nXObject is referenced in the XObject subdictionary of the current res ource\ndictionary (see Section 3.7.2, "Resource Dictionaries").\nNote: This entr y is obsolescent and its use is no longer recommended. (See\nimplementation note 38 in Appendix H.)')\
1437 .done().done()\ 1602 .done().done()\
1438 .optional()\
1439 .field('LastModified')\
1440 .name('LastModified')\
1441 .type('date')\
1442 .comment('(Required if PieceInfo is present; optional otherwise; PDF 1 .3) The date and\ntime (see Section 3.8.2, "Dates") when the form XObject\'s con tents were\nmost recently modified. If a page-piece dictionary (PieceInfo) is pr esent, the\nmodification date is used to ascertain which of the application data diction-\naries it contains correspond to the current content of the form (see Section\n9.4, "Page-Piece Dictionaries").')\
1443 .done().done()\
1444 .required('NULL')\
1445 .field('BBox')\
1446 .name('BBox')\
1447 .type('rectangle')\
1448 .comment('(Required) An array of four numbers in the form coordinate s ystem (see\nbelow), giving the coordinates of the left, bottom, right, and top e dges,\nrespectively, of the form XObject\'s bounding box. These boundaries are u sed\nto clip the form XObject and to determine its size for caching.')\
1449 .done().done()\
1450 .optional()\
1451 .field('Matrix')\
1452 .name('Matrix')\
1453 .type('array')\
1454 .comment('(Optional) An array of six numbers specifying the form matri x, which maps\nform space into user space (see Section 4.2.3, "Transformation Ma trices").\nDefault value: the identity matrix [1 0 0 1 0 0].')\
1455 .done().done()\
1456 .optional()\
1457 .field('Resources')\
1458 .name('Resources')\
1459 .type('dictionary')\
1460 .comment('(Optional but strongly recommended; PDF 1.2) A dictionary sp ecifying any\nresources (such as fonts and images) required by the form XObject (see Sec-\ntion 3.7, "Content Streams and Resources").\nIn PDF 1.1 and earlier, all named resources used in the form XObject must be\nincluded in the resource d ictionary of each page object on which the form\nXObject appears, whether or not they also appear in the resource dictionary\nof the form XObject itself. It can be useful to specify these resources in the\nform XObject\'s own resource dicti onary as well, in order to determine which\nresources are used inside the form X Object. If a resource is included in both\ndictionaries, it should have the same name in both locations.')\
1461 .done().done()\
1462 .done() 1603 .done()
1463 1604
1464 pdfspec.addClass('GroupAttributesDictionary', 'Dictionary', 'Entries common to all group attributes dictionaries')\ 1605 pdfspec.addClass('GroupAttributesDictionary', 'Dictionary', 'Entries common to all group attributes dictionaries')\
1465 .optional()\ 1606 .optional()\
1466 .field('Type')\ 1607 .field('Type')\
1467 .name('Type')\ 1608 .name('Type')\
1468 .type('name')\ 1609 .type('name')\
1469 .comment('(Optional) The type of PDF object that this dictionary descr ibes; if present, must\nbe Group for a group attributes dictionary.')\ 1610 .comment('(Optional) The type of PDF object that this dictionary descr ibes; if present, must\nbe Group for a group attributes dictionary.')\
1470 .done().done()\ 1611 .done().done()\
1471 .required('NULL')\ 1612 .required('NULL')\
(...skipping 1121 matching lines...) Expand 10 before | Expand all | Expand 10 after
2593 .optional()\ 2734 .optional()\
2594 .field('BS')\ 2735 .field('BS')\
2595 .name('BS')\ 2736 .name('BS')\
2596 .type('dictionary')\ 2737 .type('dictionary')\
2597 .comment('(Optional; PDF 1.2) A border style dictionary specifying the characteristics of\nthe annotation\'s border (see Section 8.4.3, "Border Styles "; see also imple-\nmentation note 60 in Appendix H).\nNote: This entry also spe cifies the width and dash pattern for the lines drawn by\nline, square, circle, and ink annotations. See the note under Border (below) for\nadditional informati on.')\ 2738 .comment('(Optional; PDF 1.2) A border style dictionary specifying the characteristics of\nthe annotation\'s border (see Section 8.4.3, "Border Styles "; see also imple-\nmentation note 60 in Appendix H).\nNote: This entry also spe cifies the width and dash pattern for the lines drawn by\nline, square, circle, and ink annotations. See the note under Border (below) for\nadditional informati on.')\
2598 .done().done()\ 2739 .done().done()\
2599 .optional()\ 2740 .optional()\
2600 .field('Border')\ 2741 .field('Border')\
2601 .name('Border')\ 2742 .name('Border')\
2602 .type('array')\ 2743 .type('array')\
2603 .comment('(Optional) An array specifying the characteristics of the an notation\'s border.\nThe border is specified as a "rounded rectangle."\nIn PDF 1 .0, the array consists of three numbers defining the horizontal cor-\nner radius , vertical corner radius, and border width, all in default user space\nunits. If the corner radii are 0, the border has square (not rounded) corners;\nif the bo rder width is 0, no border is drawn. (See implementation note 61 in\nAppendix H. )')\ 2744 .comment('(Optional) An array specifying the characteristics of the an notation\'s border.\nThe border is specified as a "rounded rectangle."\nIn PDF 1 .0, the array consists of three numbers defining the horizontal cor-\nner radius , vertical corner radius, and border width, all in default user space\nunits. If the corner radii are 0, the border has square (not rounded) corners;\nif the bo rder width is 0, no border is drawn. (See implementation note 61 in\nAppendix H. )\n In PDF 1.1, the array may have a fourth element, an optional dash array\n defining a pattern of dashes and gaps to be used in drawing the border. The\n d ash array is specified in the same format as in the line dash pattern parame-\n ter of the graphics state (see "Line Dash Pattern" on page 155). For example,\n a Border value of [0 0 1 [3 2]] specifies a border 1 unit wide, with square\n corners, drawn with 3-unit dashes alternating with 2-unit gaps. Note that no\n dash phase is specified; the phase is assumed to be 0. (See implementation\n n ote 62 in Appendix H.)\n Note: In PDF 1.2 or later, annotations may ignore this entry and use the BS\n entry (see above) to specify their border styles instea d. In PDF 1.2 and 1.3, only\n widget annotations do so; in PDF 1.4, all of the standard annotation types ex-\n cept Link (see Table 8.14 on page 499) use BS r ather than Border if both are\n present. For backward compatibility, however, B order is still supported for all\n annotation types.\n Default value: [0 0 1]. ')\
2745 .done().done()\
2746 .optional()\
2747 .field('AP')\
2748 .name('AP')\
2749 .type('dictionary')\
2750 .comment('(Optional; PDF 1.2) An appearance dictionary specifying how the annotation\nis presented visually on the page (see Section 8.4.4, "Appearanc e Streams";\nsee also implementation note 60 in Appendix H).')\
2751 .done().done()\
2752 .optional()\
2753 .field('AS')\
2754 .name('AS')\
2755 .type('name')\
2756 .comment('(Required if the appearance dictionary AP contains one or mo re subdictionaries;\nPDF 1.2) The annotation\'s appearance state, which selects the applicable\nappearance stream from an appearance subdictionary (see Section 8.4.4,\n"Appearance Streams"; see also implementation note 60 in Appendix H).')\
2757 .done().done()\
2758 .optional()\
2759 .field('C')\
2760 .name('C')\
2761 .type('array')\
2762 .comment('(Optional; PDF 1.1) An array of three numbers in the range 0 .0 to 1.0, repre-\nsenting the components of a color in the DeviceRGB color spac e. This color\nwill be used for the following purposes:\n* The background of th e annotation\'s icon when closed\n* The title bar of the annotation\'s pop-up w indow\n* The border of a link annotation')\
2763 .done().done()\
2764 .optional()\
2765 .field('CA')\
2766 .name('CA')\
2767 .type('number')\
2768 .comment('(Optional; PDF 1.4) The constant opacity value to be used in painting the\nannotation (see Sections 7.1, "Overview of Transparency," and 7.2 .6, "Shape\nand Opacity Computations"). This value applies to all visible elemen ts of\nthe annotation in its closed state (including its background and border), but\nnot to the pop-up window that appears when the annotation is opened. The\n specified value is used as the initial alpha constant (both stroking and non-\ns troking) for interpreting the annotation\'s appearance stream, if any (see\nSect ion 8.4.4, "Appearance Streams," and "Constant Shape and Opacity" on\npage 444). The implicit blend mode (see Section 7.2.4, "Blend Mode") is\nNormal. Default v alue: 1.0.\n Note: If no explicit appearance stream is defined for the annotation, it will be\n painted by implementation-depe ndent means that do not necessarily conform to\n the Adobe imag ing model; in this case, the effect of this entry is implementation-\n dependent as well.\n Note: This entry is recognized by all of the standard annotation types listed in\n Table 8.14 on page 499 except Link, Movie, Widget, PrinterMark, and TrapNet.')\
2769 .done().done()\
2770 .optional()\
2771 .field('T')\
2772 .name('T')\
2773 .type('text string')\
2774 .comment('(Optional; PDF 1.1) The text label to be displayed in the ti tle bar of the anno-\ntation\'s pop-up window when open and active.')\
2775 .done().done()\
2776 .optional()\
2777 .field('Popup')\
2778 .name('Popup')\
2779 .type('dictionary')\
2780 .comment('(Optional; PDF 1.3) An indirect reference to a pop-up annota tion for enter-\ning or editing the text associated with this annotation.')\
2781 .done().done()\
2782 .optional()\
2783 .field('A')\
2784 .name('A')\
2785 .type('dictionary')\
2786 .comment('(Optional; PDF 1.1) An action to be performed when the annot ation is acti-\nvated (see Section 8.5, "Actions").\nNote: This entry is not per mitted in link annotations if a Dest entry is present\n(see "Link Annotations" o n page 501). Also note that the A entry in movie anno-\ntations has a different meaning (see "Movie Annotations" on page 510).')\
2787 .done().done()\
2788 .optional()\
2789 .field('AA')\
2790 .name('AA')\
2791 .type('dictionary')\
2792 .comment('(Optional; PDF 1.2) An additional-actions dictionary definin g the anno-\ntation\'s behavior in response to various trigger events (see Secti on 8.5.2,\n"Trigger Events"). At the time of publication, this entry is used onl y by wid-\nget annotations.')\
2793 .done().done()\
2794 .optional()\
2795 .field('StructParent')\
2796 .name('StructParent')\
2797 .type('integer')\
2798 .comment('(Required if the annotation is a structural content item; PD F 1.3) The integer\nkey of the annotation\'s entry in the structural parent tree (see "Finding Struc-\nture Elements from Content Items" on page 600).')\
2604 .done().done()\ 2799 .done().done()\
2605 .done() 2800 .done()
2606 2801
2607 pdfspec.addClass('BorderStyleDictionary', 'Dictionary', 'Entries in a border s tyle dictionary')\ 2802 pdfspec.addClass('BorderStyleDictionary', 'Dictionary', 'Entries in a border s tyle dictionary')\
2608 .optional()\ 2803 .optional()\
2609 .field('Type')\ 2804 .field('Type')\
2610 .name('Type')\ 2805 .name('Type')\
2611 .type('name')\ 2806 .type('name')\
2612 .comment('(Optional) The type of PDF object that this dictionary descr ibes; if present, must be\nBorder for a border style dictionary.')\ 2807 .comment('(Optional) The type of PDF object that this dictionary descr ibes; if present, must be\nBorder for a border style dictionary.')\
2613 .done().done()\ 2808 .done().done()\
(...skipping 2483 matching lines...) Expand 10 before | Expand all | Expand 10 after
5097 pdfspec.addClass('OpiVersionDictionary', 'Dictionary', 'Entry in an OPI versio n dictionary')\ 5292 pdfspec.addClass('OpiVersionDictionary', 'Dictionary', 'Entry in an OPI versio n dictionary')\
5098 .required('NULL')\ 5293 .required('NULL')\
5099 .field('version_number')\ 5294 .field('version_number')\
5100 .name('version_number')\ 5295 .name('version_number')\
5101 .type('dictionary')\ 5296 .type('dictionary')\
5102 .comment('(Required; PDF 1.2) An OPI dictionary specifying the attribu tes of this proxy\n(see Tables 9.50 and 9.51). The key for this entry must be th e name 1.3 or 2.0,\nidentifying the version of OPI to which the proxy correspond s.')\ 5297 .comment('(Required; PDF 1.2) An OPI dictionary specifying the attribu tes of this proxy\n(see Tables 9.50 and 9.51). The key for this entry must be th e name 1.3 or 2.0,\nidentifying the version of OPI to which the proxy correspond s.')\
5103 .done().done()\ 5298 .done().done()\
5104 .done() 5299 .done()
5105 5300
5106 5301
OLDNEW
« no previous file with comments | « experimental/PdfViewer/pdf_viewer_main.cpp ('k') | experimental/PdfViewer/spec2def.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698