Capillary transfer of soft films