PDF generator iOS tutorial application in Swift