Good day -
We use Aspose PDF to convert PDF to Word format.
There are instances where PDF documents don't convert, but Aspose does not throw a catchable error. Rather, we seem to get stack overflow errors which are difficult or impossible to handle.
We use ColdFusion but the options are pretty basic:
<cfset var docSaveOptions=createObject("java","com.aspose.pdf.DocSaveOptions").init()>
<!-- doc: 0, docx: 1 --->
<cfset docSaveOptions.setFormat(1)>
<!--- textbox: 0, flow: 1 --->
<cfset docSaveOptions.setMode(1)>
<cfset docSaveOptions.setRecognizeBullets(true)>
<cfset pdf=createObject("java","com.aspose.pdf.Document").init(tempFile)>
<cfset pdf.save(tempDocXFile,docSaveOptions)>
<cfset pdf.close()>
I've attached two PDF documents which cause this error.
These are sent by customers and admittedly they appear to be poorly created, particularly when highlighting blocks of text with the mouse. I don't necessarily expect Aspose PDF to be able to convert them cleanly (though it would be nice!) but I believe there should be a way to gracefully handle them rather than running out of stack space.
Is there a way that Aspose could detect this issue and throw it before encountering a stack overflow?
Thank you.
We use Aspose PDF to convert PDF to Word format.
There are instances where PDF documents don't convert, but Aspose does not throw a catchable error. Rather, we seem to get stack overflow errors which are difficult or impossible to handle.
We use ColdFusion but the options are pretty basic:
<cfset var docSaveOptions=createObject("java","com.aspose.pdf.DocSaveOptions").init()>
<!-- doc: 0, docx: 1 --->
<cfset docSaveOptions.setFormat(1)>
<!--- textbox: 0, flow: 1 --->
<cfset docSaveOptions.setMode(1)>
<cfset docSaveOptions.setRecognizeBullets(true)>
<cfset pdf=createObject("java","com.aspose.pdf.Document").init(tempFile)>
<cfset pdf.save(tempDocXFile,docSaveOptions)>
<cfset pdf.close()>
I've attached two PDF documents which cause this error.
These are sent by customers and admittedly they appear to be poorly created, particularly when highlighting blocks of text with the mouse. I don't necessarily expect Aspose PDF to be able to convert them cleanly (though it would be nice!) but I believe there should be a way to gracefully handle them rather than running out of stack space.
Is there a way that Aspose could detect this issue and throw it before encountering a stack overflow?
Thank you.