Websphere 使用运行在RHEL中的IBM WAS 9将PDF保存到TIFF文件时出现字符错误

Websphere 使用运行在RHEL中的IBM WAS 9将PDF保存到TIFF文件时出现字符错误,websphere,pdfbox,rhel,icafe,Websphere,Pdfbox,Rhel,Icafe,为什么从PDF保存到TIFF文件时复选框未正确呈现。在我的本地机器(Windows操作系统)中,它工作正常,但在运行在RHEL中的IBM WAS 9中,它不工作。我使用TIFFTweaker()将图像组合到TIFF文件中,并使用PdfBox 2.0.8渲染PDF图像。以下是示例代码: 渲染图像: public BufferedImage renderImage( PDDocument document, int index, int dpi, ImageType imageTyp

为什么从PDF保存到TIFF文件时复选框未正确呈现。在我的本地机器(Windows操作系统)中,它工作正常,但在运行在RHEL中的IBM WAS 9中,它不工作。我使用TIFFTweaker()将图像组合到TIFF文件中,并使用PdfBox 2.0.8渲染PDF图像。以下是示例代码:

渲染图像:

public BufferedImage renderImage(
        PDDocument document, int index, int dpi, ImageType imageType) 
                throws Exception {
    PDFRenderer renderer = new PDFRenderer(document);

    return renderer.renderImageWithDPI(index, dpi, imageType);
}
保存TIFF文件:

private void saveImage(String absoluteFilename, BufferedImage[] images) 
        throws IOException, Exception {
    if(images == null || images.length <= 0) {          
        return;
    }

    ByteArrayOutputStream baos = new ByteArrayOutputStream();

    RandomAccessOutputStream rout = new FileCacheRandomAccessOutputStream(baos);        

    ImageParam[] imageParams = new ImageParam[images.length];

    for (int i = 0; i < images.length; i++) {
        imageParams[i] = imageTool.getTiffBuilder(DPI).build();
    }

    TIFFTweaker.writeMultipageTIFF(rout, imageParams, images);

    byte[] byteArray = baos.toByteArray();

    if (byteArray != null && byteArray.length > 0) {
        fileToolManager.getFileTool().save(byteArray, absoluteFilename);
    }

    baos.close();
}
private void saveImage(字符串绝对文件名,buffereImage[]图像)
抛出异常,异常{
if(images==null | | images.length 0){
fileToolManager.getFileTool().save(byteArray,绝对文件名);
}
baos.close();
}

RHEL计算机上可能没有本地计算机上可用的pdf中使用的字体。1)当前版本为2.0.9 2)是否有任何日志消息?3) 是否安装了Zapf Dingbats字体?还是哥特女士?请自己回答问题,或删除问题。