You could use Ghostscript, or MuPDF, I'm sure there are others. Both will require programming on your part. Both are available under commercial ...
stackoverflow.com