An inkjet printer which can be used for printing a resist pattern on a printed circuit board when wiring patterns are to be formed on the board. The inkjet printer has a liquid ejecting head which comprises: a liquid chamber filled with liquid and connected to a liquid storage tank; a capillary nozzle connected to the liquid chamber; a discharge unit for acting on the liquid filled in the liquid chamber to eject the liquid through an outlet of the capillary nozzle toward an object to be printed; and a negative pressure generating unit for applying a negative pressure in a direction in which the liquid is ejected from the outlet of the capillary nozzle. Due to the application of negative pressure, a liquid having a viscosity higher than that of a general ink can be ejected.