Syncfusion.Pdf.Base
Example 


AnalyzeSyntax Method

Analyze the given PDF file and check whether any syntax issues found.
Syntax
'Declaration
 
Public Function AnalyzeSyntax() As SyntaxAnalyzerResult
'Usage
 
Dim instance As PdfDocumentAnalyzer
Dim value As SyntaxAnalyzerResult
 
value = instance.AnalyzeSyntax()
public SyntaxAnalyzerResult AnalyzeSyntax()
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