Created attachment 20940 [details] line will be ignored by MuPDF viewer and mutool draw If the /OCGs key of an /OCMD object is a dictionary, and not an array, then the wrong OCMD state may be computed. The attached example contains 1 OCG an 1 OCMD referencing the OCG as a dictionary. The first textline is subject to the OCMD's visibility state. Result: The viewer MuPDF will not show that textline, and its text will neither be extracted via mutool draw. If however changing the OCMD reference of the OCG to a (one-element) array, expected behaviour occurs. According to PDF spec, the /OCGs key in OCMD objects may be either: an array or a dictionary.