It is open source and built for unix/debian Linux so it will require some toying with, but it is a start.
http://pdfedit.cz/en/index.html
you can use SDKs like Foxit here..
and another way is libraries like Qoppa pdf or MuPdf are free