Note to myself: 15 March 2017

1. Forbidden fonts

In the PDF of the book I used fonts that OUP does not want me to use. These are:

	Palatino
	Times
	Courier
	Math

After come experimentation I found out that these fonts come from the EPS figures that I 
produced via WPG --> EMF --> EPS program (called MetafiletoEPS). It apparently uses some
windows fonts that are not licensed to me or OUP. 

To solve the problem I must use Latex --> PDF to produce the book. Then there are two
choices: 

	Let Latex convert the EPS files (with the eps2pdf package). This is no good because
	the offending fonts remain.
	Convert all EPS files to PNG. This is a compressed bitmap image that does not contain
	any fonts anymore. latex --> PDF can handle PNG files directly. 

2. How to convert an EPS image to the PNG format

Siep Kroonenberg has written as command program (like a bat file of old days) called 

	Convert2png.cmd

It only has one line:

"c:\Program Files\gs\gs9.19\bin\gswin64c.exe" -q -sOutputFile#%1.png -r600 -dNOPAUSE -sBATCH -dEPSCrop -sDEVICE#pngmono -f %1.eps

	uses Ghostscript 9.19
	makes an EPS file into PNG
	resolution = 600
	pngmono = for black-and-white images
	png16	= 4bit color
	png256	= 8bit color
	pnggray	= gray scale
	png16m	= 24rgb
	
Usage:

	run cmd.exe
	go to directory with the EPS figures
	for each file: 
	
	Convert2png F01_01.eps
	


3. How to convert many EPS images to the PNG format

	MultConvert2png.cmd

It only has one line:

"c:\Program Files\gs\gs9.19\bin\gswin64c.exe" -q -sOutputFile#%~dpn1.png -r600 -dNOPAUSE -sBATCH -dEPSCrop -sDEVICE#pngmono -f %1
		
Usage:

	run cmd.exe
	
	go to directory with the EPS figures
		
	for %f in (*.eps) do MultConvert2png %f
	
	