Class WmfImageHelper

java.lang.Object
com.itextpdf.kernel.pdf.canvas.wmf.WmfImageHelper

public class WmfImageHelper extends Object
Helper class for the WmfImage implementation. Assists in the creation of a PdfFormXObject.
  • Field Details

    • wmfFontCorrection

      public static float wmfFontCorrection
      Scales the WMF font size. The default value is 0.86.
  • Constructor Details

    • WmfImageHelper

      public WmfImageHelper (ImageData wmf)
      Creates a helper instance.
      Parameters:
      wmf - the WmfImageData object
  • Method Details

    • createFormXObject

      public PdfXObject createFormXObject (PdfDocument document)
      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