Fixed the pdf layout