As a producer of PDF files I mainly work with PDF/A. It's not particularly hard, just need to embed some information regarding colour space and fonts.

I use PDFBox for this purpose, it's Apache licensed.