more bugfixes. It now works good enough for pdf2swf.