Manipulating Dxf images
Contents
[
Hide
]
Aspose.Imaging for Java supports export to Dxf format from vectorized formats(ie. SVG, EPS, etc). Raster images Dxf does not support.
Export eps to dxf image
Saving of eps image to dxf provided:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Example of export from eps to Dxf. | |
String inputFileName = "Pooh group.eps"; | |
String outputFilePath = "result.dxf"; | |
try (Image image = Image.load(inputFilePath)) | |
{ | |
DxfOptions options = new DxfOptions(); | |
options.setTextAsLines(true); | |
options.setConvertTextBeziers(true); | |
options.setBezierPointCount((byte) 20); | |
image.save(outputFilePath, options); | |
} |