Free Support Forum -

DWG to PDF: The chinese characters appear as box

My operating system: Windows 10
Aspose.cad version: 19.5
Here is my code:
public void DWGFileToPDF(String srcFile, String dataDir, String resultPDFName) {
LoadOptions loadOptions = new LoadOptions();
CadImage objImage = (CadImage)Image.load(srcFile, loadOptions);
Rectangle r=objImage.getBounds();
int width= r.getWidth();
int height=r.getHeight();
CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions();
PdfOptions pdfOptions = new PdfOptions();
pdfOptions.setVectorRasterizationOptions(rasterizationOptions); + resultPDFName, pdfOptions);
Here are the DWG and PDF:source.png (15.3 KB)
result.png (14.8 KB)
Remarks:I have checked the relevant problems, and tested and determined that the font suffix of the box generated in the DWG file is’. SHX ‘, which is not available in the vector font operating system with’. SHX 'suffix, so it will cause the font to become a box, so what should I do now?


I have observed the issue shared and suggest you to please first try using latest Aspose.Cad for Java 19.9 on your end. In case the issue is reproduced, please share the source DWG and generated PDF with us. We will be able to investigate the issue further on our end on provision of requested information.

I tried version 19.9 and found that the problem is still the same
This is my source (2.1 MB)


I have worked with the sample file and have been able to observe the issue. An issue with ID CADJAVA-616 has been created in our issue tracking system to investigate and resolve the issue. This thread has been linked with the issue so that you may be notified once the issue will be fixed.

Hello, do you have any results here


I have verified from our issue tracking system and regret to share that at present the issue is unresolved. We request for your patience till the issue gets resolved and feedback is shared.