@@ -185,7 +185,7 @@ public class PdfUtil {
// log.info("fileName:{},width:{},height:{},pageSizeEnum:{},rotateInt:{}", file.getName(), width, height, pageSizeEnum, rotate);
if (Objects.nonNull(rotate)) {
Integer rotateInt = Integer.parseInt(rotate.toString());
- if (pageSizeEnum == PageSizeEnum.A3 && rotateInt != 90) {
+ if (pageSizeEnum == PageSizeEnum.A3 && (rotateInt != 0 && rotateInt != 90)) {
throw ExceptionResultEnum.ERROR.exception("上传的A3样式pdf请调整方向");
} else if (pageSizeEnum == PageSizeEnum.A4 && rotateInt > 0) {
throw ExceptionResultEnum.ERROR.exception("上传的A4样式pdf请调整方向");