I figured it out, Example below.
Add this javascript to the page...
function
CuteEditor_OnCommand(editor, command, ui, value) {
if (command == "SaveAsPdf") { // This is the command of the Save as Pdf object I created in the common.config file
// Then save as a pdf documnet
return true;
}
}