Skip to content

Commit

Permalink
Some PDF 2.0 corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
dwarring committed Sep 29, 2024
1 parent 909eb3b commit 36e70f8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Changes
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

0.5.21 2024-09-07T04:55:34+12:00
- Fix flapping test in t/update.t
- Add PDF::Bread /Metadata entry (PDF 2.0)
- Add PDF::Bead /Metadata entry (PDF 2.0)
- Fix PDF::Action::SubmitForm /Fields coercement

0.5.20 2024-07-31T15:47:07+12:00
Expand Down
2 changes: 1 addition & 1 deletion lib/PDF/Attributes/List.rakumod
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ also does ISO_32000_2::Table_382-Standard_list_attributes;
use PDF::COS::Tie;
use PDF::COS::Name;

my subset Numbering of PDF::COS::Name where 'None'|'Disc'|'Circle'|'Square'|'Decimal'|'UpperRoman'|'LowerRoman'|'UpperAlpha'|'LowerAlpha';
my subset Numbering of PDF::COS::Name where 'None'|'Unordered'|'Description'|'Disc'|'Circle'|'Square'|'Decimal'|'UpperRoman'|'LowerRoman'|'UpperAlpha'|'LowerAlpha';

has Numbering $.ListNumbering is entry(:default<None>); # (Optional; inheritable) The numbering system used to generate the content of the Lbl (Label) elements in an autonumbered list, or the symbol used to identify each item in an unnumbered list. The value of the ListNumbering is one of the following, and is applied as described here.
# None No autonumbering; Lbl elements (if present) contain arbitrary text not subject to any numbering scheme
Expand Down
2 changes: 1 addition & 1 deletion lib/PDF/Namespace.rakumod
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use PDF::COS::TextString;

use PDF::Filespec :FileRef;

has PDF::COS::Name $.Type is entry where 'Namespace';
has PDF::COS::Name $.Type is entry where 'Namespace'; # Optional; PDF 2.0) The type of PDF object that this dictionary describes. If present, shall be Namespace.

has PDF::COS::TextString $.NS is entry(:required); # (Required; PDF 2.0) The string defining the namespace name which this entry identifies (conventionally a uniform resource identifier, or URI).

Expand Down
2 changes: 1 addition & 1 deletion lib/PDF/StructElem.rakumod
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ has PDF::COS::TextString $.ActualText is entry; # (Optional; PDF 1

has PDF::Filespec @.AF is entry; # (Optional; PDF 2.0) An array of one or more file specification dictionaries (7.11.3, "File specification dictionaries") which denote the associated files for the entire structure tree.

has PDF::Namespace @.NS is entry(:indirect, :alias<namespace>); # Optional; PDF 2.0) An indirect reference to a namespace dictionary defining the namespace this element belongs to
has PDF::Namespace $.NS is entry(:indirect, :alias<namespace>); # Optional; PDF 2.0) An indirect reference to a namespace dictionary defining the namespace this element belongs to

my subset PhoneticAlphabet of PDF::COS::Name where 'ipa'|'x-sampa'|'zh-Latn-pinyin'|'zh-Latn-wadegile';
has PhoneticAlphabet $.PhoneticAlphabet is entry; # (Optional; PDF 2.0) Property for a structure element that indicates the phonetic alphabet used by a Phoneme property. Applies to the structure element and its children, except where overridden by a child structure element.
Expand Down

0 comments on commit 36e70f8

Please sign in to comment.