clean up pdf generation format
clean up pdf generation format