Skip to main content

Crate lo_writer

Crate lo_writer 

Source

Re-exports§

pub use docx::to_docx;
pub use html::to_html;
pub use import::from_doc_bytes;
pub use import::from_docx_bytes;
pub use import::from_html;
pub use import::from_odt_bytes;
pub use import::from_pdf_bytes;
pub use import::load_bytes;
pub use legacy_doc::extract_text_from_doc;
pub use markdown::to_markdown;
pub use pdf::to_pdf;
pub use pdf::to_pdf_with_size;
pub use raster::render_jpeg_pages;
pub use raster::render_pages;
pub use raster::render_png_pages;
pub use svg::render_svg;

Modules§

docx
Minimal DOCX (WordprocessingML) export.
html
HTML export for TextDocument.
import
Binary importers for TextDocument.
layout
Block-aware PDF layout for TextDocument.
legacy_doc
Plain-text extractor for the legacy binary .doc format.
markdown
pdf
PDF export for TextDocument using the layout engine.
raster
svg
SVG render of a TextDocument. This is a deliberately simple “preview” renderer: it lays out the plain-text version of the document as wrapped lines on a single page, drawn inside a bordered rectangle.

Structs§

WriterEditor

Functions§

from_markdown
from_plain_text
save_as
Render the document into bytes for the requested format.
save_odt
to_plain_text