I almost certain that the sentence can also be... "He did not like the painting".
In Romanian "pictura" is both the action and its result. Not sure if in English you can refer to the action using the definite article like in your construction. I think it would be "He did not like painting." to refer to the action.