[desc]Adding method which generate pdf with margins