Keep format when rendering to /dev/stdout

Allows streaming to /dev/stdout while keeping pdf encoding.