Class DataConvertUtil

java.lang.Object
io.keikai.doc.io.schema.pdf.utils.DataConvertUtil

public class DataConvertUtil extends Object
Internal Use Only.

Utility class to convert data.

Author:
jamson
  • Field Details

    • NOTDEF_FS_RATIO

      public static final float NOTDEF_FS_RATIO
      Represents the not defined character font size ratio.
      See Also:
    • TEXT_AFTER_SPACING

      public static final float TEXT_AFTER_SPACING
      Represents the after spacing ratio of pdf text.
      See Also:
    • TEXT_BG_COLOR_OFFSET

      public static final float TEXT_BG_COLOR_OFFSET
      Represents the background color offset ratio of pdf text.
      See Also:
    • SUP_AND_SUB_FS_RATIO

      public static final float SUP_AND_SUB_FS_RATIO
      Represents superscript and subscript font size ratio.
      See Also:
    • SUP_OFFSET_FS_RATIO

      public static final float SUP_OFFSET_FS_RATIO
      Represents superscript y offset font size ratio.
      See Also:
    • SUB_OFFSET_FS_RATIO

      public static final float SUB_OFFSET_FS_RATIO
      Represents subscript y offset font size ratio.
      See Also:
    • ST_OFFSET_FS_RATIO

      public static final float ST_OFFSET_FS_RATIO
      Represents the strike-through y offset font size ratio.
      See Also:
    • ST_WIDTH_FS_RATIO

      public static final float ST_WIDTH_FS_RATIO
      Represents the strike-through width font size ratio.
      See Also:
    • U_WIDTH_FS_RATIO

      public static final float U_WIDTH_FS_RATIO
      Represents the underline width font size ratio.
      See Also:
    • U_AFTER_SPACING

      public static final float U_AFTER_SPACING
      Represents the underline after spacing ratio.
      See Also:
    • COMP_VERTICAL_OFFSET

      public static final float COMP_VERTICAL_OFFSET
      Represents the vertical offset of the component.
      See Also:
    • P_TYPE_MARGIN_RATIO

      public static final Map<io.keikai.doc.api.impl.node.style.ParagraphStyle.Type,Float> P_TYPE_MARGIN_RATIO
      Represents the before and after margin ratio of the paragraph.

      Different types of paragraph have different before and after margin ratio, multiply it with the font size to get the REAL before and after margin.

  • Constructor Details

    • DataConvertUtil

      public DataConvertUtil()