On this page
Usually it is very difficult to determine changes that have been made in Autodesk DXF (Drawing eXchange Format) documents. In the same time it is highly popular issue, especially nowadays, when lots of companies have employee who works remotely. Fortunately, with GroupDocs.Comparison API you can easily compare two DXF documents as well as other supported file formats
The result of comparison can be saved as PDF file with highlighting changed, deleted or inserted elements. You can easily change highlighting colors so that changes will be marked differently. Default colors are:
- Objects that were deleted – red
- Objects that were inserted – blue
- Objects that were changed – green
To compare DXF (Autodesk Drawing eXchange Format) documents you should do next:
- Create new instance of Comparer class passing source document path or stream as an argument
- Call add method passing target document path or stream as an argument
- Call compare method to run the comparison process
The following Java code sample demonstrates an approach described above:
The same thing you can do in Kotlin:
Here are examples of source, target and result documents:
|Source DXF (Autodesk Drawing eXchange Format) document||Target DXF (Autodesk Drawing eXchange Format) document|
|Result PDF document|
GroupDocs.Comparison library has lots of options that can be used to customize comparison process as well as the result file. Here are just a few options are shown. For more details look the documentation
You can easily enable generating special page where will be shown summary information about changes in the document. Moreover, you can enable generating extended summary page to get much more detailed information.
Here is code example for Java:
The same you can do in Kotlin application:
To use custom change style just configure comparer so that it will highlight changes the way you want.
Here is code example for Java:
In Kotlin it works the same way:
Most of the settings, for example generating summary page, sensitivity of comparison and so on are available only with license. You can get a free temporary license in order to use the API without evaluation limitations.
In this article is written about comparing DXF (Autodesk Drawing eXchange Format) documents using GroupDocs.Comparison library. The library can be easily embedded to any Java or Kotlin, desktop or web application on any platform. There are samples of using Comparison API inside web applications on GitHub page. They are free to be modified and used for comparing AutoCad drawings, photos, Excel, Word, code files, PowerPoint Presentations and other supported file formats.
Along with full-featured Java library we provide simple, but powerful free Apps. You are welcome to compare your DOC or DOCX, XLS or XLSX, PPT or PPTX, PDF, EML, EMLX, MSGand other documents with free to use online GroupDocs Comparison App.
- How to compare documents in the easiest way
- How to compare AutoCAD drawings
- How to compare images using Java or Kotlin
- How to compare Text, Word or PDF in Java or Kotlin
- How to compare two or more files in Java or Kotlin
- How to use Google Drive API as files source for comparing documents in Java or Kotlin
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.