ApiClass: saveDataAsPdf method is being written