A photoresist film containing a sulfonium or iodonium salt of carboxylic acid having an amino group has a high dissolution contrast and offers improved resolution, wide focus margin and minimal LWR when used as a positive resist film adapted for alkaline development and a negative resist film adapted for organic solvent development.