Copolymers featuring pentafuorophenyl ester and o-nitrobenzyl (ONB) protected amine moieties have been prepared. Upon UV irradiation, the ONB protected amine group was released, which subsequently induced a crosslinking by a spontaneous reaction with pentafluorophenyl esters, resulting in stable, reactive patterned thin films. Remaining esters were converted with a fluorescent dye.