Syncfusion.Pdf.Base
Example 


IsCorrupted Property

Gets whether the document is corrupted or not.
Syntax
'Declaration
 
Public ReadOnly Property IsCorrupted As Boolean
'Usage
 
Dim instance As SyntaxAnalyzerResult
Dim value As Boolean
 
instance.IsCorrupted = value
 
value = instance.IsCorrupted
public bool IsCorrupted {get;}
Example
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();
AssemblyVersion

Syncfusion.Pdf.Base: 17.4460.0.39

See Also