menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SyntaxAnalyzerResult - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Class SyntaxAnalyzerResult

    Represernts the PDF document syntax analyzer result.

    Inheritance
    System.Object
    SyntaxAnalyzerResult
    Implements
    AnalyzerResult
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Syncfusion.Pdf.Parsing
    Assembly: Syncfusion.Pdf.Base.dll
    Syntax
    public class SyntaxAnalyzerResult : AnalyzerResult
    Examples
            
    string filePath = "Input.pdf";   
    //load the document
    PdfDocumentAnalyzer analyzer = new PdfDocumentAnalyzer(filePath);
    //Analyze the syntax issues.
    SyntaxAnalyzerResult analyzerResult =  analyzer.AnalyzeSyntax();        
     if(analyzerResult.IsCorrupted)
     {
     throw new Exception("The document is corrupt");
     }
     analyzer.Close();

    Properties

    Errors

    Gets the Syntax errors.

    Declaration
    public List<PdfException> Errors { get; }
    Property Value
    Type
    System.Collections.Generic.List<PdfException>

    IsCorrupted

    Gets whether the document is corrupted or not.

    Declaration
    public bool IsCorrupted { get; }
    Property Value
    Type
    System.Boolean
    Examples
            
    string filePath = "Input.pdf";   
    //load the document
    PdfDocumentAnalyzer analyzer = new PdfDocumentAnalyzer(filePath);
    //Analyze the synyax issue
    SyntaxAnalyzerResult analyzerResult = analyzer.AnalyzeSyntax();          
     if(analyzerResult.IsCorrupted)
     {
       throw new Exception("The document is corrupt");
     }
     analyzer.Close();

    Implements

    AnalyzerResult
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved