Skip to main content

Crate poli_page

Crate poli_page 

Source
Expand description

Poli Page SDK for Rust — render PDFs from HTML templates via the Poli Page API.

See PoliPage for the entry-point client.

Re-exports§

pub use client::PoliPage;
pub use client::PoliPageBuilder;
pub use documents::Documents;
pub use error::error_codes;
pub use error::Error;
pub use error::ErrorPayload;
pub use fs::render_to_file;
pub use render::Render;
pub use retry::RequestEvent;
pub use retry::ResponseEvent;
pub use retry::RetryEvent;
pub use types::DocumentDescriptor;
pub use types::DocumentPreviewResult;
pub use types::MetadataValue;
pub use types::Orientation;
pub use types::PageFormat;
pub use types::RenderInput;
pub use types::RenderMetadata;
pub use types::Thumbnail;
pub use types::ThumbnailFormat;
pub use types::ThumbnailOptions;

Modules§

blockingblocking
Synchronous wrapper over the async crate::PoliPage surface.
client
Client construction, configuration, transport seam, and the retry loop.
documents
The documents namespace — client.documents.{get, preview, thumbnails, delete}.
error
Single Error enum + predicate helpers + wire-level code constants.
fs
render_to_file — render a PDF and stream it to disk in bounded memory.
render
The render namespace — client.render.{pdf, pdf_stream, document}.
retry
Retry-loop event surfaced through the on_retry hook (spec §10.2).
types
Wire-shape types exposed by the public surface.