zhouc PDF拆分图片以及单页
This commit is contained in:
parent
b5075b9413
commit
3ce85b2874
@ -34,9 +34,9 @@ public class PDFController {
|
||||
private PdfSplitService pdfSplitService;
|
||||
private String uploadDir; // 配置文件设置存储路径
|
||||
|
||||
@PostMapping("/split_result")
|
||||
@PostMapping("/split_pdf")
|
||||
@Operation(summary = "PDF拆分")
|
||||
@PreAuthorize("@ss.hasPermission('system:pdf:split_result')")
|
||||
@PreAuthorize("@ss.hasPermission('system:pdf:split_pdf')")
|
||||
public ResponseEntity<?> splitPdfresult(@RequestParam("file") MultipartFile file) {
|
||||
try {
|
||||
if (!file.getContentType().equals("application/pdf")) {
|
||||
|
Loading…
Reference in New Issue
Block a user