pub struct PdfExporter { /* private fields */ }Expand description
PDF exporter with branding support
Implementations§
Source§impl PdfExporter
impl PdfExporter
Sourcepub fn with_branding(branding: BrandingConfig) -> Self
pub fn with_branding(branding: BrandingConfig) -> Self
Create a new PDF exporter with custom branding
Sourcepub fn set_branding(&mut self, branding: BrandingConfig)
pub fn set_branding(&mut self, branding: BrandingConfig)
Update branding configuration
Sourcepub fn branding(&self) -> &BrandingConfig
pub fn branding(&self) -> &BrandingConfig
Get current branding configuration
Sourcepub fn export_decision(
&self,
decision: &Decision,
) -> Result<PdfExportResult, ExportError>
pub fn export_decision( &self, decision: &Decision, ) -> Result<PdfExportResult, ExportError>
Export a Decision to PDF
Sourcepub fn export_knowledge(
&self,
article: &KnowledgeArticle,
) -> Result<PdfExportResult, ExportError>
pub fn export_knowledge( &self, article: &KnowledgeArticle, ) -> Result<PdfExportResult, ExportError>
Export a Knowledge article to PDF
Sourcepub fn export_markdown(
&self,
title: &str,
content: &str,
filename: &str,
) -> Result<PdfExportResult, ExportError>
pub fn export_markdown( &self, title: &str, content: &str, filename: &str, ) -> Result<PdfExportResult, ExportError>
Export raw markdown content to PDF
Sourcepub fn export_table(
&self,
table: &Table,
) -> Result<PdfExportResult, ExportError>
pub fn export_table( &self, table: &Table, ) -> Result<PdfExportResult, ExportError>
Export an ODCS Data Contract (Table) to PDF
Sourcepub fn export_data_product(
&self,
product: &ODPSDataProduct,
) -> Result<PdfExportResult, ExportError>
pub fn export_data_product( &self, product: &ODPSDataProduct, ) -> Result<PdfExportResult, ExportError>
Export an ODPS Data Product to PDF
Sourcepub fn export_cads_asset(
&self,
asset: &CADSAsset,
) -> Result<PdfExportResult, ExportError>
pub fn export_cads_asset( &self, asset: &CADSAsset, ) -> Result<PdfExportResult, ExportError>
Export a CADS Asset to PDF
Sourcepub fn table_to_markdown_public(&self, table: &Table) -> String
pub fn table_to_markdown_public(&self, table: &Table) -> String
Convert an ODCS Table (Data Contract) to Markdown format.
This is a public wrapper for use by WASM bindings.
Sourcepub fn data_product_to_markdown_public(
&self,
product: &ODPSDataProduct,
) -> String
pub fn data_product_to_markdown_public( &self, product: &ODPSDataProduct, ) -> String
Convert an ODPS Data Product to Markdown format.
This is a public wrapper for use by WASM bindings.
Sourcepub fn cads_asset_to_markdown_public(&self, asset: &CADSAsset) -> String
pub fn cads_asset_to_markdown_public(&self, asset: &CADSAsset) -> String
Convert a CADS Asset to Markdown format.
This is a public wrapper for use by WASM bindings.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PdfExporter
impl RefUnwindSafe for PdfExporter
impl Send for PdfExporter
impl Sync for PdfExporter
impl Unpin for PdfExporter
impl UnwindSafe for PdfExporter
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