PdfReaderTestPdfFile Method (Stream)Terminal Works - PDF Printing.Net Library
Determines whether the specified stream 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.2.1.0 (5.2.1.0)
Syntax

public static int TestPdfFile(
	Stream stream
)

Parameters

stream
Type: System.IOStream

Return Value

Type: Int32
See Also

Reference