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: [Postcript file), sig: 2521] Count: 1 File hex characters[00000000] 25 50 44 46 2D 31 2E 34 0D 25 E2 E3 CF D3 0D 0A %PDF-1.4.%...... Base-64 conversionJVBERi0xLjQNJeLjz9MNCjgyOSAwIG9iag08PC9MaW5lYXJpemVkIDEvTCAyMTQ5NzAvTyA4 |
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); }