PDF .NET Library Documentation - PDF Technologies, Inc.
This function checks a PDF document to verify compliance with the PDF/A standard.
Namespace:
PDFTech
Assembly:
PDFTechLib (in PDFTechLib.dll) Version: 1.0.0.0 (1.7.9.0)
Syntax
C# |
---|
public bool isPDFA(
ref bool IsConvertable
) |
Visual Basic (Declaration) |
---|
Public Function isPDFA ( _
ByRef IsConvertable As Boolean _
) As Boolean |
Visual C++ |
---|
public:
bool isPDFA(
bool% IsConvertable
) |
Parameters
- IsConvertable
- Type:
System..::.Boolean
%
Returns a value that indicates whether the current document is convertible to PDF/A.
Return Value
It returns TRUE if the document is PDF/A compliant. Returns FALSE otherwise.
Examples
The example below shows how a PDF document can be converted to a PDF/A document.
CopyC#
PDFAConverter converter = new PDFAConverter("sample.pdf");
bool isconvertable = false;
if (!converter.isPDFA(ref isconvertable))
{
if (converter.Error == "")
{
foreach (PDFAError error in converter.PDFAErrorList)
{
Console.WriteLine(error.Code + "\t" + error.Error + "\t" + error.Count.ToString() + " matches");
}
}
else
{
Console.WriteLine(converter.Error);
return;
}
}
if (isconvertable)
{
Console.WriteLine();
Console.WriteLine("sample.pdf is convertable to PDF/A. Please use ConvertPDFA() method.");
}
See Also