generating pdf template in custom module

Please upvote the topic.