If it's possible in Perl, there's a good chance it's possible in PHP 🙂. Impress would probably be easier, since the file format there is just zipped XML+image files; details would be available on OpenOffice.org's site. For PowerPoint ... who knows (apart from Microsoft).