PDF

 From:  Michael Gibson
3637.3 In reply to 3637.1 
Hi Danny, so I examined the PDF file and the reason that MoI has trouble reading it is that all the operators in it are just one big long chunk of text like this:

gs q 0.21609 0 0 0.21609 0 0 cm 13449.7 225.625 m 13449.7 290.531 l 13501.6
225.625 l 13501.6 290.531 l S Q q 0.21609 0 0 0.21609 0 0 cm 13534.2 225.625
m 13560.1 225.625 l 13573.1 238.605 l 13573.1 277.551 l 13560.1 290.531 l

MoI's reader does not deal with that properly, it's expecting for the operators to be more like in an AI v8 style where there is only one per line, like this:

13449.7 225.625 m
13449.7 290.531 l
13501.6 225.625 l
13501.6 290.531 l
13501.6 290.531 c


Anyway, that's the particular reason why it doesn't work with MoI's current PDF importer - the current PDF importer is not that great, it's kind of spliced around the AI v8 reader that just tries to decompress wads of anything it can find in the PDF file and feed it to the AI v8 parser. But in some cases like this one the operators are structured a bit differently between those formats, although in many PDF files they are the same.

PDF is so complicated that I don't really have very much hope of being able to fix up my own reader, I will most likely be licensing a library to help with this in the future.

- Michael

EDITED: 25 Jun 2010 by MICHAEL GIBSON