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