pub struct OfdDocumentVo {
pub doc_path: String,
pub page_width: f64,
pub page_height: f64,
pub annotations: Vec<AnnotionEntity>,
}👎Deprecated since 1.0.0:
使用 OfdReader 直接解析替代
Expand description
OFD 文档视图对象,包含文档的基本信息和页面列表。
对应 Java: org.ofdrw.reader.model.OFDDocumentVo
废弃:Java 原始类标记为 @Deprecated。
Fields§
§doc_path: String👎Deprecated since 1.0.0:
使用 OfdReader 直接解析替代
文档路径。
page_width: f64👎Deprecated since 1.0.0:
使用 OfdReader 直接解析替代
页面宽度(毫米)。
page_height: f64👎Deprecated since 1.0.0:
使用 OfdReader 直接解析替代
页面高度(毫米)。
annotations: Vec<AnnotionEntity>👎Deprecated since 1.0.0:
使用 OfdReader 直接解析替代
注释列表。
Implementations§
Source§impl OfdDocumentVo
impl OfdDocumentVo
Sourcepub fn new(
doc_path: impl Into<String>,
page_width: f64,
page_height: f64,
annotations: Vec<AnnotionEntity>,
) -> Self
pub fn new( doc_path: impl Into<String>, page_width: f64, page_height: f64, annotations: Vec<AnnotionEntity>, ) -> Self
创建新的文档视图对象。
Sourcepub fn annotations(&self) -> &[AnnotionEntity]
pub fn annotations(&self) -> &[AnnotionEntity]
获取注释列表。
Trait Implementations§
Source§impl Clone for OfdDocumentVo
impl Clone for OfdDocumentVo
Source§fn clone(&self) -> OfdDocumentVo
fn clone(&self) -> OfdDocumentVo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for OfdDocumentVo
impl RefUnwindSafe for OfdDocumentVo
impl Send for OfdDocumentVo
impl Sync for OfdDocumentVo
impl Unpin for OfdDocumentVo
impl UnsafeUnpin for OfdDocumentVo
impl UnwindSafe for OfdDocumentVo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more