Hi Eugenio,
Yes, line pressure is only available in 3D. The only way I can think of is to do an integration and convert stress to force, then apply nodal force to the top edge. Unlike force, nodal force allows you to define space-dependent magnitude.
Regards,
Wenlong