Event to generate custom documentation?

Is there any built-in function in BPMN to generate custom documentation? I have visual example of the PDF it would have to generate:

EXAMPLE1
EXAMPLE2
EXAMPLE3

I noticed that there is a documentation event but I am not sure if that is exactly what I am looking for since I haven’t seen practical examples about it.

Does BPMN offers any features like that?

Documentation allows you to attach structured and unstructured meta-data to any BPMN element. If that is enough to generate the results you need, I don’t know.

You can however serialize any information along the BPMN diagram, and read it, too.