A postfix before_queue content filter written in perl to modify a pdf attachment on-the-fily.