Added pdf support to download posts