Converting DWG to PDF with embedded objects

Product: PDFTron .NET

Product Version: 11.2

Please give a brief summary of your issue:
Converting DWG that contains embedded objects to PDF not working.

Please describe your issue and provide steps to reproduce it:
When converting DWG that contains embedded objects to PDF, the embedded object doesn’t appear in the PDF. If we do this through desktop tools such as AutoCAD, the embedded object appears fine. There is no error observed, the embedded objects look to be stripped out in the PDF.

The DWG sample has been attached.

Please provide a link to a minimal sample where the issue is reproducible:

1 Like

Hello, I’m AiRon, an automated tech support bot :robot:
While you wait for one of our customer support representatives, I can help you with your question.


It seems like you’re experiencing an issue converting DWG files with embedded objects to PDF using the PDFTron .NET library. This can happen because the conversion process might not fully support certain embedded objects directly, unlike some desktop tools like AutoCAD.

Some things you can try:

  • Ensure that you are using the latest version of the Apryse (formerly PDFTron) library, as updates often include relevant bug fixes and improvements.

  • Check if the embedded objects are supported by the conversion process. Sometimes, specific object types may not be directly convertible.

  • Consider using an intermediary format or process to handle the embedded objects before converting to PDF.

  • Verify that all necessary dependencies for the CAD module are correctly installed and configured on your system.



Here are some resources that might help you:


Hopefully, this helps you solve your problem while you wait for a human to get back to you.

1 Like

Link to DWG: Drawing 001.dwg - Google Drive

1 Like

Thank you for the sample file, the team is reviewing, and once I know more I will update you.

1 Like

The team has reviewed the file and determined that it contains OLE objects, which are not supported for security safety.

These objects can be any type and are in fact rendered to image using whatever external application is registered with Windows OS for that object type.

For example, an OLE Excel object embedded in the CAD will be rendered using MS Excel.

If we do this through desktop tools such as AutoCAD

Finally, OLE is a Windows only technology, so this sort of DWG file would have no chance to convert on a Linux server.

Do you plan to run Apryse PDFNet SDK with CAD module on a Windows, or Linux, server?
Is this file from one of your customers?
You seemed to be aware that the issue was due to OLE objects, how did you know?

1 Like