Aspose.CAD for .NET 20.3 - Release Notes
Key | Summary | Category |
---|---|---|
CADNET-818 | How to interrupt or put a timeout on Save | New Feature |
CADNET-793 | Support for DXF Version | New Feature |
CADNET-593 | Support for DWFX files | New Feature |
CADNET-810 | Implement automatic codepage detection for DWG and DXF | New Feature |
CADNET-421 | DWG not properly converted to pdf (.NET) | Enhancement |
CADNET-1049 | Infinite loop when converting DWG to PDF | Enhancement |
CADNET-1048 | Exception on exporting DWG to PDF | Enhancement |
CADNET-1047 | Conversion to PDF lasts for too long and one CPU core is completely used | Enhancement |
CADNET-1044 | ImageLoadException: Cannot process loading further due to incorrect file format structure. Error details: Index was out of range, at Image.Load while loading a DWG | Enhancement |
CADNET-1011 | Aspose.CAD 19.9: Converting particular DWG to PDF produce too small and unreadable graphic | Enhancement |
CADNET-1004 | Fix damaged export of layouts for DXF R12 | Enhancement |
CADNET-993 | On conversion to PDF vertical text has been rendered as horizontal | Enhancement |
CADNET-986 | DWG to PDF conversion took a long time | Enhancement |
CADNET-985 | Exception on loading DWF file | Enhancement |
CADNET-978 | Exception on converting DWG file to JPG | Enhancement |
CADNET-969 | Image export failed on saving DWF | Enhancement |
CADNET-966 | Exception on converting DXF file to PDF | Enhancement |
CADNET-960 | Blank image when saving DWG | Enhancement |
CADNET-959 | Image saving failed exception when saving DWG | Enhancement |
CADNET-953 | DWG not properly converted to PDF | Enhancement |
CADNET-796 | Cannot process loading further due to incorrect file format structure exception on loading DWG | Enhancement |
CADNET-795 | The file is incompatible with exporter exception on exporting DWG | Enhancement |
CADNET-794 | Length cannot be less than zero exception on exporting DWG | Enhancement |
CADNET-779 | DWG to PNG not properly converted | Enhancement |
CADNET-766 | Wrong drawing of CadGraphicsDataContainer entities. | Enhancement |
CADNET-568 | Text missing in generated PDF | Enhancement |
CADNET-136 | Low quality of PDF files generated by GDI PDF exporter | Enhancement |
CADNET-1046 | Wrong UnitType on converting DXF to PDF | Enhancement |
CADNET-605 | Support For Recent version of Autocad | Enhancement |
CADNET-1045 | Specifying page size for CadRasterizationOptions to export to PDF | Enhancement |
CADNET-1010 | DWG to PDF: The text is not getting bolder in PDF (C# .NET) | Enhancement |
CADNET-980 | Push drawing down to add a heading | Enhancement |
CADNET-975 | Get CF2 layers | Enhancement |
CADNET-841 | Security review for Aspose.CAD | Enhancement |
Public API Changes
Added APIs:
Class Aspose.CAD.FileFormats.Dgn.DgnElements.DgnDrawingElementBaseQuaternion Class Aspose.CAD.FileFormats.Dwf.Whip.DwfWhipImageFormat Class Aspose.CAD.FileFormats.Dwf.Whip.Objects.Drawable.DwfWhipImage Class Aspose.CAD.FileFormats.Dwf.Whip.Objects.Drawable.DwfWhipImageBase Class Aspose.CAD.ImageOptions.Margins Class Aspose.CAD.InterruptionToken Class Aspose.CAD.InterruptionTokenSource Field/Enum Aspose.CAD.FileFormats.Dwf.Whip.DwfWhipImageFormat.BitonalMapped Field/Enum Aspose.CAD.FileFormats.Dwf.Whip.DwfWhipImageFormat.Group3XMapped Field/Enum Aspose.CAD.FileFormats.Dwf.Whip.DwfWhipImageFormat.Indexed Field/Enum Aspose.CAD.FileFormats.Dwf.Whip.DwfWhipImageFormat.JPEG Field/Enum Aspose.CAD.FileFormats.Dwf.Whip.DwfWhipImageFormat.Mapped Field/Enum Aspose.CAD.FileFormats.Dwf.Whip.DwfWhipImageFormat.RGB Field/Enum Aspose.CAD.FileFormats.Dwf.Whip.DwfWhipImageFormat.RGBA Method Aspose.CAD.CmykColor.Equals(System.Object) Method Aspose.CAD.FileFormats.Cad.CadLayersList.GetLayer(System.String) Method Aspose.CAD.FileFormats.Cad.Dwg.LZ77StreamWriter.CompressBytes Method Aspose.CAD.FileFormats.Dgn.DgnElements.DgnDrawingElementBaseQuaternion.#ctor Method Aspose.CAD.FileFormats.Dgn.DgnElements.DgnDrawingElementBaseQuaternion.InitQuaternion(System.Byte[],System.Int32) Method Aspose.CAD.FileFormats.Dwf.Whip.Objects.Drawable.DwfWhipImage.#ctor(System.Int32) Method Aspose.CAD.FileFormats.Dwf.Whip.Objects.Drawable.DwfWhipImage.CheckFormat(System.Int32) Method Aspose.CAD.FileFormats.Dwf.Whip.Objects.Drawable.DwfWhipImageBase.#ctor(System.Int32) Method Aspose.CAD.FileFormats.Dwf.Whip.Objects.Drawable.DwfWhipImageBase.CheckFormat(System.Int32) Method Aspose.CAD.FileFormats.Dwf.Whip.Objects.Drawable.DwfWhipPNGGroup4Image.CheckFormat(System.Int32) Method Aspose.CAD.ImageOptions.Margins.#ctor Method Aspose.CAD.InterruptionTokenSource.#ctor Method Aspose.CAD.InterruptionTokenSource.Dispose Method Aspose.CAD.InterruptionTokenSource.Interrupt Method Aspose.CAD.Point.op_Explicit(Aspose.CAD.Point) Method Aspose.CAD.PointF.op_Explicit(Aspose.CAD.PointF) Method Aspose.CAD.Xmp.XmpPackage.SetValue(System.String, ) Property Aspose.CAD.FileFormats.Cad.CadObjects.CadMText.FullClearText Property Aspose.CAD.FileFormats.Dgn.DgnElements.DgnDrawingElementBaseQuaternion.QuaternionRotations Property Aspose.CAD.FileFormats.Dwf.Whip.Objects.Drawable.DwfWhipImageBase.BinaryData Property Aspose.CAD.FileFormats.Dwf.Whip.Objects.Drawable.DwfWhipImageBase.Columns Property Aspose.CAD.FileFormats.Dwf.Whip.Objects.Drawable.DwfWhipImageBase.MaxCorner Property Aspose.CAD.FileFormats.Dwf.Whip.Objects.Drawable.DwfWhipImageBase.MaxPoint Property Aspose.CAD.FileFormats.Dwf.Whip.Objects.Drawable.DwfWhipImageBase.MinCorner Property Aspose.CAD.FileFormats.Dwf.Whip.Objects.Drawable.DwfWhipImageBase.MinPoint Property Aspose.CAD.FileFormats.Dwf.Whip.Objects.Drawable.DwfWhipImageBase.Rows Property Aspose.CAD.ImageOptions.CadRasterizationOptions.ExportAllLayoutContent Property Aspose.CAD.ImageOptions.Margins.Bottom Property Aspose.CAD.ImageOptions.Margins.Left Property Aspose.CAD.ImageOptions.Margins.Right Property Aspose.CAD.ImageOptions.Margins.Top Property Aspose.CAD.ImageOptions.PdfDocumentOptions.DigitalSignatureDetails Property Aspose.CAD.ImageOptions.RasterizationQuality.TextThicknessNormalization Property Aspose.CAD.ImageOptions.VectorRasterizationOptions.Margins Property Aspose.CAD.ImageOptionsBase.InterruptionToken Property Aspose.CAD.ImageOptionsBase.Timeout Property Aspose.CAD.InterruptionTokenSource.Token Property Aspose.CAD.Xmp.Types.Derived.RenditionClass.DefinedValues
Removed APIs
Class Aspose.CAD.Extensions.ColorExtensions Class Aspose.CAD.Extensions.FontExtensions Class Aspose.CAD.Extensions.ImageExtensions Class Aspose.CAD.Extensions.MatrixExtensions Class Aspose.CAD.Extensions.PointExtensions Class Aspose.CAD.Extensions.RectangleExtensions Class Aspose.CAD.Extensions.RotateFlipExtensions Class Aspose.CAD.Extensions.StringFormatExtensions Class Aspose.CAD.Font Class Aspose.CAD.StringFormat Field/Enum Aspose.CAD.Xmp.Types.Derived.RenditionClass.DefinedValues Method Aspose.CAD.Extensions.ColorExtensions.ToGdiColor(Aspose.CAD.Color) Method Aspose.CAD.Extensions.ColorExtensions.ToGdiColors(Aspose.CAD.Color[]) Method Aspose.CAD.Extensions.FontExtensions.ToGdiFont(Aspose.CAD.Font) Method Aspose.CAD.Extensions.ImageExtensions.ToGdiImage(Aspose.CAD.Image) Method Aspose.CAD.Extensions.MatrixExtensions.ToGdiMatrix(Aspose.CAD.Matrix) Method Aspose.CAD.Extensions.PointExtensions.ToGdiPoint(Aspose.CAD.PointF) Method Aspose.CAD.Extensions.PointExtensions.ToGdiPoints(Aspose.CAD.PointF[]) Method Aspose.CAD.Extensions.PointExtensions.ToPointsArray(Aspose.CAD.Point[]) Method Aspose.CAD.Extensions.RectangleExtensions.ToGdiRectangle(Aspose.CAD.Rectangle) Method Aspose.CAD.Extensions.RectangleExtensions.ToGdiRectangle(Aspose.CAD.RectangleF) Method Aspose.CAD.Extensions.RotateFlipExtensions.ToGdiRotateFlipType(Aspose.CAD.RotateFlipType) Method Aspose.CAD.Extensions.StringFormatExtensions.ToGdiStringFormat(Aspose.CAD.StringFormat) Method Aspose.CAD.FileFormats.Cad.CadLayersList.GetLayersByName(System.String) Method Aspose.CAD.FileFormats.Cad.CadObjects.CadApplicationCodesContainer.GetAcadReactorsCodes Method Aspose.CAD.FileFormats.Cad.CadObjects.CadApplicationCodesContainer.GetAcadXDictionaryCodes Method Aspose.CAD.FileFormats.Cad.Dwg.LZ77StreamWriter.FoundLiteral Method Aspose.CAD.FileFormats.Dgn.DgnElements.DgnArcBasedElement.InitQuaternion(System.Byte[],System.Int32) Method Aspose.CAD.FileFormats.Tiff.TiffRational.op_Equality(Aspose.CAD.FileFormats.Tiff.TiffRational,Aspose.CAD.FileFormats.Tiff.TiffRational) Method Aspose.CAD.FileFormats.Tiff.TiffRational.op_Inequality(Aspose.CAD.FileFormats.Tiff.TiffRational,Aspose.CAD.FileFormats.Tiff.TiffRational) Method Aspose.CAD.FileFormats.Tiff.TiffSRational.op_Equality(Aspose.CAD.FileFormats.Tiff.TiffSRational,Aspose.CAD.FileFormats.Tiff.TiffSRational) Method Aspose.CAD.FileFormats.Tiff.TiffSRational.op_Inequality(Aspose.CAD.FileFormats.Tiff.TiffSRational,Aspose.CAD.FileFormats.Tiff.TiffSRational) Method Aspose.CAD.Font.#ctor(Aspose.CAD.Font,Aspose.CAD.FontStyle) Method Aspose.CAD.Font.#ctor(System.String,System.Single) Method Aspose.CAD.Font.#ctor(System.String,System.Single,Aspose.CAD.FontStyle) Method Aspose.CAD.Font.#ctor(System.String,System.Single,Aspose.CAD.FontStyle,Aspose.CAD.GraphicsUnit) Method Aspose.CAD.Font.#ctor(System.String,System.Single,Aspose.CAD.FontStyle,Aspose.CAD.GraphicsUnit,Aspose.CAD.CharacterSet) Method Aspose.CAD.Font.#ctor(System.String,System.Single,Aspose.CAD.GraphicsUnit) Method Aspose.CAD.Font.DeepClone Method Aspose.CAD.Font.Equals(System.Object) Method Aspose.CAD.Font.GetHashCode Method Aspose.CAD.Font.ToString Method Aspose.CAD.Point.op_Explicit(Aspose.CAD.Point) Method Aspose.CAD.PointF.op_Explicit(Aspose.CAD.PointF) Method Aspose.CAD.StringFormat.#ctor Method Aspose.CAD.StringFormat.#ctor(Aspose.CAD.StringFormat) Method Aspose.CAD.StringFormat.#ctor(Aspose.CAD.StringFormatFlags) Method Aspose.CAD.StringFormat.DeepClone Method Aspose.CAD.StringFormat.SetTabStops(System.Single,System.Single[]) Method Aspose.CAD.StringFormat.ToString Method Aspose.CAD.Xmp.XmpPackage.SetValue(System.String, ) Property Aspose.CAD.FileFormats.Dgn.DgnElements.DgnArcBasedElement.QuaternionRotations Property Aspose.CAD.FileFormats.Dgn.DgnElements.DgnConeElement.QuaternionRotations Property Aspose.CAD.FileFormats.Dgn.DgnElements.DgnTextElement.QuaternionRotations Property Aspose.CAD.FileFormats.Dwf.Whip.Objects.Drawable.DwfWhipPNGGroup4Image.BinaryData Property Aspose.CAD.FileFormats.Dwf.Whip.Objects.Drawable.DwfWhipPNGGroup4Image.Columns Property Aspose.CAD.FileFormats.Dwf.Whip.Objects.Drawable.DwfWhipPNGGroup4Image.MaxCorner Property Aspose.CAD.FileFormats.Dwf.Whip.Objects.Drawable.DwfWhipPNGGroup4Image.MaxPoint Property Aspose.CAD.FileFormats.Dwf.Whip.Objects.Drawable.DwfWhipPNGGroup4Image.MinCorner Property Aspose.CAD.FileFormats.Dwf.Whip.Objects.Drawable.DwfWhipPNGGroup4Image.MinPoint Property Aspose.CAD.FileFormats.Dwf.Whip.Objects.Drawable.DwfWhipPNGGroup4Image.Rows Property Aspose.CAD.Font.Bold Property Aspose.CAD.Font.CharacterSet Property Aspose.CAD.Font.Italic Property Aspose.CAD.Font.Name Property Aspose.CAD.Font.Size Property Aspose.CAD.Font.Strikeout Property Aspose.CAD.Font.Style Property Aspose.CAD.Font.Underline Property Aspose.CAD.Font.Unit Property Aspose.CAD.StringFormat.Alignment Property Aspose.CAD.StringFormat.DigitSubstitutionLanguage Property Aspose.CAD.StringFormat.DigitSubstitutionMethod Property Aspose.CAD.StringFormat.FirstTabOffset Property Aspose.CAD.StringFormat.FormatFlags Property Aspose.CAD.StringFormat.GenericDefault Property Aspose.CAD.StringFormat.GenericTypographic Property Aspose.CAD.StringFormat.HotkeyPrefix Property Aspose.CAD.StringFormat.LineAlignment Property Aspose.CAD.StringFormat.TabStops Property Aspose.CAD.StringFormat.Trimming
Usage examples:
CADNET-810 - Implement automatic codepage detection for DWG and DXF
using (CadImage cadImage = (CadImage)Image.Load(
GetFileFromDesktop("file.dwg"),
new LoadOptions()
{
SpecifiedEncoding = CodePages.Japanese,
SpecifiedMifEncoding = MifCodePages.Japanese,
RecoverMalformedCifMif = false
}))
{
//do export or something else with cadImage
}
CADNET-593 - Support for DWFX files
using (Image cadDrawing = Image.Load("example-580-W.dwfx"))
{
var rasterizationOptions = new CadRasterizationOptions();
rasterizationOptions.PageWidth = cadDrawing.Size.Width;
rasterizationOptions.PageHeight = cadDrawing.Size.Height;
PdfOptions CADf = new PdfOptions();
CADf.VectorRasterizationOptions = rasterizationOptions;
cadDrawing.Save("example-580-W_custom.pdf", CADf);
}
CADNET-818 - How to interrupt or put a timeout on Save
using (Image cadDrawing = Image.Load("huge-drawing.dwg"))
{
var rasterizationOptions = new CadRasterizationOptions();
rasterizationOptions.PageWidth = cadDrawing.Size.Width;
rasterizationOptions.PageHeight = cadDrawing.Size.Height;
using (var its = new InterruptionTokenSource())
{
PdfOptions CADf = new PdfOptions();
CADf.VectorRasterizationOptions = rasterizationOptions;
CADf.InterruptionToken = its.Token;
var exportTask = Task.Factory.StartNew(() =>
{
cadDrawing.Save("example-580-W_custom.pdf", CADf);
});
Thread.Sleep(10000);
its.Interrupt();
exportTask.Wait();
}
}