下面是我的代码, 有什么办法减少内存使用,或者可以设置超过多少内存,就到磁盘处理,不然这个根本没法使用,一点就内存溢出了
public synchronized Path doCadToPdf(InputStream inputStream, String outputFilePath) throws IOException {
Path outputPath = Paths.get(outputFileP…...izationOpti); try (Image cadImage = Image.load(inputStream, opts);...file. The Aspose.CAD library processes the entire file in memory...