Yes, I know, OS X has already a “print to pdf” feature. This does however not work for those applications which don’t use the OS X native printing dialog, e.g. some Java apps.
This is where CUPS-PDF kicks in. It adds a virtual printer to the system, thus enabling non-native applications to print to a PDF as well.