【发布时间】:2013-04-15 07:19:37
【问题描述】:
在使用 Aspose 将 docx 文件转换为 pdf 文件时,我得到了这个 heap size 错误。这是代码
这个 docx 文件是 44Mb
public void convertDoc(String Path, String destPath) throws Exception{
Document doc = new Document(Path); //At this line heap size error comes
doc.save(destPath);
System.out.println("doc converted to pdf");
}
有什么建议吗?
【问题讨论】:
-
尝试增加堆大小,比如 java -Xmx512M myprogram
-
你的意思是 OutOfMemoryException?
-
@BhavikShah 是的堆大小错误基本上是内存不足错误。
-
@aymankoo 你能解释一下我怎样才能让我的东西按照你建议的
something工作吗? -
你在用eclipse吗?
标签: java aspose aspose.words