Browse our Products

Aspose.CAD for Java 20.3 - Release Notes

KeySummaryCategory
CADJAVA-669Support for DWFX filesNew Feature
CADJAVA-659How to interrupt or put a timeout on SaveNew Feature
CADJAVA-345Support for DXF VersionNew Feature
CADJAVA-661Prepare SEO-friendly endpoints and provide usage examples on Cloud APIEnhancement
CADJAVA-650Integrate the latest Imaging module changesEnhancement
CADJAVA-638Investigate and improve the coloring of separate and blocked entitiesEnhancement
CADJAVA-634The API documentation is not availableEnhancement
CADJAVA-526Aspose.CAD maven repo unusable for versions newer than 18.3Enhancement
CADJAVA-670Low quality of PDF files generated by GDI PDF exporterEnhancement
CADJAVA-667Wrong drawing of CadGraphicsDataContainer entities.Enhancement
CADJAVA-666DWG to PNG not properly convertedEnhancement
CADJAVA-665Length cannot be less than zero exception on exporting DWGEnhancement
CADJAVA-664The file is incompatible with exporter exception on exporting DWGEnhancement
CADJAVA-663Cannot process loading further due to incorrect file format structure exception on loading DWGEnhancement
CADJAVA-657Image saving failed exception when saving DWGEnhancement
CADJAVA-656Blank image when saving DWGEnhancement
CADJAVA-655Image export failed on saving DWFEnhancement
CADJAVA-653Exception on converting DWG file to JPGEnhancement
CADJAVA-651DWG to PDF conversion took a long timeEnhancement
CADJAVA-643On conversion to PDF vertical text has been rendered as horizontalEnhancement
CADJAVA-642Fix damaged export of layouts for DXF R12Enhancement
CADJAVA-639Aspose.CAD 19.9: Converting particular DWG to PDF produce too small and unreadable graphicEnhancement
CADJAVA-618Cannot process loading further due to incorrect file format structure.Enhancement
CADJAVA-575DWG not properly converted to PDFEnhancement
CADJAVA-573DWG not properly converted to PDFEnhancement
CADJAVA-563Conversion to PDF lasts for too long and one CPU core is completely usedEnhancement
CADJAVA-560Exception on exporting DWG to PDFEnhancement
CADJAVA-559Infinite loop when converting DWG to PDFEnhancement
CADJAVA-511Exception on converting DXF file to PDFEnhancement
CADJAVA-501DWG not properly converted to PDFEnhancement
CADJAVA-668Support For Recent version of AutocadEnhancement
CADJAVA-358Image load exception on loading DWF fileEnhancement
CADJAVA-660Implement automatic codepage detection for DWG and DXFEnhancement
CADJAVA-640DWG to PDF: The text is not getting bolder in PDFEnhancement
CADJAVA-582Specifying page size for CadRasterizationOptions to export to PDFEnhancement
CADJAVA-581Wrong UnitType on converting DXF to PDFEnhancement
CADJAVA-641Implement multiple sorting for ReleaseListCreatorEnhancement
CADJAVA-658Security review for Aspose.CADEnhancement
CADJAVA-654Get CF2 layersEnhancement
CADJAVA-652Push drawing down to add a headingEnhancement
CADJAVA-528Text missing in generated PDFEnhancement
CADJAVA-500Does Aspose.CAD supports ECDSA and RSA algorithms for digital signatureEnhancement
CADJAVA-465Is Aspose.CAD FIPS 186-4 compliantEnhancement

Added APIs:

