Şifre Çöz
PDF-document şifresini çöz.
pub fn decrypt(&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>> {
// Şifre korumalı bir PDF-document aç
let pdf = Document::open_with_password("sample_with_password.pdf", "ownerpass")?;
// PDF-document şifresini çöz
pdf.decrypt()?;
// Daha önce açılmış PDF belgesini yeni dosya adıyla kaydet
pdf.save_as("sample_decrypt.pdf")?;
Ok(())
}