Convert PDF to PPTX in Rust

Convert PDF to PPTX

The provided Rust code snippet demonstrates how to convert a PDF document into a PPTX using the Aspose.PDF library:

  1. Open a PDF document.
  2. Convert a PDF file to PPTX using save_pptx function.

  use asposepdf::Document;

  fn main() -> Result<(), Box<dyn std::error::Error>> {
      // Open a PDF-document with filename
      let pdf = Document::open("sample.pdf")?;

      // Convert and save the previously opened PDF-document as PptX-document
      pdf.save_pptx("sample.pptx")?;

      Ok(())
  }