micropdf 0.15.15

A pure Rust PDF library - A pure Rust PDF library with fz_/pdf_ API compatibility
1
2
3
4
5
6
7
8
//! Document trait
use crate::fitz::error::Result;
use crate::fitz::page::Page;

pub trait Document {
    fn page_count(&self) -> i32;
    fn load_page(&self, page_num: i32) -> Result<Box<dyn Page + '_>>;
}