oxml-pdf
Render format-neutral LayoutResult pages to PDF, archival PDF/A, or raster
images.
Capabilities
- PDF output from positioned page elements.
- PDF/A-2b and PDF/A-3b preflight and rendering.
- Font embedding and subsetting, metadata, outlines, links, and structure.
- Selected-page PNG and JPEG plus multi-page TIFF output.
Use it when
Use this crate when a custom OOXML frontend already produces shared layout frames. Use rdocx::Document::to_pdf or rpptx::Presentation::to_pdf_deterministic for normal document conversion.
Relationship
This is the shared successor to the deprecated rdocx-pdf shim. It is an
output backend and does not open OOXML packages or lay out DOCX and PPTX
content. Raster page indices are zero-based.
Example
use LayoutResult;
use render_to_pdf;
let layout = new;
let pdf = render_to_pdf;
assert!;
Add oxml-pdf = "0.12.1" and oxml-layout = "0.12.1" to your dependencies. See the renderer API for the accepted layout model.