Researchers from the University of Glasgow are using a chemical-to-digital converter to digitize the process of drug manufacturing to 3D print pharmaceuticals on demand. The digital code is used by the 3D printer to make a portable factory, which can make the drug by adding chemicals in a pre-defined, fail-safe sequence, making it possible for users to synthesize nearly any compound.