Skip to content

Commit 6c5c86a

Browse files
chenjies3bk
chenjie
authored andcommitted
Fix annot rect missing issue
1 parent 1cdc10d commit 6c5c86a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pdf/src/object/types.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,7 @@ pub struct Annot {
952952
pub subtype: Name,
953953

954954
#[pdf(key="Rect")]
955-
pub rect: Rectangle,
955+
pub rect: Option<Rectangle>,
956956

957957
#[pdf(key="Contents")]
958958
pub contents: Option<PdfString>,
@@ -982,7 +982,7 @@ pub struct Annot {
982982
pub color: Option<Primitive>,
983983

984984
#[pdf(key="InkList")]
985-
pub inkList: Option<Primitive>,
985+
pub ink_list: Option<Primitive>,
986986

987987
#[pdf(other)]
988988
pub other: Dictionary,

0 commit comments

Comments
 (0)