PdfReaderTestPdfFile Method Terminal Works - PDF Printing.Net Library
Overload List

  NameDescription
Public methodStatic memberTestPdfFile(Byte)
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.
Public methodStatic memberTestPdfFile(Stream)
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.
Public methodStatic memberTestPdfFile(String)
Determines whether the file specified by its path is a PDF file by inspecting the first eight bytes of the data. If the file header has the form «%PDF-x.y» the function returns the version number as integer (e.g. 14 for PDF 1.4). If the file header is invalid or inaccessible for any reason, 0 is returned. The function never throws an exception.
Top
See Also

Reference