This work describes the quantitative analysis of mercury present in the ink used to colour some books of XVIII century. The mercury content was determined by Energy Dispersive X-ray Spectrometry. This is a non-destructive technique which allows elemental identification and quantification (Z > 13) by atomic physics processes. The organic pigments cannot be identified by this technique, taking into account that its composition is mainly C, O and H. Levels of 2 wt.% and 4.5 wt.% were measured in 1756 and 1753 books respectively. No significant amount of mercury was observed in other red books, on a total of 11, all from XVIII century: 1720, 1732, 1753, 1756, 1780, 1798, 1800. More than one book for each year were analysed. The studied books belong to a private collection, and were selected taking into account the age and the reddish colour of their external parts. High content on Fe were observed in some of the books. This work highlights the application of a physics technique in a very important aspect for art and cultural heritage conservation and restoration, considering that high levels of toxic elements might be found in ancient documents. It is of great importance that preliminary elemental analyses are performed on ancient documents before handling them, because they might constitute some danger for restorers, conservators and collectors. This work highlights, for the first time, the danger of some ancient books. They might contain a very high concentration of mercury, which is toxic for the organism. This is also a particularly important problem of public health never mentioned in literature before.