save
Сохраняет ранее открытый PDF-документ.
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>> {
// Откройте PDF-document с именем "sample.pdf"
let pdf = Document::open("sample.pdf")?;
// Сохраните ранее открытый PDF-document
pdf.save()?;
Ok(())
}