This is a page for PDF file analysis (Header). Try sample file: Try an example
A PDF file has a well defined header. |
File contents analysisBytes 1-3 [Signature should be %PDF-]: File signature analysis (Header analysis)Additional scanning signature analysisPossible: [BMP file, sig: 424D] Count: 1 File hex characters[00000000] 3C 21 64 6F 63 74 79 70 65 20 68 74 6D 6C 3E 0A <!doctype.html>. Base-64 conversionPCFkb2N0eXBlIGh0bWw+CjxodG1sIGRhdGEtYWRibG9ja2tleT0iTUZ3d0RRWUpLb1pJaHZj |
Sample code
public string getPdf(byte [] b) { string TextBox1 = ""; TextBox1 += "Bytes 1-3 [Signature should be %PDF-]: " + (char)b[0] + (char)b[1] + (char)b[2] + (char)b[3] + (char)b[4] + "<br/>"; return (TextBox1); }