pdf debug option added