PdfReaderTestPdfFile Method (Byte)Terminal Works - PDF Printing.Net Library
Determines whether the specified data is a PDF file by inspecting the first eight bytes of the data. If the data begins with «%PDF-x.y» the function returns the version number as integer (e.g. 14 for PDF 1.4). If the data is invalid or inaccessible for any reason, 0 is returned. The function never throws an exception.

Namespace: PdfEdit.Pdf.IO
Assembly: PdfPrintingNet (in PdfPrintingNet.dll) Version: 5.1.1.0 (5.1.1.0)
Syntax

public static int TestPdfFile(
	byte[] data
)

Parameters

data
Type: SystemByte

Return Value

Type: Int32
See Also

Reference