Hello again
Martijn van Groningen (JIRA) at "Sun, 30 May 2010 17:59:36 -0400 (EDT)" wrote:
MvG> Pages and Numbers have both the same file content file (index.xml) in the
compressed file (*.pages / *.numbers). This makes detecting formats a bit more
difficult. I've solved this by comparing the root element which is different in
both formats. I'm not really happy with this solution, but it seems the only
solution. If someone has a nicer solution for this please share. A Keynote file
has index.apx1 as content file, which makes it much easier to determine the
format.
I forgot to ask - do you support compressed index.xml inside pages
document? I have several examples of such documents, for exmaple:
\>unzip -l films.pages.zip
Archive: films.pages.zip
Length Date Time Name
--------- ---------- ----- ----
0 2009-01-12 20:54 ????????????.pages/
0 2009-01-12 20:54 ????????????.pages/Contents/
8 2007-04-09 19:37 ????????????.pages/Contents/PkgInfo
48364 2008-01-15 10:12 ????????????.pages/index.xml.gz
0 2009-01-12 20:54 ????????????.pages/QuickLook/
64309 2008-01-15 10:12 ????????????.pages/QuickLook/Thumbnail.jpg
--------- -------
112681 6 files
--
With best wishes, Alex Ott, MBA
http://alexott.blogspot.com/ http://alexott.net
http://alexott-ru.blogspot.com/