PDF’s in custom modules is not an included feature, though some people have managed to get it working.
Are you sure you need a custom module? Doing things with basic modules greatly facilitates things in SuiteCRM, due to all the extra features that are already there.