[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bêtise et récupération de fichiers




Je m'attelle à appliquer la même méthode pour les documents openoffice
mais là, si j'arrive à retrouver une 30 de fichiers openoffice (en me
fondant sur les «magicnumbers»), il est impossible de filtrer ces
fichiers par un grep où même de les ouvrir, apparemment openoffice ne
supporte pas un fichier rallongé par des octets quelconques. Quelqu'un
aurait une idée sur une méthode pour restaurer des fichiers openoffice?


François Boisson


Un petit test :

jdpillon@developpement:~/testopenoffice$ unzip test.sxw
Archive:  test.sxw
 extracting: mimetype
  inflating: content.xml
  inflating: styles.xml
 extracting: meta.xml
  inflating: settings.xml
  inflating: META-INF/manifest.xml
jdpillon@developpement:~/testopenoffice$ ls
content.xml META-INF meta.xml mimetype settings.xml styles.xml test.sxw
jdpillon@developpement:~/testopenoffice$

Le document openoffice contient seulement : "Fichier de test openoffice"

On retrouve ce texte dans content.xml (vers la fin):

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE office:document-content PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "office.dtd"> <office:document-content xmlns:office="http://openoffice.org/2000/office"; xmlns:style="http://openoffice.org/2000/style"; xmlns:text="http://openoffice.org/2000/text"; xmlns:table="http://openoffice.org/2000/table"; xmlns:draw="http://openoffice.org/2000/drawing"; xmlns:fo="http://www.w3.org/1999/XSL/Format"; xmlns:xlink="http://www.w3.org/1999/xlink"; xmlns:number="http://openoffice.org/2000/datastyle"; xmlns:svg="http://www.w3.org/2000/svg"; xmlns:chart="http://openoffice.org/2000/chart"; xmlns:dr3d="http://openoffice.org/2000/dr3d"; xmlns:math="http://www.w3.org/1998/Math/MathML"; xmlns:form="http://openoffice.org/2000/form"; xmlns:script="http://openoffice.org/2000/script"; office:class="text" office:version="1.0">
 <office:script/>
 <office:font-decls>
<style:font-decl style:name="Tahoma1" fo:font-family="Tahoma, Lucidasans, &apos;Lucida Sans&apos;, &apos;Arial Unicode MS&apos;"/> <style:font-decl style:name="Bitstream Vera Sans" fo:font-family="&apos;Bitstream Vera Sans&apos;" style:font-pitch="variable"/> <style:font-decl style:name="Tahoma" fo:font-family="Tahoma, Lucidasans, &apos;Lucida Sans&apos;, &apos;Arial Unicode MS&apos;" style:font-pitch="variable"/> <style:font-decl style:name="Nimbus Roman No9 L" fo:font-family="&apos;Nimbus Roman No9 L&apos;" style:font-family-generic="roman" style:font-pitch="variable"/>
 </office:font-decls>
 <office:automatic-styles/>
 <office:body>
  <text:sequence-decls>
<text:sequence-decl text:display-outline-level="0" text:name="Illustration"/>
   <text:sequence-decl text:display-outline-level="0" text:name="Table"/>
   <text:sequence-decl text:display-outline-level="0" text:name="Text"/>
   <text:sequence-decl text:display-outline-level="0" text:name="Drawing"/>
  </text:sequence-decls>
  <text:p text:style-name="Standard">Fichier de test openoffice</text:p>
 </office:body>
</office:document-content>

En espérant faire avancer le shimiliblique... ;)

--
Cordialement
--------------------------------------------
	Jacques-Daniel PILLON
--------------------------------------------



Reply to: