python - How to programmatically check eps file version? -


i want check programmatically (without opening adobe app) if eps file compatible illustrator version 8 or 10. preferably using python or bash script.

portable esp files 7-bit ascii lines less 256 characters long. lines can terminated of following combinations of characters: cr, lf, cr lf, or lf cr.

i don't know flavors of eps different versions of illustrator can read, first line of formatted file should contain looks this:

    %!ps-adobe-3.0 epsf-3.0

according version 3.0 of encapsulated postscript file format specification in chapter 2 guidelines creating eps files. see chapter 3 titled guidelines importing eps files.

so @ least partially answer question, read first line of file , check epsf version says is.


Comments

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -