Skip to content

Commit a9d9b26

Browse files
committed
Add new properties
1 parent 93b7726 commit a9d9b26

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
lines changed

src/main/java/PDLayer.mdl

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ type PDDocument extends PDObject {
4747
link pages: PDPage+;
4848
% document level metadata
4949
link metadata: PDMetadata?;
50+
% true if the catalog dictionary contains the metadata
51+
property containsMetadata: Boolean;
5052
% Interactive Form Dictionary (AcroForm entry in the Catalog)
5153
link AcroForm: PDAcroForm?;
5254
% additional actions dictionary defined for the document (AA entry in the Catalog)
@@ -61,10 +63,14 @@ type PDDocument extends PDObject {
6163
link OCProperties: PDOCProperties?;
6264
% the link to the document structure tree root dictionary
6365
link StructTreeRoot: PDStructTreeRoot?;
66+
% true if the catalog dictionary contains the struct tree root
67+
property containsStructTreeRoot: Boolean;
6468
% true if the document contains alternate presentations (/AlternatePresentations entry in the document names dictionary)
6569
property containsAlternatePresentations: Boolean;
6670
% value of the Lang entry from the document catalog
6771
link Lang: CosLang?;
72+
% true if the catalog dictionary contains the lang
73+
property containsLang: Boolean;
6874
% link to the permissions object
6975
link Perms: PDPerms?;
7076
% true if the catalog dictionary contains the AA entry
@@ -92,6 +98,8 @@ type PDPage extends PDObject {
9298
link contentStream: PDContentStream;
9399
% all page annotations
94100
link annots: PDAnnot*;
101+
% true if the page dictionary contains annotations
102+
property containsAnnotations: Boolean;
95103
% link to the parent transparency blending space
96104
link parentTransparencyColorSpace: TransparencyColorSpace?;
97105
% group attributes dictionary
@@ -309,6 +317,8 @@ type PDFont extends PDResource {
309317
property renderingMode: Integer;
310318
% embedded font program for Type 1, TrueType or CID Font
311319
link fontFile: FontProgram?;
320+
% true if the font dictionary contains the font program
321+
property containsFontFile: Boolean;
312322
% 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)
313323
property fontFileSubtype: String;
314324
% value of Italic flag in Flags entry in the font descriptor
@@ -395,6 +405,8 @@ type PDCMap extends PDObject {
395405
link UseCMap: PDReferencedCMap?;
396406
% link to the embedded CMap file for a non-standard CMap
397407
link embeddedFile: CMapFile?;
408+
% true if the cmap dictionary contains the embedded CMap file
409+
property containsEmbeddedFile: Boolean;
398410
}
399411

400412
% CMap that is referenced with UseCMap in other CMap
@@ -546,6 +558,8 @@ type PDAnnot extends PDObject {
546558
property F: Integer;
547559
% ampersand-separated list of all keys in the annotation's appearance dictionary (AP key)
548560
property AP: String;
561+
% true if the annotation dictionary contains the appearances
562+
property containsAppearances: Boolean;
549563
% 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
550564
property FT: String;
551565
% 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 {
576590
property structParentObjectKey: String;
577591
% value of the Lang entry
578592
link Lang: CosLang?;
593+
% true if the annotation dictionary contains the lang
594+
property containsLang: Boolean;
579595
% the value of the /Contents entry
580596
property Contents: String;
581597
% the Alt entry of parent structure element
@@ -710,6 +726,8 @@ type PDFormField extends PDObject {
710726
property containsAA: Boolean;
711727
% value of the Lang entry
712728
link Lang: CosLang?;
729+
% true if the form field dictionary contains the lang
730+
property containsLang: Boolean;
713731
% value of the TU entry
714732
property TU: String;
715733
% value of the Ff entry
@@ -886,6 +904,8 @@ type PDStructElem extends PDStructTreeNode {
886904
property standardType: String;
887905
% value of the Lang entry
888906
link Lang: CosLang?;
907+
% true if the structure element dictionary contains the lang
908+
property containsLang: Boolean;
889909
% value of parent Lang entry
890910
property parentLang: String;
891911
% remapped standard type value

src/main/java/XMPLayer.mdl

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,16 @@ type XMPPackage extends XMPObject {
3838
type MainXMPPackage extends XMPPackage {
3939

4040
% object representing PDF/A identification (set of properties from PDF/A Identification schema) of the document
41-
link Identification: PDFAIdentification;
41+
link PDFAIdentification: PDFAIdentification;
42+
43+
% true if xmp contains PDF/A identification
44+
property containsPDFAIdentification: Boolean;
4245

4346
% object representing PDF/UA identification (set of properties from PDF/UA Identification schema) of the document
44-
link UAIdentification: PDFUAIdentification;
47+
link PDFUAIdentification: PDFUAIdentification;
48+
49+
% true if xmp contains PDF/UA identification
50+
property containsPDFUAIdentification: Boolean;
4551

4652
% value of dc:title
4753
property dc_title: String;

0 commit comments

Comments
 (0)