Creating new FileTypes

A forum on data recovery using the professional data recovery software R-STUDIO.
jccbin
Posts: 5
Joined: Sat Oct 24, 2009 3:21 pm

Creating new FileTypes

Post by jccbin » Wed Nov 04, 2009 2:07 pm

I'd like to make a filetypelist for Adobe Illustrator files (.ai) and EPS (encapsulated PostScript) files (.eps)

I have figured out the basic .xml file, but have no idea what to put for the signatures.

Where does one get that information?

TIA

jccbin
Posts: 5
Joined: Sat Oct 24, 2009 3:21 pm

Re: Creating new FileTypes

Post by jccbin » Wed Nov 04, 2009 2:12 pm

For instance, the apple file signature for an eps file is

EPSF????

Do I just convert that to hex: 45:50:53:46:3f:3f:3f:3f

and use that?

If so, what is the offset?

jccbin
Posts: 5
Joined: Sat Oct 24, 2009 3:21 pm

Re: Creating new FileTypes

Post by jccbin » Wed Nov 04, 2009 2:21 pm

Ok, I opened an eps file with a hex editor. Here are the first bytes:

%!PS-Adobe-3.1 EPSF-3.0
%ADO_DSC_Encoding: MacOS Roman
%%Title: Untitled-1.eps
%%Creator: Adobe Illustrator(R) 13.0
%%For: JC Corbin
%%CreationDate: 11/4/09
%%BoundingBox: 0 0 255 341
%%HiResBoundingBox: 0 0 254.9326 340.3262
%%CropBox: 0 0 254.9326 340.3262
%%LanguageLevel: 2
%%DocumentData: Clean7Bit
%ADOBeginClientInjection: DocumentHeader "AI11EPS"
%%AI8_CreatorVersion: 13.0.2
%AI9_PrintingDataBegin
%ADO_BuildNumber: Adobe Illustrator(R) 13.0.2 x434 R agm 4.4379 ct 5.1039
%ADO_ContainsXMP: MainFirst
%AI7_Thumbnail: 96 128 8
%%BeginData: 3294 Hex Bytes
%0000330000660000990000CC0033000033330033660033990033CC0033FF
%0066000066330066660066990066CC0066FF00990000
.
.
.
.

Sooooooo, is any of this info helpful for the file sigs, etc?

Alt
Site Moderator
Posts: 3268
Joined: Tue Nov 11, 2008 2:13 pm
Contact:

Re: Creating new FileTypes

Post by Alt » Thu Nov 05, 2009 6:29 am

I'd use this string for the signature:
<Signature count="1">%!PS-Adobe-3.1\x20EPSF</Signature>

Post Reply