Set up pdf generate