running pdf 5 example correctly