Uses of Class
org.docx4j.samples.AbstractSample
Packages that use AbstractSample
-
Uses of AbstractSample in org.docx4j.samples
Subclasses of AbstractSample in org.docx4j.samplesModifier and TypeClassDescriptionclassclassCreates a WordprocessingML document from scratch, and adds a comment.classThis sample is similar to PartsList, but it provides info specific to your CustomXML parts.classShow the content controls in the main document part indenting as nested.classclassConvert a docx to 'Flat OPC XML' format, which Word/Powerpoint can happily read, and which is convenient for editing in an XML editor.classThis sample uses XSLT (and Xalan) to produce HTML output.classThis sample uses XSLT (and Xalan) to produce HTML output.classProtect document against editing in Word.classSimple example showing how to see the document's XML (MainDocumentPart).classShows how to access a docx's: - Core properties (Dublin Core title, creator etc) - Extended properties (app.xml) - Custom properties (where you can store your own data, as shown here) Note there is often also /word/settings.xml (see also TemplateAttach for how to set a dotx in that part)classSimple example of monitoring docx4j events.classExample of adding the INCLUDEPICTURE field, via simple and complex field approaches.classExample showing how to remove font type and size settings from throughout the document, and setting these in rPrDefault.classThis sample tells you how docx4j is interpreting headers/footers in your docx.classCreate a WordML Pkg and add a header to it.classThis sample demonstrates how the MergeDocx utility can be used to merge docx documents.classCreate a docx which says "hello world"classSimple example of opening an existing docx, and saving it again.classTo see what parts comprise your docx, try the PartsList sample.classExample of loading an unzipped file from the file system.classExample of saving a docx unzipped.classclassRestrict formatting to an allowed set of styles.classShows how to creates a WordprocessingML document from a template (dotx file), and how to attach a template (for example, instead of Normal.dot)classAccept changes (r:ins, r:del) in the Main Document Part, via XSLTclassShows how to turn the track changes setting off (or on), for when the docx is next edited in Word.classThere are at least 3 approaches for replacing variables in a docx.