updated pdf.java to use the base64Image feature.