Skip to content

Commit

Permalink
DOC: Minor comment changes (#2987)
Browse files Browse the repository at this point in the history
  • Loading branch information
j-t-1 authored Dec 4, 2024
1 parent 01e7c5d commit 1e1a140
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions pypdf/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,6 @@ def all(cls) -> "UserAccessPermissions":
class Resources:
"""
Table 3.30 Entries in a resource dictionary.
Used to be Ressources (a misspelling).
Table 34 in the 2.0 reference.
"""

Expand Down Expand Up @@ -161,7 +159,6 @@ class PagesAttributes:
TYPE = "/Type" # name, required; must be /Pages
PARENT = "/Parent" # dictionary, required; indirect reference to pages object
KIDS = "/Kids" # array, required; List of indirect references

COUNT = "/Count"
# integer, required; the number of leaf nodes (page objects)
# that are descendants of this node within the page tree
Expand Down Expand Up @@ -212,14 +209,14 @@ class FileSpecificationDictionaryEntries:

Type = "/Type"
FS = "/FS" # The name of the file system to be used to interpret this file specification
F = "/F" # A file specification string of the form described in Section 3.10.1
UF = "/UF" # A unicode string of the file as described in Section 3.10.1
F = "/F" # A file specification string of the form described in §3.10.1
UF = "/UF" # A Unicode string of the file as described in §3.10.1
DOS = "/DOS"
Mac = "/Mac"
Unix = "/Unix"
ID = "/ID"
V = "/V"
EF = "/EF" # dictionary, containing a subset of the keys F , UF , DOS , Mac , and Unix
EF = "/EF" # dictionary, containing a subset of the keys F, UF, DOS, Mac, and Unix
RF = "/RF" # dictionary, containing arrays of /EmbeddedFile
DESC = "/Desc" # description of the file
Cl = "/Cl"
Expand Down Expand Up @@ -391,16 +388,16 @@ class FieldDictionaryAttributes:
V = "/V" # text string or array, optional
DV = "/DV" # text string, optional
AA = "/AA" # dictionary, optional
Opt = "/Opt"
Opt = "/Opt" # array, optional

class FfBits(IntFlag):
"""
Ease building /Ff flags
Some entries may be specific to:
* Text(Tx) (Table 8.75 PDF 1.7 reference)
* Buttons(Btn) (Table 8.77 PDF 1.7 reference)
* List(Ch) (Table 8.79 PDF 1.7 reference)
* Text (Tx) (Table 8.75 PDF 1.7 reference)
* Buttons (Btn) (Table 8.77 PDF 1.7 reference)
* Choice (Ch) (Table 8.79 PDF 1.7 reference)
"""

ReadOnly = 1 << 0
Expand Down

0 comments on commit 1e1a140

Please sign in to comment.