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
.docformat. - markdown
- PDF export for
TextDocumentusing thelayoutengine. - 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§
Functions§
- from_
markdown - from_
plain_ text - save_as
- Render the document into bytes for the requested format.
- save_
odt - to_
plain_ text