Custom Doctypes Possible printing?

hello,
so i created a custom doctype and i want to create a custom printing template.
i want to know please if i can create a custom template for that form (doctype), for printing. and if possible what i gonna make as variables ?

example i have a field named : designation and other named expire_date … and many other fields.

so i can use theses variables in jinja or only erpnext native db rows are supported ?

In Setup, try Print Format Builder. In Select a DocType to make a new format Enter the name of the custom Doctype, and a name for the format , then click Create a new format button. Add or remove fields as needed…