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

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

Issue 17124003: fix typo in spec (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_auto_gen.h ('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 1582 matching lines...) Expand 10 before | Expand all | Expand 10 after
1593 .name('FormType')\ 1593 .name('FormType')\
1594 .type('integer')\ 1594 .type('integer')\
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.')\ 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.')\
1596 .done().done()\ 1596 .done().done()\
1597 .optional()\ 1597 .optional()\
1598 .field('Name')\ 1598 .field('Name')\
1599 .name('Name')\ 1599 .name('Name')\
1600 .type('name')\ 1600 .type('name')\
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.)')\ 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.)')\
1602 .done().done()\ 1602 .done().done()\
1603 .optional()\
1604 .field('LastModified')\
1605 .name('LastModified')\
1606 .type('date')\
1607 .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").')\
1608 .done().done()\
1609 .required('NULL')\
1610 .field('BBox')\
1611 .name('BBox')\
1612 .type('rectangle')\
1613 .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.')\
1614 .done().done()\
1615 .optional()\
1616 .field('Matrix')\
1617 .name('Matrix')\
1618 .type('array')\
1619 .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].')\
1620 .done().done()\
1621 .optional()\
1622 .field('Resources')\
1623 .name('Resources')\
1624 .type('dictionary')\
1625 .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.\n In PDF 1.2 and later versions, form XObjects can be independent of the\n content streams in which they appear, and this is st rongly recommended\n although not required. In an independent form XObject, the resource dic-\n tionary of the form XObject is required and contains all named resources\n used by the form XObject. These resources are not "promot ed" to the outer\n content stream\'s resource dictionary, although that stre am\'s resource diction-\n ary will refer to the form XObject itself.')\
1626 .done().done()\
1627 .optional()\
1628 .field('Group')\
1629 .name('Group')\
1630 .type('dictionary')\
1631 .comment('(Optional; PDF 1.4) A group attributes dictionary indicating that the contents\nof the form XObject are to be treated as a group and specify ing the attributes\nof that group (see Section 4.9.2, "Group XObjects").\nNote: If a Ref entry (see below) is present, the group attributes also apply to the\ne xternal page imported by that entry. This allows such an imported page to be\ntr eated as a group without further modification.')\
1632 .done().done()\
1633 .optional()\
1634 .field('Ref')\
1635 .name('Ref')\
1636 .type('dictionary')\
1637 .comment('(Optional; PDF 1.4) A reference dictionary identifying a pag e to be imported\nfrom another PDF file, and for which the form XObject serves a s a proxy (see\nSection 4.9.3, "Reference XObjects").')\
1638 .done().done()\
1639 .optional()\
1640 .field('Metadata')\
1641 .name('Metadata')\
1642 .type('stream')\
1643 .comment('(Optional; PDF 1.4) A metadata stream containing metadata fo r the form\nXObject (see Section 9.2.2, "Metadata Streams").')\
1644 .done().done()\
1645 .optional()\
1646 .field('PieceInfo')\
1647 .name('PieceInfo')\
1648 .type('dictionary')\
1649 .comment('(Optional; PDF 1.3) A page-piece dictionary associated with the form\nXObject (see Section 9.4, "Page-Piece Dictionaries").')\
1650 .done().done()\
1651 .optional()\
1652 .field('StructParent')\
1653 .name('StructParent')\
1654 .type('integer')\
1655 .comment('(Required if the form XObject is a structural content item; PDF 1.3) The integer\nkey of the form XObject\'s entry in the structural parent tree (see "Finding\nStructure Elements from Content Items" on page 600).')\
1656 .done().done()\
1657 .optional()\
1658 .field('StructParents')\
1659 .name('StructParents')\
1660 .type('integer')\
1661 .comment('(Required if the form XObject contains marked-content sequen ces that are struc-\ntural content items; PDF 1.3) The integer key of the form X Object\'s entry in\nthe structural parent tree (see "Finding Structure Elements from Content\nItems" on page 600).\nNote: At most one of the entries StructParen t or StructParents may be present. A\nform XObject can be either a content item in its entirety or a container for\nmarked-content sequences that are content it ems, but not both.')\
1662 .done().done()\
1663 .optional()\
1664 .field('OPI')\
1665 .name('OPI')\
1666 .type('dictionary')\
1667 .comment('(Optional; PDF 1.2) An OPI version dictionary for the form X Object (see\nSection 9.10.6, "Open Prepress Interface (OPI)").')\
1668 .done().done()\
1603 .done() 1669 .done()
1604 1670
1605 pdfspec.addClass('GroupAttributesDictionary', 'Dictionary', 'Entries common to all group attributes dictionaries')\ 1671 pdfspec.addClass('GroupAttributesDictionary', 'Dictionary', 'Entries common to all group attributes dictionaries')\
1606 .optional()\ 1672 .optional()\
1607 .field('Type')\ 1673 .field('Type')\
1608 .name('Type')\ 1674 .name('Type')\
1609 .type('name')\ 1675 .type('name')\
1610 .comment('(Optional) The type of PDF object that this dictionary descr ibes; if present, must\nbe Group for a group attributes dictionary.')\ 1676 .comment('(Optional) The type of PDF object that this dictionary descr ibes; if present, must\nbe Group for a group attributes dictionary.')\
1611 .done().done()\ 1677 .done().done()\
1612 .required('NULL')\ 1678 .required('NULL')\
(...skipping 3679 matching lines...) Expand 10 before | Expand all | Expand 10 after
5292 pdfspec.addClass('OpiVersionDictionary', 'Dictionary', 'Entry in an OPI versio n dictionary')\ 5358 pdfspec.addClass('OpiVersionDictionary', 'Dictionary', 'Entry in an OPI versio n dictionary')\
5293 .required('NULL')\ 5359 .required('NULL')\
5294 .field('version_number')\ 5360 .field('version_number')\
5295 .name('version_number')\ 5361 .name('version_number')\
5296 .type('dictionary')\ 5362 .type('dictionary')\
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.')\ 5363 .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.')\
5298 .done().done()\ 5364 .done().done()\
5299 .done() 5365 .done()
5300 5366
5301 5367
OLDNEW
« no previous file with comments | « experimental/PdfViewer/pdf_auto_gen.h ('k') | experimental/PdfViewer/spec2def.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698