You have to take some specific steps.
Clean the surface properly and allow it to dry.
Sand the composite surface to be painted along the direction of the grain.
Apply a layer of primer and allow it to dry for two hours.
Now, apply your desired paint color with a roller.