implemented pdf encryption to prevent unauthorized editing