A method for preparing a polyimide includes introducing a mixture of an
oligomer and a solvent to an extruder, removing solvent via at least one
extruder vent, and melt kneading the oligomer to form a polyimide. The
polyimide has a low residual solvent content. The method is faster than
solution polymerization of polyimides, and it avoids the stoichiometric
inaccuracies associated with reactive extrusion processes that use
monomers as starting materials.