Class WmfImageHelper
java.lang.Object
com.itextpdf.kernel.pdf.canvas.wmf.WmfImageHelper
Helper class for the WmfImage implementation. Assists in the creation of a
PdfFormXObject
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate float
private float
private WmfImageData
static float
Scales the WMF font size. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateFormXObject
(PdfDocument document) Create a PdfXObject based on the WMF image.private void
This method checks if the image is a valid WMF and processes some parameters.
-
Field Details
-
wmfFontCorrection
public static float wmfFontCorrectionScales the WMF font size. The default value is 0.86. -
wmf
-
plainWidth
private float plainWidth -
plainHeight
private float plainHeight
-
-
Constructor Details
-
WmfImageHelper
Creates a helper instance.- Parameters:
wmf
- theWmfImageData
object
-
-
Method Details
-
processParameters
private void processParameters()This method checks if the image is a valid WMF and processes some parameters. -
createFormXObject
Create a PdfXObject based on the WMF image. The PdfXObject will have the dimensions of the WMF image.- Parameters:
document
- PdfDocument to add the PdfXObject to- Returns:
- PdfXObject based on the WMF image
-