Dilan,
Here is a simple microflow that generates a pdf document using a document template:
I have also created a modelshare of this microflow here.
The document template looks like this:
Note that this is only a portion of the document template. In this template, some of the entities are passed in via the microflow Generate Document action and some have a microflow source to retrieve the necessary information.
Hope that helps,
Mike