is_pdfua_compliant
Получает, является ли PDF-document PDF/UA совместимым.
pub fn is_pdfua_compliant(&self) -> Result<bool, PdfError>
Arguments
Returns
- Ok(bool) - if the operation succeeds
- Err(PdfError) - if the operation fails
Example
use asposepdf::Document;
fn main() -> Result<(), Box<dyn std::error::Error>> {
// Откройте PDF‑документ с именем файла
let pdf = Document::open("sample.pdf")?;
// Получить статус совместимости PDF/UA PDF-document
if pdf.is_pdfua_compliant()? {
println!("The document is PDF/UA compliant.");
} else {
println!("The document is not PDF/UA compliant.");
}
Ok(())
}