Btw if you do need a permissively licensed model for this task, there are lots out there, e.g.:

https://github.com/KupynOrest/s3od

https://github.com/Tennine2077/PDFNet

https://github.com/PramaLLC/BEN