Working pdf output