Class FOXSLTHelper

java.lang.Object
org.ametys.cms.transformation.xslt.FOXSLTHelper

public final class FOXSLTHelper extends Object
Helper for converting XML to FO
  • Method Details

    • divide

      public static String divide(String size, int parts)
      Divide the given size in equal parts.
      Parameters:
      size - the input size, with its own unit
      parts - number of parts to divide the total size into
      Returns:
      the converted size in pixels
    • divideAndConvertToPx

      public static String divideAndConvertToPx(String size, int parts, double blockSize)
      Convert the given size to pixels and divide it in equal parts.
      Parameters:
      size - the input size, with its own unit
      parts - number of parts to divide the total size into
      blockSize - the surrounding block size, in cm
      Returns:
      the converted size in pixels