Convert CAD to PDF Failed in Linux

Product: PDFNetJava 64-bit (Linux)

Product Version: latest

I was trying to run sample CAD2PDFTest but always failed with error:

"File Name: construction drawings color-28.05.18.dwg

PDFNet is running in demo mode.

Converting DWG CAD document to PDF
Package: base
Package: aec
Unable to convert DWG document, error:
com.pdftron.common.PDFNetException: Exception:
Message: Error converting CAD content using CAD2PDF module Add-On.
Conditional expression: false
Version : 9.4.0-fd07a7d
Platform : Linux
Architecture : AMD64
Filename : Convert.cpp
Function : FromCAD
Linenumber : 1565

    at com.pdftron.pdf.Convert.FromCAD(Native Method)
    at com.pdftron.pdf.Convert.fromCAD(Convert.java:3335)
    at CAD2PDFTest.main(CAD2PDFTest.java:91)

com.pdftron.common.PDFNetException: Exception:
Message: Error converting CAD content using CAD2PDF module Add-On.
Conditional expression: false
Version : 9.4.0-fd07a7d
Platform : Linux
Architecture : AMD64
Filename : Convert.cpp
Function : FromCAD
Linenumber : 1565"

I also tried other CAD files but got same error.

p.s. I installed the required mesa libraries in my Ubuntu machine (libgl1-mesa-dev libx11-dev libglu1-mesa-dev)

Thanks

You need to make sure the CAD2PDF Module has execute permissions and that it has no missing dependencies.

For checking missing dependencies, you can follow along with this guide using the CAD2PDF Module instead of the HTML2PDF: