That is not what I see. When I open the PDF (without doing anything with it) I see http://mcepl.fedorapeople.org/tmp/before.png. After running my script I see http://mcepl.fedorapeople.org/tmp/after-recursive.png (i.e., there is no visible change). After running your script I see http://mcepl.fedorapeople.org/tmp/after-iterative.png (a lot of text is lost).
That is not what I see. When I open the PDF (without doing anything with it) I see http:// mcepl.fedorapeo ple.org/ tmp/before. png. After running my script I see http:// mcepl.fedorapeo ple.org/ tmp/after- recursive. png (i.e., there is no visible change). After running your script I see http:// mcepl.fedorapeo ple.org/ tmp/after- iterative. png (a lot of text is lost).