Cookbook
Clone blocks
javadocx includes several methods to work with block elements. These elements allow to define regions made of one or more contents in a DOCX, which can be cleaned of placeholders, deleted and cloned.
cloneBlock is a method that allows to clone all the content of a block. This method is available in Advanced and Premium licenses only.
For example, to clone the content of the region enclosed by the $BLOCK_TABLES$ placeholders, type this code:
Note that to call the cloneBlock method you have to write the placeholder identifier without neither the $BLOCK_ prefix nor the final $ symbol.