is_pdfua_compliant
Get is a PDF-document PDF/UA compliant.
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>> {
// Open a PDF-document with filename
let pdf = Document::open("sample.pdf")?;
// Get PDF/UA compliant status of PDF-document
if pdf.is_pdfua_compliant()? {
println!("The document is PDF/UA compliant.");
} else {
println!("The document is not PDF/UA compliant.");
}
Ok(())
}