scholium.slide_processor.SlideProcessor#
- class SlideProcessor(pandoc_template='beamer', resolution=(1920, 1080))[source]#
Bases:
PandocBackendPandoc/Beamer slide processor.
Preserved as a thin subclass of
PandocBackendso the original constructor signatureSlideProcessor(pandoc_template=..., resolution=...)continues to work. New code should use the backend registry instead:from scholium.slides import get_backend backend = get_backend("pandoc", resolution=(1920, 1080))
Initialise the backend.
- Parameters:
Methods
Convert markdown to PDF using pandoc.
Rasterise a PDF into PNG slides at the configured resolution.
Check pandoc + a LaTeX engine on
PATH.Run the markdown → PDF → PNG pipeline.
Attributes
Short identifier used in config (
slide_backend: ...).- markdown_to_pdf(markdown_path, output_path)#
Convert markdown to PDF using pandoc.
- Raises:
FileNotFoundError – If the markdown file is missing.
RuntimeError – If pandoc conversion fails or pandoc is not on PATH.
- Return type:
- pdf_to_images(pdf_path, output_dir, dpi=300)#
Rasterise a PDF into PNG slides at the configured resolution.
- Raises:
FileNotFoundError – If the PDF is missing.
RuntimeError – If conversion fails.
- Return type: