pyboxbuilder.export.layout_pdf.generate_layout_pdf¶
-
pyboxbuilder.export.layout_pdf.generate_layout_pdf(packing: BoxPacking, output_path: Path, project_name: str, game_box_size: tuple[float, float, float], box_builders: list[BoxBuilder] | None =
None, manifest: ProjectManifest | None =None, pipeline: GeometryPipeline | None =None) Path | None[source]¶ Generate a PDF packing guide with layered step-by-step breakdown.
Renders each vertical Z layer on a separate page in back-to-front oblique order.
- Parameters:¶
- packing: BoxPacking¶
The computed packed layout.
- output_path: Path¶
Path to write the PDF file (str or Path).
- project_name: str¶
Game name for the title.
- game_box_size: tuple[float, float, float]¶
Outer game box dimensions (W, L, H).
- box_builders: list[BoxBuilder] | None =
None¶ The project’s boxes, keyed by label, for colour and label lookups. Optional.
- manifest: ProjectManifest | None =
None¶ Optional ProjectManifest for exact compartment resolution.
- pipeline: GeometryPipeline | None =
None¶ Optional GeometryPipeline to reuse cached ResolvedBox instances.
- Returns:¶
The output path, or None if generation failed.