Verify(String) Method (PdfDocumentVerifier)
Verifies the specified PDF document.
'Declaration
Public Overloads Function Verify( _
ByVal As System.String _
) As Boolean
public bool Verify(
System.String
)
public: bool Verify(
System.String
)
public:
bool Verify(
System.String
)
Parameters
- filename
- The filename of PDF document.
Return Value
True if verification is passed; otherwise, false.
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.");
}
Target Platforms: .NET9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5