Projects Directory : Convert PDFs to Word without losing formatting -- 2 - Convert Perl function to PHP