How to generate PDF for my custom DOC?

I want a button on top of my doctype which can generate a PDF based on certain conditions and fields.

How to achieve that? and How to customize that with branding, header and footer?

Hi @Abhiraj_Tulsyan:

Build a simple print format. Fast way is using new print designer.