Image objImage = Image.load("E://CJK/cad/12.dwg");
CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions();
rasterizationOptions.setBackgroundColor(Color.getWhite());
rasterizationOptions.setPageWidth(1600);
rasterizationOptions.setPageHeight(1600);
// Create an instance of PdfOptions
PdfOptions pdfOptions = new PdfOptions();
// Set the VectorRasterizationOptions property
pdfOptions.setVectorRasterizationOptions(rasterizationOptions);
// Export the DWG to PDF
objImage.save("E://CJK/cad/" + UUID.randomUUID()+ ".pdf",pdfOptions);
win10开发系统导出的pdf没有问题。国产银河麒麟服务器上导出的pdf中午字符有问题(文字是左右结构或者上下结构的,文字分开,并且有偏移)