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-]: %PDF- File signature analysis (Header analysis)PDF file (Starts with %PDF)Additional scanning signature analysisPossible: [PDF files, sig: 25504446] Count: 1 File hex characters[00000000] 25 50 44 46 2D 31 2E 33 0D 25 E2 E3 CF D3 0A 35 %PDF-1.3.%.....5 Base-64 conversionJVBERi0xLjMNJeLjz9MKNSAwIG9iag08PCANL0xpbmVhcml6ZWQgMSANL08gNyANL0ggWyAx |
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); }