package eu.europa.esig.dss.pdf.pdfbox.visible.nativedrawer;

import java.io.IOException;

import org.apache.pdfbox.pdmodel.font.PDFont;

public class NativePdfBoxDrawerUtils {
	
	/**
	 * Computes width for a single string
	 * 
	 * @param pdFont {@link PDFont} of the text
	 * @param fontSize float size of the font
	 * @param str {@link String} text
	 * @param dpi integer dpi
	 * @return string width
	 * @throws IOException if an exception occurs
	 */
	public static float getTextWidth(PDFont pdFont, float fontSize, String str) throws IOException {
		return pdFont.getStringWidth(str) / 1000 * fontSize;
	}
	
	/**
	 * Computes height for a single string
	 * 
	 * @param pdFont {@link PDFont} of the text
	 * @param fontSize float size of the font
	 * @param dpi integer dpi
	 * @return string height
	 * @throws IOException if an exception occurs
	 */
	public static float getTextHeight(PDFont pdFont, float fontSize) throws IOException {
		return pdFont.getBoundingBox().getHeight() / 1000 * fontSize;
	}

}

@@ -230,32 +230,34 @@
 * @param pdFont 
+  
 %7B@link PDFont%7D o
@@ -325,16 +325,21 @@
 ram str 
+     
 %7B@link S
@@ -359,48 +359,23 @@
  * @
-param dpi integer dpi%0A%09 * @return string
+return the text
  wid
@@ -655,16 +655,18 @@
  pdFont 
+  
 %7B@link P
@@ -736,48 +736,23 @@
  * @
-param dpi integer dpi%0A%09 * @return string
+return the text
  hei

Fix javadoc