pub fn write(
output: &LayoutOutput,
registry: &FontRegistry,
assets: &Assets,
metadata: &Metadata,
) -> Result<Vec<u8>, PdfError>Expand description
Writes one laid-out book as PDF bytes.
Fonts resolve through the registry that shaped the run and images through the table that sized them: the display structure names indexes, the tables own the files, and so the embedded subset has the outlines the shaper measured and the embedded image is the file the header was read from.
A book with no images passes Assets::none.