MCPcopy Index your code
hub / github.com/SLiCAP/SLiCAP_python / export_pdf

Function export_pdf

SLiCAP/schematic/export.py:680–682  ·  view source on GitHub ↗
(scene, output_path: Path)

Source from the content-addressed store, hash-verified

678
679
680def export_pdf(scene, output_path: Path) -> None:
681 import cairosvg
682 cairosvg.svg2pdf(bytestring=_build_svg(scene), write_to=str(output_path))
683
684
685def print_scene(scene, parent=None) -> None:

Callers 2

cmd_pdfFunction · 0.85
_on_export_pdfMethod · 0.85

Calls 1

_build_svgFunction · 0.85

Tested by

no test coverage detected