generating pdf fixed

generating pdf fixed