fixed dept pdf generate