David PHAM-VAN

Fix PdfOutlineMode enum

@@ -7,6 +7,7 @@ @@ -7,6 +7,7 @@
7 - Add document outline support 7 - Add document outline support
8 - Update analysis options 8 - Update analysis options
9 - Fix the line cap and joint enums 9 - Fix the line cap and joint enums
  10 +- Fix PdfOutlineMode enum
10 11
11 ## 1.12.0 12 ## 1.12.0
12 13
@@ -18,10 +18,10 @@ part of pdf; @@ -18,10 +18,10 @@ part of pdf;
18 18
19 enum PdfOutlineMode { 19 enum PdfOutlineMode {
20 /// When jumping to the destination, display the whole page 20 /// When jumping to the destination, display the whole page
21 - fitpage, 21 + fitPage,
22 22
23 /// When jumping to the destination, display the specified region 23 /// When jumping to the destination, display the specified region
24 - fitrect 24 + fitRect
25 } 25 }
26 26
27 enum PdfOutlineStyle { 27 enum PdfOutlineStyle {
@@ -48,7 +48,7 @@ class PdfOutline extends PdfObject { @@ -48,7 +48,7 @@ class PdfOutline extends PdfObject {
48 this.rect, 48 this.rect,
49 this.anchor, 49 this.anchor,
50 this.color, 50 this.color,
51 - this.destMode = PdfOutlineMode.fitpage, 51 + this.destMode = PdfOutlineMode.fitPage,
52 this.style = PdfOutlineStyle.normal, 52 this.style = PdfOutlineStyle.normal,
53 }) : assert(anchor == null || (dest == null && rect == null)), 53 }) : assert(anchor == null || (dest == null && rect == null)),
54 assert(destMode != null), 54 assert(destMode != null),
@@ -114,7 +114,7 @@ class PdfOutline extends PdfObject { @@ -114,7 +114,7 @@ class PdfOutline extends PdfObject {
114 final dests = PdfArray(); 114 final dests = PdfArray();
115 dests.add(dest.ref()); 115 dests.add(dest.ref());
116 116
117 - if (destMode == PdfOutlineMode.fitpage) { 117 + if (destMode == PdfOutlineMode.fitPage) {
118 dests.add(const PdfName('/Fit')); 118 dests.add(const PdfName('/Fit'));
119 } else { 119 } else {
120 dests.add(const PdfName('/FitR')); 120 dests.add(const PdfName('/FitR'));