public FileContentResult PDFSetPicWatermark([FromForm] IFormFile inputPDFByte, [FromForm] IFormFile modelPicByte, [FromForm] float absoluteX, [FromForm] float absoluteY, [FromForm] float scalePercent = 40f, [FromForm] float rotationDegrees = 0f) { byte[] inputPDFBytes = new byte[inputPDFByte.Length]; inputPDFByte.OpenReadStream().Read(inputPDFBytes, 0, (int)inputPDFByte.Length); byte[] modelPicBytes = new byte[modelPicByte.Length]; modelPicByte.OpenReadStream().Read(modelPicBytes, 0, (int)modelPicByte.Length); var bytes = _PDFService.PDFSetPicWatermark(inputPDFBytes, modelPicBytes, absoluteX, absoluteY, scalePercent, rotationDegrees); return(new FileContentResult(bytes, "application/pdf")); }