@@ -47,6 +47,8 @@ type PDDocument extends PDObject {
47
47
link pages: PDPage+;
48
48
% document level metadata
49
49
link metadata: PDMetadata?;
50
+ % true if the catalog dictionary contains the metadata
51
+ property containsMetadata: Boolean;
50
52
% Interactive Form Dictionary (AcroForm entry in the Catalog)
51
53
link AcroForm: PDAcroForm?;
52
54
% additional actions dictionary defined for the document (AA entry in the Catalog)
@@ -61,10 +63,14 @@ type PDDocument extends PDObject {
61
63
link OCProperties: PDOCProperties?;
62
64
% the link to the document structure tree root dictionary
63
65
link StructTreeRoot: PDStructTreeRoot?;
66
+ % true if the catalog dictionary contains the struct tree root
67
+ property containsStructTreeRoot: Boolean;
64
68
% true if the document contains alternate presentations (/AlternatePresentations entry in the document names dictionary)
65
69
property containsAlternatePresentations: Boolean;
66
70
% value of the Lang entry from the document catalog
67
71
link Lang: CosLang?;
72
+ % true if the catalog dictionary contains the lang
73
+ property containsLang: Boolean;
68
74
% link to the permissions object
69
75
link Perms: PDPerms?;
70
76
% true if the catalog dictionary contains the AA entry
@@ -92,6 +98,8 @@ type PDPage extends PDObject {
92
98
link contentStream: PDContentStream;
93
99
% all page annotations
94
100
link annots: PDAnnot*;
101
+ % true if the page dictionary contains annotations
102
+ property containsAnnotations: Boolean;
95
103
% link to the parent transparency blending space
96
104
link parentTransparencyColorSpace: TransparencyColorSpace?;
97
105
% group attributes dictionary
@@ -309,6 +317,8 @@ type PDFont extends PDResource {
309
317
property renderingMode: Integer;
310
318
% embedded font program for Type 1, TrueType or CID Font
311
319
link fontFile: FontProgram?;
320
+ % true if the font dictionary contains the font program
321
+ property containsFontFile: Boolean;
312
322
% value of the entry /Subtype in the embedded font file stream, or null, if the this entry is not present (or the font is not embedded)
313
323
property fontFileSubtype: String;
314
324
% value of Italic flag in Flags entry in the font descriptor
@@ -395,6 +405,8 @@ type PDCMap extends PDObject {
395
405
link UseCMap: PDReferencedCMap?;
396
406
% link to the embedded CMap file for a non-standard CMap
397
407
link embeddedFile: CMapFile?;
408
+ % true if the cmap dictionary contains the embedded CMap file
409
+ property containsEmbeddedFile: Boolean;
398
410
}
399
411
400
412
% CMap that is referenced with UseCMap in other CMap
@@ -546,6 +558,8 @@ type PDAnnot extends PDObject {
546
558
property F: Integer;
547
559
% ampersand-separated list of all keys in the annotation's appearance dictionary (AP key)
548
560
property AP: String;
561
+ % true if the annotation dictionary contains the appearances
562
+ property containsAppearances: Boolean;
549
563
% the value of the /FT entry (Field type), in case this is the widget annotation representing the form field, or null, if this entry is not present
550
564
property FT: String;
551
565
% the type of the normal appearance entry (/N key) in the annotation appearance dictionary (/AP key) or null, if the normal appearance is not present
@@ -576,6 +590,8 @@ type PDAnnot extends PDObject {
576
590
property structParentObjectKey: String;
577
591
% value of the Lang entry
578
592
link Lang: CosLang?;
593
+ % true if the annotation dictionary contains the lang
594
+ property containsLang: Boolean;
579
595
% the value of the /Contents entry
580
596
property Contents: String;
581
597
% the Alt entry of parent structure element
@@ -710,6 +726,8 @@ type PDFormField extends PDObject {
710
726
property containsAA: Boolean;
711
727
% value of the Lang entry
712
728
link Lang: CosLang?;
729
+ % true if the form field dictionary contains the lang
730
+ property containsLang: Boolean;
713
731
% value of the TU entry
714
732
property TU: String;
715
733
% value of the Ff entry
@@ -886,6 +904,8 @@ type PDStructElem extends PDStructTreeNode {
886
904
property standardType: String;
887
905
% value of the Lang entry
888
906
link Lang: CosLang?;
907
+ % true if the structure element dictionary contains the lang
908
+ property containsLang: Boolean;
889
909
% value of parent Lang entry
890
910
property parentLang: String;
891
911
% remapped standard type value
0 commit comments