Gastric resistant film-forming compositions are described herein. The composition contains a gastric resistant natural polymer, a film-forming natural polymer, and optionally a gelling agent. Suitable gastric resistant natural polymers include polysaccharides such as pectin and pectin-like polymers. The film-forming composition can be used to prepare soft or hard shell gelatin capsules which can encapsulate a liquid or semi-solid fill material or a solid tablet (SOFTLET®) containing an active agent and one or more pharmaceutically acceptable excipients. Alternatively, the composition can be administered as a liquid with an active agent dissolved or dispersed in the composition. The compositions are not only gastric resistant but may also prevent gastric reflux associated with odor causing liquids, such as fish oil or garlic oil, encapsulated in a unit dosage form and esophageal irritation due to the reflux of irritant drugs delivered orally.