Class         com.aspose.cad.fileFormats.dgn.dgnElements.dgnDrawingElementBaseQuaternion Class         com.aspose.cad.fileFormats.dwf.whip.dwfWhipImageFormat Class         com.aspose.cad.fileFormats.dwf.whip.objects.drawable.dwfWhipImage Class         com.aspose.cad.fileFormats.dwf.whip.objects.drawable.dwfWhipImageBase Class         com.aspose.cad.imageOptions.margins Class         com.aspose.cad.interruptionToken Class         com.aspose.cad.interruptionTokenSource Field/Enum    com.aspose.cad.fileFormats.dwf.whip.dwfWhipImageFormat.bitonalMapped Field/Enum    com.aspose.cad.fileFormats.dwf.whip.dwfWhipImageFormat.group3XMapped Field/Enum    com.aspose.cad.fileFormats.dwf.whip.dwfWhipImageFormat.indexed Field/Enum    com.aspose.cad.fileFormats.dwf.whip.dwfWhipImageFormat.jPEG Field/Enum    com.aspose.cad.fileFormats.dwf.whip.dwfWhipImageFormat.mapped Field/Enum    com.aspose.cad.fileFormats.dwf.whip.dwfWhipImageFormat.rGB Field/Enum    com.aspose.cad.fileFormats.dwf.whip.dwfWhipImageFormat.rGBA Method        com.aspose.cad.cmykColor.equals(System.object) Method        com.aspose.cad.fileFormats.cad.cadLayersList.getLayer(System.string) Method        com.aspose.cad.fileFormats.cad.dwg.lZ77StreamWriter.compressBytes Method        com.aspose.cad.fileFormats.dgn.dgnElements.dgnDrawingElementBaseQuaternion.#ctor Method        com.aspose.cad.fileFormats.dgn.dgnElements.dgnDrawingElementBaseQuaternion.initQuaternion(System.byte[],System.int32) Method        com.aspose.cad.fileFormats.dwf.whip.objects.drawable.dwfWhipImage.#ctor(System.int32) Method        com.aspose.cad.fileFormats.dwf.whip.objects.drawable.dwfWhipImage.checkFormat(System.int32) Method        com.aspose.cad.fileFormats.dwf.whip.objects.drawable.dwfWhipImageBase.#ctor(System.int32) Method        com.aspose.cad.fileFormats.dwf.whip.objects.drawable.dwfWhipImageBase.checkFormat(System.int32) Method        com.aspose.cad.fileFormats.dwf.whip.objects.drawable.dwfWhipPNGGroup4Image.checkFormat(System.int32) Method        com.aspose.cad.imageOptions.margins.#ctor Method        com.aspose.cad.interruptionTokenSource.#ctor Method        com.aspose.cad.interruptionTokenSource.dispose Method        com.aspose.cad.interruptionTokenSource.interrupt Method        com.aspose.cad.point.op_Explicit(com.aspose.cad.point)    Method        com.aspose.cad.pointF.op_Explicit(com.aspose.cad.pointF)    Method        com.aspose.cad.xmp.xmpPackage.setValue(System.string   ) Property      com.aspose.cad.fileFormats.cad.cadObjects.cadMText.fullClearText Property      com.aspose.cad.fileFormats.dgn.dgnElements.dgnDrawingElementBaseQuaternion.quaternionRotations Property      com.aspose.cad.fileFormats.dwf.whip.objects.drawable.dwfWhipImageBase.binaryData Property      com.aspose.cad.fileFormats.dwf.whip.objects.drawable.dwfWhipImageBase.columns Property      com.aspose.cad.fileFormats.dwf.whip.objects.drawable.dwfWhipImageBase.maxCorner Property      com.aspose.cad.fileFormats.dwf.whip.objects.drawable.dwfWhipImageBase.maxPoint Property      com.aspose.cad.fileFormats.dwf.whip.objects.drawable.dwfWhipImageBase.minCorner Property      com.aspose.cad.fileFormats.dwf.whip.objects.drawable.dwfWhipImageBase.minPoint Property      com.aspose.cad.fileFormats.dwf.whip.objects.drawable.dwfWhipImageBase.rows Property      com.aspose.cad.imageOptions.cadRasterizationOptions.exportAllLayoutContent Property      com.aspose.cad.imageOptions.margins.bottom Property      com.aspose.cad.imageOptions.margins.left Property      com.aspose.cad.imageOptions.margins.right Property      com.aspose.cad.imageOptions.margins.top Property      com.aspose.cad.imageOptions.pdfDocumentOptions.digitalSignatureDetails Property      com.aspose.cad.imageOptions.rasterizationQuality.textThicknessNormalization Property      com.aspose.cad.imageOptions.vectorRasterizationOptions.margins Property      com.aspose.cad.imageOptionsBase.interruptionToken Property      com.aspose.cad.imageOptionsBase.timeout Property      com.aspose.cad.interruptionTokenSource.token Property      com.aspose.cad.xmp.types.derived.renditionClass.definedValues

Removed APIs:

