I found this framework. I do not know it comes to the mentioned subject matter or whether it is possible to convert to a b4i library: https://github.com/KurtCode/PDFKitten