If anyone wants to use this for something public-service oriented:<p>Chicago is running for the 2016 Olympic games. About a month ago they released their official "bid book" in PDF form. The local papers gave it a look and wrote some fine stories, but a bunch of local journalists (myself among them) would like to extract the thing out into a Wiki so people could discuss and annotate it instead of just reading it in PDF form.<p>Link to the bid book: <a href="http://www.chicago2016.org/our-plan/bid-book/bid-book.aspx" rel="nofollow">http://www.chicago2016.org/our-plan/bid-book/bid-book.aspx</a><p>We were thinking of using MediaWiki as the wiki engine. One of us is currently running (the excellent) Chicago Elections Wiki over at <a href="http://chicagoelections.pbwiki.com/" rel="nofollow">http://chicagoelections.pbwiki.com/</a><p>We'd host, promote, annotate and fill out the wiki, the important thing is to move this from a pdf to an interactive, scannable, hypertext format so people can tear it apart.<p>We'd been talking about sneaking into PyCon and asking around if anyone there would be interested in working on this. It looks like this PDF miner is the start of something that could do this.
I used it recently for analysis of PDF articles.<p>It's quite good, though as it is written in pure Python, it's rather slow (especially compared to command line tools written in C/C++).<p>I strongly recommend using Psyco [1]. Adding few lines of code cut my PDF->HTML conversion times by half.<p>Also, be warned that markup it produces can be very heavy. Depending on how PDF is structured, you can finish with huge amount of DOM elements.<p>-----<p>[1] <a href="http://psyco.sourceforge.net/" rel="nofollow">http://psyco.sourceforge.net/</a>
For our startup we had a huge integration project with an industry-specific PDF and so I ended up writing a PDF importer that sounds like it does something similar to this project. The best part is that I couldn't figure out how to get my reader to determine what page a specific set of coordinates was on and it looks like this library supports it - thanks for the link!
AAAAAAGHFGUREH!!! I had to write my own a few months ago, which sucked. If I had known about this, I could have been saved a lot of effort. Noooooo!<p>Technology moves forward, I see.