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 3e4fa6ba..cee8b962 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 class ConvertImgPDFController { colorType = "color"; } if (fitOption == null || fitOption.isEmpty()) { - fitOption = "fitDocumentToImage"; + fitOption = "fillPage"; } // Convert the file to PDF and get the resulting bytes byte[] bytes =