Class PdfUtils
- java.lang.Object
-
- org.apache.camel.component.pdf.text.PdfUtils
-
public final class PdfUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static float
getAverageFontHeight(org.apache.pdfbox.pdmodel.font.PDFont font, float fontSize)
static float
getFontHeightForString(String str, org.apache.pdfbox.pdmodel.font.PDFont font, float fontSize)
static float
getFontWidth(String str, org.apache.pdfbox.pdmodel.font.PDFont font, float fontSize)
-
-
-
Method Detail
-
getAverageFontHeight
public static float getAverageFontHeight(org.apache.pdfbox.pdmodel.font.PDFont font, float fontSize) throws IOException
- Throws:
IOException
-
getFontHeightForString
public static float getFontHeightForString(String str, org.apache.pdfbox.pdmodel.font.PDFont font, float fontSize) throws IOException
- Throws:
IOException
-
getFontWidth
public static float getFontWidth(String str, org.apache.pdfbox.pdmodel.font.PDFont font, float fontSize) throws IOException
- Throws:
IOException
-
-