Export to PDF to a doc library

Is there a way that a PDF can be generated on an event and placed into a document library?
The use case is that when a SharePoint item status changes to completed, I want to generate a PDF of the item and automatically place it in a document library on the same site?

Hello @Amys_Turtlgal,

In your case it is better to use the Flow to create a PDF file and save it to SharePoint Document Library. Please find the example in this article.