Skip to content

Commit

Permalink
[MNT-23960] Font size parameter minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagosalvado10 committed Feb 6, 2024
1 parent a1bbafb commit e4d04d7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,16 +165,16 @@ public void transform(final String sourceMimetype, final String targetMimetype,
}
String pdfFontSize = transformOptions.get(PDF_FONT_SIZE);
Integer fontSize = null;
if (pdfFontSize != null)
if (pdfFontSize != null && !pdfFontSize.isBlank())
{
try
{
fontSize = parseInt(pdfFontSize, PDF_FONT_SIZE);
}
catch (Exception e)
{
logger.error("Error parsing font size {}, going to set it as {} : {}", fontSize, DEFAULT_FONT_SIZE, e.getMessage());
fontSize = DEFAULT_FONT_SIZE;
logger.error("Error parsing font size {}, going to set it as {} : {}", pdfFontSize, fontSize, e.getMessage());
}
}

Expand Down

0 comments on commit e4d04d7

Please sign in to comment.