save

Guarda el PDF-documento previamente abierto.

pub fn save(&self) -> Result<(), PdfError>

Arguments

Returns

  • Ok(()) - if the operation succeeds
  • Err(PdfError) - if the operation fails

Example

use asposepdf::Document;

fn main() -> Result<(), Box<dyn std::error::Error>> {
    // Abrir un PDF-documento llamado "sample.pdf"
    let pdf = Document::open("sample.pdf")?;

    // Guardar el PDF-documento previamente abierto
    pdf.save()?;

    Ok(())
}