public void CheckFdfHeader() { file.StartOffset = 0; String str = ReadString(1024); int idx = str.IndexOf("%FDF-1.2"); if (idx < 0) throw new IOException("FDF header signature not found."); file.StartOffset = idx; }