Bind native last-link numbers to shipped PDF annotations

This commit is contained in:
gloamxun committed 2026-11-21 02:31:43 +08:00
1 parent 7f74251c8a
commit 60d7411dfe
12 files changed
+227 -19

No files matched your search

@@ -9,6 +9,8 @@ pub enum LinkAction {
#[derive(Clone, Debug, PartialEq, Eq, Hash, serde::Serialize, serde::Deserialize)]
pub struct LinkStart {
#[serde(default, skip_serializing_if = "Option::is_none")]
pub object_number: Option<u32>,
pub width: Option<i32>,
pub height: Option<i32>,
pub depth: Option<i32>,
@@ -53,6 +55,8 @@ pub enum AnnotationAction {
#[derive(Clone, Debug, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct LinkAnnotation {
#[serde(default, skip_serializing_if = "Option::is_none")]
pub object_number: Option<u32>,
/// Left, top, right and bottom in TeX sp, with y measured down the page.
pub rect: [i64; 4],
pub attributes: String,