David PHAM-VAN

Fix Signature Flags

@@ -11,6 +11,7 @@ @@ -11,6 +11,7 @@
11 - Add PdfColor.flatten 11 - Add PdfColor.flatten
12 - Add A6 page format 12 - Add A6 page format
13 - Apply Flutter 2.2 format 13 - Apply Flutter 2.2 format
  14 +- Fix Signature Flags
14 15
15 ## 3.3.0 16 ## 3.3.0
16 17
@@ -69,7 +69,7 @@ class PdfSignature extends PdfObjectDict { @@ -69,7 +69,7 @@ class PdfSignature extends PdfObjectDict {
69 int get flagsValue => flags.isEmpty 69 int get flagsValue => flags.isEmpty
70 ? 0 70 ? 0
71 : flags 71 : flags
72 - .map<int>((PdfSigFlags e) => 1 >> e.index) 72 + .map<int>((PdfSigFlags e) => 1 << e.index)
73 .reduce((int a, int b) => a | b); 73 .reduce((int a, int b) => a | b);
74 74
75 final crl = <PdfObjectStream>[]; 75 final crl = <PdfObjectStream>[];