Ignore:
Timestamp:
07/28/10 18:07:17 (22 months ago)
Author:
jharrop
Message:

Basic support for images in pptx svg in html output

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/docx4j/src/pptx4j/java/org/pptx4j/convert/out/svginhtml/SvgExporter.java

    r1096 r1179  
    5151public class SvgExporter { 
    5252         
     53        // NB: file suffix must end with .xhtml in order to see the SVG in a browser 
     54         
    5355        protected static Logger log = Logger.getLogger(SvgExporter.class);       
    5456 
    55         static JAXBContext jcSVG;        
     57        public static JAXBContext jcSVG;         
    5658    static ObjectFactory oFactory; 
    5759        static Templates xslt;                   
     
    7173        } 
    7274         
     75        private static String imageDirPath; 
     76        public static void setImageDirPath(String _imageDirPath) { 
     77                imageDirPath = _imageDirPath; 
     78        } 
     79         
    7380        public static void svg(PresentationMLPackage presentationMLPackage, 
    7481                        ResolvedLayout layout) throws Exception { 
     
    96103                htmlSettings.setWmlPackage(presentationMLPackage); 
    97104                htmlSettings.getSettings().put("resolvedLayout", layout); 
     105        htmlSettings.getSettings().put("imageDirPath", imageDirPath); 
    98106                 
    99107                org.docx4j.XmlUtils.transform(doc, xslt, htmlSettings.getSettings(), result); 
Note: See TracChangeset for help on using the changeset viewer.