diff --git a/src/main/java/stirling/software/SPDF/controller/api/converters/ConvertImgPDFController.java b/src/main/java/stirling/software/SPDF/controller/api/converters/ConvertImgPDFController.java index 3e4fa6ba0ba..cee8b962a1c 100644 --- a/src/main/java/stirling/software/SPDF/controller/api/converters/ConvertImgPDFController.java +++ b/src/main/java/stirling/software/SPDF/controller/api/converters/ConvertImgPDFController.java @@ -215,7 +215,7 @@ public ResponseEntity convertToPdf(@ModelAttribute ConvertToPdfRequest r colorType = "color"; } if (fitOption == null || fitOption.isEmpty()) { - fitOption = "fitDocumentToImage"; + fitOption = "fillPage"; } // Convert the file to PDF and get the resulting bytes byte[] bytes =