An inkjet printer includes a mixer and a metering system that system provides appropriate amounts of the resin's precursors into the mixer. The mixer thoroughly mixes these precursors and feeds the resulting resin to the printheads. The inkjet printer may include a cleaning system that removes residual resin during or after printing.