Skip to content

exporter_word

Handles exporting recipes to Word format.

WordExporter

WordExporter(
    title: str = "My Recipe Book", image_storage: ImageStoragePort | None = None
)

Secondary adapter that implements WordExporterPort.

save

save(recipes: list[RecipeEntity], output_path: str) -> None

Export a list of RecipeEntity objects to a Word document.

to_bytes

to_bytes(recipes: list[RecipeEntity]) -> bytes

Export a list of RecipeEntity objects to a Word document as bytes.