Tutorial: Hide or show drawings (circles, circles, squares) on reports

This tutorial is working only for DOCX and ODT files.
It is not possible to hide and show drawings dynamically on ODG, ODP and PPTX files. As every elements are "floating", there's no "anchor" notion and blocks of elements.

1. Insert the drawing

A line is inserted on the ODT document.

Line on an ODT document

2. Change the drawing anchor to "as character"

Line anchor changed to as character

3. Wrap the anchor point with conditional markers

The following screenshot is based on the JSON dataset: { "value" : true }

Wrap the drawing with markers

Generates the PDF report with Carbone, and voilà 🎉
Was this article helpful?
Cancel
Thank you!