numbers name
This commit is contained in:
parent
9e655631b4
commit
29dab5e47d
1 changed files with 2 additions and 4 deletions
|
@ -165,10 +165,8 @@ public class PageNumbersController {
|
|||
pdfDoc.close();
|
||||
byte[] resultBytes = baos.toByteArray();
|
||||
|
||||
return ResponseEntity.ok()
|
||||
.header("Content-Type", "application/pdf; charset=UTF-8")
|
||||
.header("Content-Disposition", "inline; filename=" + URLEncoder.encode(file.getOriginalFilename().replaceFirst("[.][^.]+$", "") + "_numbersAdded.pdf", "UTF-8"))
|
||||
.body(resultBytes);
|
||||
return WebResponseUtils.bytesToWebResponse(resultBytes, URLEncoder.encode(file.getOriginalFilename().replaceFirst("[.][^.]+$", "") + "_numbersAdded.pdf", "UTF-8"), MediaType.APPLICATION_PDF);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue