open pdf file, search some text like "answer",
change next word text color to background color, to hide it. and save file.
PDF SDK find an open source or free license,
os platform is windows or osx,
program language can be C/C++/VB/OC/Ruby/Python , that is no matter.