Hi~
tomcat 7.0
jdk 1.7.0.51
com.aspose.cad.cadexeptions.ImageLoadExeption: unable toread Dwf content : ‘MS949’ is not supported encoding
dxf to pdf : success
dwg topdf : success
Hi~
tomcat 7.0
jdk 1.7.0.51
com.aspose.cad.cadexeptions.ImageLoadExeption: unable toread Dwf content : ‘MS949’ is not supported encoding
dxf to pdf : success
dwg topdf : success
I have observed the issue shared by you and request you to please share the source file reproducing the issue along with used sample code. Please also share the Operating System details on your end too.
Test OS = Windows 10Pro Korean, CentosOs linux release 7.5.1804
Sample Dwf
DownloadZip in
Aspose.Cad-for-java-master/Example/src/main/resource/DwFDrawings/for_layer_test.dwf
Code===================================
if(originalFileExtension.equals(“.dwg”)||originalFileExtension.equals(“.dxf”)||originalFileExtension.equals(“.dwf”)){
String asposeName= StringUtil.getRandomString(); // UUID
CadImage image = (CadImage) Image.load(multipartFile.getInputStream());
PdfOptions pdfOptions = new PdfOptions();
CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions();
rasterizationOptions.setBackgroundColor(Color.getWhite());
rasterizationOptions.setLayouts(new String[] { "Model" });
rasterizationOptions.setAutomaticLayoutsScaling(true);
rasterizationOptions.setNoScaling (false);
for(Object style : image.getStyles())
{
((com.aspose.cad.fileformats.cad.cadtables.CadStyleTableObject)style).setPrimaryFontName("나눔 고딕"); // or tahoma
}
pdfOptions.setVectorRasterizationOptions(rasterizationOptions);
/*
ByteArrayOutputStream byteOut = new ByteArrayOutputStream();
BufferedOutputStream output = new BufferedOutputStream(byteOut);
image.save(output,pdfOptions);
output.close();
if(fc.encryptByte(byteOut.toByteArray(), new File(filePath+asposeName))){
rmap.put("FILE_PDF_SIZE", byteOut.size());
rmap.put("FILE_REAL_NM_PDF", asposeName);
}
}
*/
image.save(“c\test\123.pdf”,pdfOptions);
I have worked over the issue shared by you and an issue with ID CADJAVA-566 has been created in our issue tracking system to further 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.
Good morning I’m the person who registered this issue.
I would like to know when the reflection of this issue will be addressed.
Once the issue is resolved, we will purchase and use it.
then…
Please answer fast.
I have verified the issue status from our issue tracking system and like to share that it has been added recently in our issue tracking system. The issue is pending in issues queue at the moment and we request for your patience in this regard. We will share the good news with you as soon as the issue will be fixed.