Codota Logo
HTMLSettings.setImageDirPath
Code IndexAdd Codota to your IDE (free)

How to use
setImageDirPath
method
in
org.docx4j.convert.out.HTMLSettings

Best Java code snippets using org.docx4j.convert.out.HTMLSettings.setImageDirPath (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
origin: plutext/docx4j

/**
 *  Convert the document to HTML
 */	
public static void toHTML(WordprocessingMLPackage wmlPackage, String imageDirPath, String imageTargetUri, OutputStream outputStream) throws Docx4JException {
  StartEvent startEvent = new StartEvent( wmlPackage, WellKnownProcessSteps.HTML_OUT );
  startEvent.publish();
  
  HTMLSettings settings = createHTMLSettings();
  settings.setWmlPackage(wmlPackage);
  if (imageDirPath != null) {
    settings.setImageDirPath(imageDirPath);
  }
  if (imageTargetUri != null) {
    settings.setImageTargetUri(imageTargetUri);
  }
  toHTML(settings, outputStream, FLAG_NONE);
  
  new EventFinished(startEvent).publish();
}
 
origin: stackoverflow.com

htmlSettings.setImageDirPath(inputfilepath + "_files");
htmlSettings.setImageTargetUri(inputfilepath.substring(inputfilepath
    .lastIndexOf("/") + 1) + "_files");
origin: org.docx4j/docx4j

/**
 *  Convert the document to HTML
 */	
public static void toHTML(WordprocessingMLPackage wmlPackage, String imageDirPath, String imageTargetUri, OutputStream outputStream) throws Docx4JException {
  StartEvent startEvent = new StartEvent( wmlPackage, WellKnownProcessSteps.HTML_OUT );
  startEvent.publish();
  
  HTMLSettings settings = createHTMLSettings();
  settings.setWmlPackage(wmlPackage);
  if (imageDirPath != null) {
    settings.setImageDirPath(imageDirPath);
  }
  if (imageTargetUri != null) {
    settings.setImageTargetUri(imageTargetUri);
  }
  toHTML(settings, outputStream, FLAG_NONE);
  
  new EventFinished(startEvent).publish();
}
 
org.docx4j.convert.outHTMLSettingssetImageDirPath

Popular methods of HTMLSettings

  • setWmlPackage
  • setImageTargetUri
  • <init>
  • addFeatures
  • getCustomXsltTemplates
  • getFontMapper
  • getImageDirPath
  • getImageTargetUri
  • getScriptElementHandler
  • getStyleElementHandler
  • getUserBodyTail
  • getUserBodyTop
  • getUserBodyTail,
  • getUserBodyTop,
  • getUserCSS,
  • getUserScript,
  • getWmlPackage,
  • isImageIncludeUUID,
  • setCustomXsltTemplates,
  • setImageHandler

Popular in Java

  • Making http post requests using okhttp
  • onCreateOptionsMenu (Activity)
  • findViewById (Activity)
  • putExtra (Intent)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • IOException (java.io)
    Signals that an I/O exception of some sort has occurred. This class is the general class of exceptio
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Vector (java.util)
    The Vector class implements a growable array of objects. Like an array, it contains components that
  • LogFactory (org.apache.commons.logging)
    A minimal incarnation of Apache Commons Logging's LogFactory API, providing just the common Log look
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now