Fix code (pdf password). Create lib of code.