Class HtmlCell

  • All Implemented Interfaces:
    Element, IAccessibleElement

    public class HtmlCell
    extends PdfPCell
    HtmlCell is created to provide more parameters to better mimic the behavior of table cell in HTML.
    • Constructor Detail

      • HtmlCell

        public HtmlCell()
        Default constructor for a HTMLCell with no fixedWidth.
      • HtmlCell

        public HtmlCell​(PdfPCell pdfPCell)
        Constructor used for replacing a PdfPCell with a HtmlCell.
        Parameters:
        pdfPCell - PdfPCell.
    • Method Detail

      • setFixedWidth

        public void setFixedWidth​(float fixedWidth)
        Sets the fixed width of the HtmlCell.
        Parameters:
        fixedWidth - the fixed cell width
      • getFixedWidth

        public float getFixedWidth()
        Gets the fixed width of the HtmlCell.
        Returns:
        the fixed Width value