Ask HN: Whould you be interested in an PDF customization API?
We are building an API which allow to integrate some external data (POST request) to an existing design. That allow to integrate easily web2print feature in any website.
You could even use some tech like Handlebars to do it with Node.js, so using your existing stack.
FPDFI, PDFLIB and Zend_PDF wkhtmltopdf flying-saucer
If you are only looking to edit xmp/meta/comments then you could possibly use an edit or amend but would still need one of the pdf libraries to post process.