unembed_fonts
PDF-document’tan yazı tiplerini ayıklar.
pub fn unembed_fonts(&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>> {
// Dosya adıyla bir PDF-belgesi aç
let pdf = Document::open("sample.pdf")?;
// PDF-document'tan yazı tiplerini ayıkla
pdf.unembed_fonts()?;
// Daha önce açılmış PDF belgesini yeni dosya adıyla kaydet
pdf.save_as("sample_unembed_fonts.pdf")?;
Ok(())
}