Class         com.aspose.cad.extensions.colorExtensions Class         com.aspose.cad.extensions.fontExtensions Class         com.aspose.cad.extensions.imageExtensions Class         com.aspose.cad.extensions.matrixExtensions Class         com.aspose.cad.extensions.pointExtensions Class         com.aspose.cad.extensions.rectangleExtensions Class         com.aspose.cad.extensions.rotateFlipExtensions Class         com.aspose.cad.extensions.stringFormatExtensions Class         com.aspose.cad.font Class         com.aspose.cad.stringFormat Field/Enum    com.aspose.cad.xmp.types.derived.renditionClass.definedValues Method        com.aspose.cad.extensions.colorExtensions.toGdiColor(com.aspose.cad.color) Method        com.aspose.cad.extensions.colorExtensions.toGdiColors(com.aspose.cad.color[]) Method        com.aspose.cad.extensions.fontExtensions.toGdiFont(com.aspose.cad.font) Method        com.aspose.cad.extensions.imageExtensions.toGdiImage(com.aspose.cad.image) Method        com.aspose.cad.extensions.matrixExtensions.toGdiMatrix(com.aspose.cad.matrix) Method        com.aspose.cad.extensions.pointExtensions.toGdiPoint(com.aspose.cad.pointF) Method        com.aspose.cad.extensions.pointExtensions.toGdiPoints(com.aspose.cad.pointF[]) Method        com.aspose.cad.extensions.pointExtensions.toPointsArray(com.aspose.cad.point[]) Method        com.aspose.cad.extensions.rectangleExtensions.toGdiRectangle(com.aspose.cad.rectangle) Method        com.aspose.cad.extensions.rectangleExtensions.toGdiRectangle(com.aspose.cad.rectangleF) Method        com.aspose.cad.extensions.rotateFlipExtensions.toGdiRotateFlipType(com.aspose.cad.rotateFlipType) Method        com.aspose.cad.extensions.stringFormatExtensions.toGdiStringFormat(com.aspose.cad.stringFormat) Method        com.aspose.cad.fileFormats.cad.cadLayersList.getLayersByName(System.string) Method        com.aspose.cad.fileFormats.cad.cadObjects.cadApplicationCodesContainer.getAcadReactorsCodes Method        com.aspose.cad.fileFormats.cad.cadObjects.cadApplicationCodesContainer.getAcadXDictionaryCodes Method        com.aspose.cad.fileFormats.cad.dwg.lZ77StreamWriter.foundLiteral Method        com.aspose.cad.fileFormats.dgn.dgnElements.dgnArcBasedElement.initQuaternion(System.byte[],System.int32) Method        com.aspose.cad.fileFormats.tiff.tiffRational.op_Equality(com.aspose.cad.fileFormats.tiff.tiffRational,com.aspose.cad.fileFormats.tiff.tiffRational) Method        com.aspose.cad.fileFormats.tiff.tiffRational.op_Inequality(com.aspose.cad.fileFormats.tiff.tiffRational,com.aspose.cad.fileFormats.tiff.tiffRational) Method        com.aspose.cad.fileFormats.tiff.tiffSRational.op_Equality(com.aspose.cad.fileFormats.tiff.tiffSRational,com.aspose.cad.fileFormats.tiff.tiffSRational) Method        com.aspose.cad.fileFormats.tiff.tiffSRational.op_Inequality(com.aspose.cad.fileFormats.tiff.tiffSRational,com.aspose.cad.fileFormats.tiff.tiffSRational) Method        com.aspose.cad.font.#ctor(com.aspose.cad.font,com.aspose.cad.fontStyle) Method        com.aspose.cad.font.#ctor(System.string,System.single) Method        com.aspose.cad.font.#ctor(System.string,System.single,com.aspose.cad.fontStyle) Method        com.aspose.cad.font.#ctor(System.string,System.single,com.aspose.cad.fontStyle,com.aspose.cad.graphicsUnit) Method        com.aspose.cad.font.#ctor(System.string,System.single,com.aspose.cad.fontStyle,com.aspose.cad.graphicsUnit,com.aspose.cad.characterSet) Method        com.aspose.cad.font.#ctor(System.string,System.single,com.aspose.cad.graphicsUnit) Method        com.aspose.cad.font.deepClone Method        com.aspose.cad.font.equals(System.object) Method        com.aspose.cad.font.getHashCode Method        com.aspose.cad.font.toString Method        com.aspose.cad.point.op_Explicit(com.aspose.cad.point)    Method        com.aspose.cad.pointF.op_Explicit(com.aspose.cad.pointF)    Method        com.aspose.cad.stringFormat.#ctor Method        com.aspose.cad.stringFormat.#ctor(com.aspose.cad.stringFormat) Method        com.aspose.cad.stringFormat.#ctor(com.aspose.cad.stringFormatFlags) Method        com.aspose.cad.stringFormat.deepClone Method        com.aspose.cad.stringFormat.setTabStops(System.single,System.single[]) Method        com.aspose.cad.stringFormat.toString Method        com.aspose.cad.xmp.xmpPackage.setValue(System.string,   ) Property      com.aspose.cad.fileFormats.dgn.dgnElements.dgnArcBasedElement.quaternionRotations Property      com.aspose.cad.fileFormats.dgn.dgnElements.dgnConeElement.quaternionRotations Property      com.aspose.cad.fileFormats.dgn.dgnElements.dgnTextElement.quaternionRotations Property      com.aspose.cad.fileFormats.dwf.whip.objects.drawable.dwfWhipPNGGroup4Image.binaryData Property      com.aspose.cad.fileFormats.dwf.whip.objects.drawable.dwfWhipPNGGroup4Image.columns Property      com.aspose.cad.fileFormats.dwf.whip.objects.drawable.dwfWhipPNGGroup4Image.maxCorner Property      com.aspose.cad.fileFormats.dwf.whip.objects.drawable.dwfWhipPNGGroup4Image.maxPoint Property      com.aspose.cad.fileFormats.dwf.whip.objects.drawable.dwfWhipPNGGroup4Image.minCorner Property      com.aspose.cad.fileFormats.dwf.whip.objects.drawable.dwfWhipPNGGroup4Image.minPoint Property      com.aspose.cad.fileFormats.dwf.whip.objects.drawable.dwfWhipPNGGroup4Image.rows Property      com.aspose.cad.font.bold Property      com.aspose.cad.font.characterSet Property      com.aspose.cad.font.italic Property      com.aspose.cad.font.name Property      com.aspose.cad.font.size Property      com.aspose.cad.font.strikeout Property      com.aspose.cad.font.style Property      com.aspose.cad.font.underline Property      com.aspose.cad.font.unit Property      com.aspose.cad.stringFormat.alignment Property      com.aspose.cad.stringFormat.digitSubstitutionLanguage Property      com.aspose.cad.stringFormat.digitSubstitutionMethod Property      com.aspose.cad.stringFormat.firstTabOffset Property      com.aspose.cad.stringFormat.formatFlags Property      com.aspose.cad.stringFormat.genericDefault Property      com.aspose.cad.stringFormat.genericTypographic Property      com.aspose.cad.stringFormat.hotkeyPrefix Property      com.aspose.cad.stringFormat.lineAlignment Property      com.aspose.cad.stringFormat.tabStops Property      com.aspose.cad.stringFormat.trimming

