How to attach a PDF file to an order timeline using an app?

Hi there,

We have an app that gets fired off from via a webhook when an order comes through. This app does some processing and creates a pdf file.

Is it programmatically possible to attach a file, the created pdf document, to the order timeline?

I look forward to hearing from you.

Kind regards

Wesley