We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Com.aspose.pdf.internal.p391.z114: Resulting timespan is too big

Hi,


While using method concatenate,I am getting below exception…
com.aspose.pdf.internal.p391.z114: Resulting time span is too big.

I am using evaluation temporary license and aspose jar version 10.6.1.
I have attached the files needed to be concatenated.

Please find code snippet below

/**
*
*/
package my.local;

import java.io.File;

import com.aspose.pdf.facades.PdfFileEditor;

public class AsposeTest {

private static com.aspose.pdf.License lic = null;

public static void main(String[] args) {
// Create license object
lic= new com.aspose.pdf.License();
try
{
// Specify the path of license file
lic.setLicense(“C:/common7/lib/aspose-pdf-10.6.1-java/license/Aspose.Pdf.lic”);

}
catch (Exception e)
{
e.printStackTrace();
}
//Test multiple
testMultiple();
}
public static void testMultiple(){
try
{
//read the input file
String fileLocation=“C:/testpdf”;
File folder = new File(fileLocation);
File[] listOfFiles = folder.listFiles();
String[] fileArray = new String[listOfFiles.length];
for(int i=0;i<listOfFiles.length;++i)
fileArray[i]=fileLocation + “//” + listOfFiles[i].getName();
PdfFileEditor editor = new PdfFileEditor();
boolean isCreateSuccess = editor.concatenate(fileArray,“C:/doc3/Concatenate_output_print.pdf”);
System.out.print("Merge successful testMultiple status - "+isCreateSuccess);
}
catch (Exception e)
{
e.printStackTrace();
}
}

}

Hi Keerthi,


Thanks for your inquiry. I have tested the scenario using Aspose.Pdf for .NET 10.6.1, Eclipse, JDK 1.7 over Win7 64 bit, but I am afraid I am unable to notice the reported issue. We will appreciate it if you please share your environment details, so we will try to replicate the issue and provide you information accordingly.

We are sorry for the inconvenience caused.

Best Regards,

Hi,

Please find the environment details:

aspose-pdf-10.6.1.jar.

IBM Rational® Application Developer™ for WebSphere® Software

Version: 7.5.5.5

jdk1.7.0_40

WIN7 32 bit

Thanks,

Keerthi

Hi Keerthi,


Thanks for sharing the details.

I am in the process of setting-up environment to test the concatenate scenario using IBM RAD and will keep you posted with my findings.

Hi Keerthi,



Thanks for your patience. I am afraid I am unable to find IBM RAD 7.5.5.5, however I have downloaded and tested IBM RAD 9.1 over Win 7 64 bit without any issue. I will give another try on 32 bit with IBM RAD 9.1 and will update you the results accordingly.

We are sorry for the inconvenience caused.

Best Regards,