php-pdf attachment is in wrong format on webmails

This seems to be a duplicate of this thread.

Either way, I still don't understand what you're asking.