Commit First Gen pdf function