Class WidthCalculator

java.lang.Object
com.itextpdf.tool.xml.css.WidthCalculator

public class WidthCalculator extends Object
  • Field Details

  • Constructor Details

    • WidthCalculator

      public WidthCalculator()
  • Method Details

    • getWidth

      public float getWidth(Tag tag, List<String> roottags, float pagewidth)
      Tries to calculate a width from a tag and it's ancestors.
      Parameters:
      tag - the tag to use
      roottags - the root tags,
      pagewidth - the page width
      Returns:
      the width
    • getWidth

      public float getWidth(Tag tag, List<String> roottags, float pagewidth, float initialTotalWidth)