save_docx_enhanced
Converts and saves the previously opened PDF-document as a DOCX-document with Enhanced Recognition Mode (fully editable tables and paragraphs).
pub fn save_docx_enhanced(&self, filename: &str) -> Result<(), PdfError>
Arguments
- filename - the path to the output file
Returns
- Ok(()) - if the operation succeeds
- Err(PdfError) - if the operation fails
Example
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 DocX-document with Enhanced Recognition Mode (fully editable tables and paragraphs)
pdf.save_docx_enhanced("sample_enhanced.docx")?;
Ok(())
}