title: PDF to XML and back to PDF again
body: <p>Well I recently asked a question about getting a PDF-file to become an XML-file and then return it to a PDF-file preferably exactly the same as the original, but at least almost the same.</p>
  
  <p>I've been trying different methods and so far I came up with this one.</p>
  
  <ol>
  <li>The document written in LibreOffice gets saved as DocBook XML. Say it's named "file.xml".</li>
  <li>This file is parsed with a set of XSL templates from the DocBook-project initiated by the file "docbook.xsl".</li>
  <li>This gets done by running: xsltproc -o intermediate-fo-file.fo /usr/share/xml/docbook/stylesheet/nwalsh/fo/docbook.xsl file.xml</li>
  <li>The result is an intermediate XSL-FO which becomes a PDF by running: fop intermediate-fo-file.fo final.pdf</li>
  <li>This PDF-file looks almost the same as the original ODT-file.</li>
  </ol>
  
  <p>But still, say I have a PDF-file in the beginning, how could the same thing be done? Any suggestions?</p>