Hello Support team,
I am trying to do DWG to SVG conversion in LInux environment using aspose library, it is failing in LInux environment
From the code I need to do the conversion and as well as get the DWG file version.
Conversion is failing at this line
CadImage cadImage = (CadImage) image;
Here is the required details of the environment.
Amazon Linux 2023.6.20250218
fontconfig version 2.13.94
I am attaching conversion code and conversion logs
Please share your inputs to resolve the issue.
aspose tickets.zip (1.8 KB)
@shivanandtripathi
It appears you are encountering issues with DWG to SVG conversion in a Linux environment using the Aspose library. The error occurs when attempting to cast the image to CadImage
. Here are some steps to troubleshoot and potentially resolve the issue:
-
Check Dependencies: Ensure that all necessary dependencies for Aspose.CAD are correctly installed in your Linux environment. Missing libraries can often lead to conversion failures.
-
Font Configuration: Since you are using fontconfig version 2.13.94, verify that the fonts required for rendering the DWG files are properly configured. You may need to install additional fonts or adjust font paths.
-
Review Conversion Logs: Examine the conversion logs for any specific error messages that could provide more insight into the failure. This information can be crucial for diagnosing the issue.
-
Sample Code: If possible, share a minimal version of your conversion code. This can help identify any potential issues in your implementation.
-
Contact Support: If the problem persists, consider reaching out to Aspose support with detailed logs and your environment setup for further assistance.
If you need further clarification or assistance, feel free to ask!
@shivanandtripathi,
Hello,
could you please attach also the initial DWG file so we can try to reproduce the problem directly?
Here I am attaching one sample DWG file
testdwgfile.zip (30.0 KB)
@shivanandtripathi,
thank you for details, we have created CADJAVA-12037 to investigate this issue.