How can PDF documents be generated automatically from company forms?
Handover reports, purchase orders, travel orders from a template: how a PDF is generated automatically from company form data – with numbering and checks.
An approved request often needs to produce a document as well: a purchase order for the supplier, an equipment handover report, a travel order, a payment voucher. If someone copies these into a Word template by hand, it is not only slow but error-prone. Template-based PDF generation creates the document from the data that already exists – with a consistent look and no typos.
1. Designing the template
Take the current document and mark:
- Fixed elements: header, logo, legal text, signature fields.
- Variable elements: those coming from the form – name, date, amount, items.
- Repeating parts: line items, with as many rows as there are items.
- Conditional parts: text that only appears in some cases (e.g. an "urgent" flag).
2. Automatic filling and numbering
The system substitutes the request data into the right places in the template. Many documents also need their own number (e.g. PO-2026/0042) that must be sequential and collision-free – this is issued by the system too, not by a spreadsheet.
3. When should it be created?
Ideally the document is created automatically by an event: the purchase order after purchase approval, the handover report when the equipment is issued, the travel order on manager approval. Manual generation can be needed too, for example for an extra copy.

4. Review and delivery
The generated document should be reviewed – especially if it goes to an external party or has legal effect. Decide who should receive it automatically (e.g. as an email attachment to the supplier) and who can access it inside the company.
What a PDF does not guarantee
Generating a PDF does not in itself mean an electronic signature or legal authentication. If the document must be authentic, you need a separate electronic signature solution or a signature after printing. The workflow does, however, record who approved the request behind the document and when – which is often enough for internal control.
Good first candidates
- Purchase order from a purchase request
- Equipment handover and return report
- Travel order
- Onboarding / offboarding data sheet
- Vehicle handover report
How it works in StepHub
- Document templates for processes or registers, with starter templates, placeholders, line items and conditional blocks.
- Automatic numbering per template, collision-free.
- Generation on events: when a step is approved, or when a record is created or changed; manual generation too.
- Sending as an email attachment, with language variants (Hungarian / English template).
- Details: Document generation.