Add paragraph info to C-API(fix issue 1388)