Package org.docx4j.convert.in.xhtml
Interface XHTMLImageHandler
- All Known Implementing Classes:
XHTMLImageHandlerDefault
public interface XHTMLImageHandler
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddImage(Docx4jUserAgent docx4jUserAgent, org.docx4j.openpackaging.packages.WordprocessingMLPackage wordMLPackage, org.docx4j.wml.P p, Element e, Long cx, Long cy) voidsetMaxWidth(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 EMUcy-
-
setMaxWidth
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
-