save_xps
Daha önce açılmış PDF-dokümanını XPS-dokümanı olarak dönüştürür ve kaydeder.
pub fn save_xps(&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>> {
// Dosya adıyla bir PDF-belgesi aç
let pdf = Document::open("sample.pdf")?;
// Daha önce açılmış PDF-dokümanını XPS-dokümanı olarak dönüştür ve kaydet
pdf.save_xps("sample.xps")?;
Ok(())
}