I'm afraid you'll probably have to write it yourself. No such beast exists that
I know of.
Welcome to the forum, though.
EDIT: There's probably open-source java code available for manipulating PDFs, but the only open-source code for manipulating MOBIs that
I know of is either in Perl (MobiPerl) or Python (calibre).