Write native PDF catalogs and open actions
This commit is contained in:
1 parent
a53d9c9bf9
commit
f4b003bd27
20 files changed
+811
-40
No files matched your search
@@ -27,12 +27,20 @@ pub enum DestinationView {
|
||||
FitBV,
|
||||
}
|
||||
|
||||
#[derive(
|
||||
Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, serde::Serialize, serde::Deserialize,
|
||||
)]
|
||||
pub enum DestinationId<T> {
|
||||
Name(T),
|
||||
Number(i32),
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Eq, Hash, serde::Serialize, serde::Deserialize)]
|
||||
pub enum LinkNode {
|
||||
Start(LinkStart),
|
||||
End,
|
||||
Destination {
|
||||
name: Vec<Token>,
|
||||
destination: DestinationId<Vec<Token>>,
|
||||
view: DestinationView,
|
||||
},
|
||||
}
|
||||
@@ -53,7 +61,7 @@ pub struct LinkAnnotation {
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
|
||||
pub struct PageDestination {
|
||||
pub name: String,
|
||||
pub destination: DestinationId<String>,
|
||||
pub point: [i64; 2],
|
||||
pub view: DestinationView,
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user