pdf contract is generated