Struct presenterm::Exporter
source · pub struct Exporter<'a> { /* private fields */ }Expand description
Allows exporting presentations into PDF.
Implementations§
source§impl<'a> Exporter<'a>
impl<'a> Exporter<'a>
sourcepub fn new(
parser: MarkdownParser<'a>,
default_theme: &'a PresentationTheme,
resources: Resources,
typst: TypstRender,
themes: Themes,
options: PresentationBuilderOptions
) -> Self
pub fn new( parser: MarkdownParser<'a>, default_theme: &'a PresentationTheme, resources: Resources, typst: TypstRender, themes: Themes, options: PresentationBuilderOptions ) -> Self
Construct a new exporter.
sourcepub fn export_pdf(
&mut self,
presentation_path: &Path,
extra_args: &[&str]
) -> Result<(), ExportError>
pub fn export_pdf( &mut self, presentation_path: &Path, extra_args: &[&str] ) -> Result<(), ExportError>
Export the given presentation into PDF.
This uses a separate presenterm-export tool.
sourcepub fn generate_metadata(
&mut self,
presentation_path: &Path
) -> Result<ExportMetadata, ExportError>
pub fn generate_metadata( &mut self, presentation_path: &Path ) -> Result<ExportMetadata, ExportError>
Generate the metadata for the given presentation.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Exporter<'a>
impl<'a> !Send for Exporter<'a>
impl<'a> !Sync for Exporter<'a>
impl<'a> Unpin for Exporter<'a>
impl<'a> !UnwindSafe for Exporter<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more