Usage examples:

CADJAVA-660 - Implement automatic codepage detection for DWG and DXF

 LoadOptions opts = new LoadOptions();

opts.setSpecifiedEncoding(CodePages.Japanese);

opts.setSpecifiedMifEncoding(MifCodePages.Japanese);

opts.setRecoverMalformedCifMif(false);

CadImage cadImage = (CadImage)Image.load(GetFileFromDesktop("file.dwg"), opts);

//do export or something else with cadImage

CADJAVA-669 - Support for DWFX files

 CadImage cadImageDwf = (CadImage)Image.load(GetFileFromDesktop("example-580-W.dwfx"));

CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions();

rasterizationOptions.setPageWidth(cadImageDwf.getSize().getWidth());

rasterizationOptions.setPageHeight(cadImageDwf.getSize().getHeight());

PdfOptions CADf = new PdfOptions();

CADf.setVectorRasterizationOptions(rasterizationOptions);

cadImageDwf.save("example-580-W_custom.pdf", CADf);

CADJAVA-659 - How to interrupt or put a timeout on Save

 CadImage cadImageBig = (CadImage)Image.load(GetFileFromDesktop("huge-drawing.dwg"));

CadRasterizationOptions rasterizationOptionsBig = new CadRasterizationOptions();

rasterizationOptionsBig.setPageWidth(cadImageBig.getSize().getWidth() / 2);

rasterizationOptionsBig.setPageHeight(cadImageBig.getSize().getHeight() / 2);

PdfOptions CADfBig = new PdfOptions();

CADfBig.setVectorRasterizationOptions(rasterizationOptionsBig);

InterruptionTokenSource its = new InterruptionTokenSource();

CADfBig.setInterruptionToken(its.getToken());

Runnable task = () -> {

    cadImageBig.save("example-580-W_custom.pdf", CADfBig);

};

task.run();

TimeUnit.SECONDS.sleep(10);

its.interrupt();

task.wait();