Skip to main content

Crate easypdf_core

Crate easypdf_core 

Source
Expand description

easypdf-rust 的核心类型、trait、枚举、转换器与错误定义。

Re-exports§

pub use content::PdfImage;
pub use content::PdfLine;
pub use content::PdfRect;
pub use content::PdfTable;
pub use content::PdfTableCell;
pub use content::PdfText;
pub use enums::Orientation;
pub use enums::PageSize;
pub use enums::Rotation;
pub use enums::TextAlignment;
pub use enums::VerticalAlignment;
pub use error::PdfError;
pub use error::PdfErrorCode;
pub use error::Result;
pub use event::PdfReadListener;
pub use logging::init_logging;
pub use logging::init_logging_json;
pub use metadata::PdfBookmark;
pub use metadata::PdfMetadata;
pub use page_index::PageIndex;
pub use page_number::PageNumber;
pub use page_range::PageRange;
pub use style::BuiltInFont;
pub use style::FontFamily;
pub use style::FontStyle;
pub use style::PdfColor;
pub use style::PdfFont;
pub use style::TableBorder;
pub use style::TableStyle;
pub use traits::CapabilityLevel;
pub use traits::DetailedEngineCapabilities;
pub use traits::EngineCapabilities;
pub use traits::PdfConverter;
pub use traits::PdfEngine;
pub use traits::PdfFieldDescriptor;
pub use traits::PdfModel;
pub use traits::PdfModelMetadata;
pub use traits::PdfWriteHandler;
pub use traits::RenderedElement;
pub use model::ImageData;
pub use model::ImageFormat;
pub use model::ListItem;
pub use model::PdfBlock;
pub use model::PdfBlockType;
pub use model::PdfDocumentModel;
pub use model::PdfPageModel;
pub use model::SourceLocation;
pub use io::AtomicFileOutput;
pub use io::PdfInput;
pub use io::ResourceLimits;
pub use layout::Direction;
pub use layout::FlowLayout;
pub use layout::LayoutSink;

Modules§

content
PDF 元素的内容模型类型——文本、表格、图片和形状。
converter_registry
PdfConverter 实例的类型擦除转换器注册表。
crypto
PDF 加密与数字签名操作(ISO 32000)。
enums
easypdf-rust 中使用的枚举类型。
error
easypdf-rust 的错误类型。
event
基于事件监听器的 PDF 处理。
handler_chain
基于优先级的写入处理程序执行链。
io
PDF 输入、资源限制与原子化输出基础设施。
layout
与 PDF 写入后端解耦的自动流式布局。
logging
可观测性初始化与日志工具。
metadata
PDF 文档的元数据类型。
model
与引擎无关的语义文档模型。
page_index
Zero-based PDF page index.
page_number
One-based PDF page number.
page_range
Validated zero-based page range.
style
样式类型——颜色、字体和边框。
traits
定义 easypdf-rust 核心扩展点的 trait。