From 6c5c86af9dcc3963e8a1c9864096d44e192dbd2d Mon Sep 17 00:00:00 2001 From: chenjie Date: Tue, 10 Dec 2024 18:47:08 +0800 Subject: [PATCH] Fix annot rect missing issue --- pdf/src/object/types.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pdf/src/object/types.rs b/pdf/src/object/types.rs index 7bcd369..f04b7ea 100644 --- a/pdf/src/object/types.rs +++ b/pdf/src/object/types.rs @@ -952,7 +952,7 @@ pub struct Annot { pub subtype: Name, #[pdf(key="Rect")] - pub rect: Rectangle, + pub rect: Option, #[pdf(key="Contents")] pub contents: Option, @@ -982,7 +982,7 @@ pub struct Annot { pub color: Option, #[pdf(key="InkList")] - pub inkList: Option, + pub ink_list: Option, #[pdf(other)] pub other: Dictionary,