Interface XHTMLImageHandler

All Known Implementing Classes:
XHTMLImageHandlerDefault

public interface XHTMLImageHandler
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addImage(Docx4jUserAgent docx4jUserAgent, org.docx4j.openpackaging.packages.WordprocessingMLPackage wordMLPackage, org.docx4j.wml.P p, Element e, Long cx, Long cy)
     
    void
    setMaxWidth(int maxWidth, String tableStyle)
    Set the maximum width available (in twips); useful for scaling bare images if they are to go in a table cell.
  • Method Details

    • addImage

      void addImage(Docx4jUserAgent docx4jUserAgent, org.docx4j.openpackaging.packages.WordprocessingMLPackage wordMLPackage, org.docx4j.wml.P p, Element e, Long cx, Long cy)
      Parameters:
      docx4jUserAgent -
      wordMLPackage -
      p -
      e -
      cx - width of image itself (ie excluding CSS margin, padding) in EMU
      cy -
    • setMaxWidth

      void setMaxWidth(int maxWidth, String tableStyle)
      Set the maximum width available (in twips); useful for scaling bare images if they are to go in a table cell.
      Also set table style if images are really to go in a table cell (needed to remove table style margins from final width).
      Parameters:
      maxWidth -
      tableStyle - - can be null