VintaSoft Imaging .NET SDK 15.1: Documentation for .NET developer
Vintasoft.Imaging.Pdf.Processing Namespace / PdfDocumentVerifier Class / Verify Methods / Verify(String) Method
Syntax Example Requirements SeeAlso
In This Topic
Verify(String) Method (PdfDocumentVerifier)
In This Topic
Verifies the specified PDF document.
Syntax
'Declaration

Public Overloads Function Verify( _
ByVal filename
The filename of PDF document.
As System.String _
) As Boolean
public bool Verify(
System.String filename
)

Parameters

filename
The filename of PDF document.

Return Value

True if verification is passed; otherwise, false.
Example

Here is an example that shows how to verify a PDF document to conformance with PDF/A-1b specification:


''' <summary>
''' Verifies a PDF document to conformance with PDF/A-1b specification.
''' </summary>
''' <param name="pdfFilename">The filename of PDF document.</param>
Public Shared Sub VerifyDocumentToPdfA1b(pdfFilename As String)
    Dim verifier As New Vintasoft.Imaging.Pdf.Processing.PdfA.PdfA1bVerifier()
    System.Console.WriteLine("Verification...")
    If verifier.Verify(pdfFilename) Then
        System.Console.WriteLine("Document conforms to PDF/A-1b.")
    Else
        System.Console.WriteLine("Document does not conform to PDF/A-1b.")
    End If
End Sub


/// <summary>
/// Verifies a PDF document to conformance with PDF/A-1b specification.
/// </summary>
/// <param name="pdfFilename">The filename of PDF document.</param>
public static void VerifyDocumentToPdfA1b(string pdfFilename)
{
    Vintasoft.Imaging.Pdf.Processing.PdfA.PdfA1bVerifier verifier = 
        new Vintasoft.Imaging.Pdf.Processing.PdfA.PdfA1bVerifier();
    System.Console.WriteLine("Verification...");
    if (verifier.Verify(pdfFilename))
        System.Console.WriteLine("Document conforms to PDF/A-1b.");
    else
        System.Console.WriteLine("Document does not conform to PDF/A-1b.");
}

Requirements

Target Platforms: .NET 10; .NET 9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

See Also