This causes a crash (brings down the python process also) with ID Table overflow and 65536 shapes error. However, If i use the command line as 'pdf2swf -s poly2bitmap sample.pdf -p 1 1.swf', it works fine.
I also tried this with python 2.6.2 and the corresponding .pyd