pub trait LayoutSink {
// Required methods
fn add_page(
&mut self,
size: PageSize,
orientation: Orientation,
) -> Result<usize>;
fn write_text(&mut self, text: &PdfText, x: f64, y: f64) -> Result<()>;
fn finish(self, path: &Path) -> Result<()>
where Self: Sized;
}Expand description
接收中立布局操作的 PDF 写入后端。
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".