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
Creating new FileTypes
Re: Creating new FileTypes
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?
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?
Re: Creating new FileTypes
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?
%!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?
Re: Creating new FileTypes
I'd use this string for the signature:
<Signature count="1">%!PS-Adobe-3.1\x20EPSF</Signature>
<Signature count="1">%!PS-Adobe-3.1\x20EPSF</Signature>