Adapting an office chair for lifting and lowering is possible but it is likely easier and more cost effective to identify and utilize a pneumatic cylinder already adapted for this task.
Search the internet for "Pneumatic cylinder suppliers". Well known OEM's - Parker, Bimba, SMC USA