Expand description
§rdocx-pdf
rdocx-pdf is a deprecated compatibility shim for the shared
oxml-pdf renderer. Existing imports continue to
work because the public functions are exact re-exports.
§Use it when
Use this crate only while migrating an existing dependency. New code should use
oxml-pdf, or call PDF and PNG rendering directly on
rdocx::Document.
§Relationship
The shim forwards the shared renderer API without owning document layout or package behavior.
§Example
use rdocx_pdf::render_to_pdf;
let renderer = render_to_pdf;
let _ = renderer;[dependencies]
rdocx-pdf = "0.12.0"For new code, replace both the dependency and the import with oxml-pdf and
oxml_pdf.
Modules§
- raster
- Page-to-image rendering using tiny-skia software rasterizer.
Structs§
- PdfOptions
- Options for the explicit archival PDF renderer.
- Raster
Options - Options for raster image export.
Enums§
- PdfConformance
- An archival conformance level supported by the PDF backend.
- PdfError
- A reason an input cannot be represented by the requested PDF/A profile.
- Raster
Error - A reason a raster export request could not be completed.
- Raster
Format - Image container and encoding options for raster output.
- Raster
Output - Encoded raster output.
Functions§
- render_
all_ pages - Render all pages to PNG bytes.
- render_
page_ to_ png - Render a single page to PNG bytes.
- render_
pages - Render selected zero-based pages to the requested raster image format.
- render_
to_ pdf - Render a laid-out document to PDF bytes.
- render_
to_ pdf_ with_ options - Render a laid-out document to one explicitly selected archival PDF profile.