jpg and gif support for pdf to image (#59)

This commit is contained in:
Anthony Stirling
2023-02-25 09:53:07 +00:00
committed by GitHub
parent c613164003
commit 51fe6970ef
3 changed files with 6 additions and 4 deletions

View File

@@ -61,7 +61,7 @@ public class ConvertImgPDFController {
boolean singleImage = singleOrMultiple.equals("single");
byte[] result = null;
try {
result = PdfUtils.convertFromPdf(pdfBytes, imageFormat.toLowerCase(), colorTypeResult, singleImage, Integer.valueOf(dpi));
result = PdfUtils.convertFromPdf(pdfBytes, imageFormat.toUpperCase(), colorTypeResult, singleImage, Integer.valueOf(dpi));
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();