fix code for pdf layout, can now generate pdf for template 1 (1page - landscape) & template (2page-landscape).