Add options paperSize and margin for pdf