Class PartsStrip

java.lang.Object
org.docx4j.samples.PartsStrip

public class PartsStrip extends Object
Remove certain parts from docx, either the specified docx, or each one in the specified directory (beware!). For this reason, this sample is shipped pointing to a non-existent directory. Which parts are deleted is configurable to some extent; please consult the code to see.
  • Field Details

    • save

      static boolean save
    • flatOpcXmlOutput

      static boolean flatOpcXmlOutput
    • overwriteInputFile

      static boolean overwriteInputFile
    • dir

      static String dir
    • file

      static String file
    • stripPropertiesParts

      static boolean stripPropertiesParts
    • keepStyles

      static boolean keepStyles
    • defaultToDelete

      static boolean defaultToDelete
    • log

      private static org.slf4j.Logger log
  • Constructor Details

    • PartsStrip

      public PartsStrip()
  • Method Details