Execute activity in coded workflow

How can we execute the activity in coded workflow in UiPath? For example, execute UiPath ReadPdfText activity in the coded workflow and get pdf text