<< URGENT >>
PdfFileEditor pdf = new PdfFileEditor();
String pdfConcat = “final_Test_Document.pdf”
String [] list = docToMerge.toArray(new String[docToMerge.size()]);
//attaching the files above…
boolean ok = pdf.concatenate(list, pdfConcat);
//code failing in concatenate…
any feedback please. final_Test_Document.pdf (8.7 MB)
@Odon_Schoofs
Would you please share what type of error you are noticing at your side during merging? Also, please share the two PDF files which you are trying to merge so that we can test the scenario in our environment and address it accordingly.
C:\Saravanan\jdk1.8.0_201-64bit\bin\java -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:61416,suspend=y,server=n -ea -Didea.test.cyclic.buffer.size=1048576 -javaagent:C:\Users\JE67912.IntelliJIdea2017.3\system\captureAgent\debugger-agent.jar=C:\Users\JE67912\AppData\Local\Temp\2\capture2862.props -Dfile.encoding=UTF-8 -classpath “C:\Program Files (x86)\JetBrains\ideaU\lib\idea_rt.jar;C:\Program Files (x86)\JetBrains\ideaU\plugins\junit\lib\junit-rt.jar;C:\Program Files (x86)\JetBrains\ideaU\plugins\junit\lib\junit5-rt.jar;C:\Saravanan\jdk1.8.0_201-64bit\jre\lib\charsets.jar;C:\Saravanan\jdk1.8.0_201-64bit\jre\lib\deploy.jar;C:\Saravanan\jdk1.8.0_201-64bit\jre\lib\ext\access-bridge-64.jar;C:\Saravanan\jdk1.8.0_201-64bit\jre\lib\ext\cldrdata.jar;C:\Saravanan\jdk1.8.0_201-64bit\jre\lib\ext\dnsns.jar;C:\Saravanan\jdk1.8.0_201-64bit\jre\lib\ext\jaccess.jar;C:\Saravanan\jdk1.8.0_201-64bit\jre\lib\ext\jfxrt.jar;C:\Saravanan\jdk1.8.0_201-64bit\jre\lib\ext\localedata.jar;C:\Saravanan\jdk1.8.0_201-64bit\jre\lib\ext\nashorn.jar;C:\Saravanan\jdk1.8.0_201-64bit\jre\lib\ext\sunec.jar;C:\Saravanan\jdk1.8.0_201-64bit\jre\lib\ext\sunjce_provider.jar;C:\Saravanan\jdk1.8.0_201-64bit\jre\lib\ext\sunmscapi.jar;C:\Saravanan\jdk1.8.0_201-64bit\jre\lib\ext\sunpkcs11.jar;C:\Saravanan\jdk1.8.0_201-64bit\jre\lib\ext\zipfs.jar;C:\Saravanan\jdk1.8.0_201-64bit\jre\lib\javaws.jar;C:\Saravanan\jdk1.8.0_201-64bit\jre\lib\jce.jar;C:\Saravanan\jdk1.8.0_201-64bit\jre\lib\jfr.jar;C:\Saravanan\jdk1.8.0_201-64bit\jre\lib\jfxswt.jar;C:\Saravanan\jdk1.8.0_201-64bit\jre\lib\jsse.jar;C:\Saravanan\jdk1.8.0_201-64bit\jre\lib\management-agent.jar;C:\Saravanan\jdk1.8.0_201-64bit\jre\lib\plugin.jar;C:\Saravanan\jdk1.8.0_201-64bit\jre\lib\resources.jar;C:\Saravanan\jdk1.8.0_201-64bit\jre\lib\rt.jar;C:\svnProjects\credit\workspaces\pojo\cast-fund\target\test-classes;C:\svnProjects\credit\workspaces\pojo\cast-fund\target\classes;C:\Users\JE67912\addM2.m2\repository\com\kbc\shared\2.0\shared-2.0.jar;C:\Users\JE67912\addM2.m2\repository\com\kbc\cm\content-manager\1.0\content-manager-1.0.jar;C:\Users\JE67912\addM2.m2\repository\org\apache\log4j\org.apache.log4j\1.0\org.apache.log4j-1.0.jar;C:\Users\JE67912\addM2.m2\repository\axis\axis\1.4\axis-1.4.jar;C:\Users\JE67912\addM2.m2\repository\org\apache\axis\axis-saaj\1.4\axis-saaj-1.4.jar;C:\Users\JE67912\addM2.m2\repository\axis\axis-wsdl4j\1.5.1\axis-wsdl4j-1.5.1.jar;C:\Users\JE67912\addM2.m2\repository\commons-logging\commons-logging\1.0.4\commons-logging-1.0.4.jar;C:\Users\JE67912\addM2.m2\repository\commons-discovery\commons-discovery\0.2\commons-discovery-0.2.jar;C:\Users\JE67912\addM2.m2\repository\org\apache\axis\axis-jaxrpc\1.4\axis-jaxrpc-1.4.jar;C:\Users\JE67912\addM2.m2\repository\log4j\log4j\1.2.17\log4j-1.2.17.jar;C:\Users\JE67912\addM2.m2\repository\javax\mail\javax.mail-api\1.6.0\javax.mail-api-1.6.0.jar;C:\Users\JE67912\addM2.m2\repository\junit\junit\4.13\junit-4.13.jar;C:\Users\JE67912\addM2.m2\repository\org\hamcrest\hamcrest-core\1.3\hamcrest-core-1.3.jar;C:\Users\JE67912\addM2.m2\repository\org\apache\commons\commons-lang3\3.9\commons-lang3-3.9.jar;C:\Users\JE67912\addM2.m2\repository\org\apache\poi\poi\4.1.2\poi-4.1.2.jar;C:\Users\JE67912\addM2.m2\repository\commons-codec\commons-codec\1.13\commons-codec-1.13.jar;C:\Users\JE67912\addM2.m2\repository\org\apache\commons\commons-collections4\4.4\commons-collections4-4.4.jar;C:\Users\JE67912\addM2.m2\repository\org\apache\commons\commons-math3\3.6.1\commons-math3-3.6.1.jar;C:\Users\JE67912\addM2.m2\repository\com\zaxxer\SparseBitSet\1.2\SparseBitSet-1.2.jar;C:\Users\JE67912\addM2.m2\repository\org\apache\poi\poi-ooxml\4.1.2\poi-ooxml-4.1.2.jar;C:\Users\JE67912\addM2.m2\repository\org\apache\commons\commons-compress\1.19\commons-compress-1.19.jar;C:\Users\JE67912\addM2.m2\repository\com\github\virtuald\curvesapi\1.06\curvesapi-1.06.jar;C:\Users\JE67912\addM2.m2\repository\org\apache\poi\poi-ooxml-schemas\4.1.2\poi-ooxml-schemas-4.1.2.jar;C:\Users\JE67912\addM2.m2\repository\org\apache\xmlbeans\xmlbeans\3.1.0\xmlbeans-3.1.0.jar;C:\Users\JE67912\addM2.m2\repository\documentum\dfc\16.4\dfc-16.4-activation.jar;C:\Users\JE67912\addM2.m2\repository\documentum\dfc\16.4\dfc-16.4-all-mb.jar;C:\Users\JE67912\addM2.m2\repository\documentum\dfc\16.4\dfc-16.4-aspectjrt.jar;C:\Users\JE67912\addM2.m2\repository\documentum\dfc\16.4\dfc-16.4-bpmutil.jar;C:\Users\JE67912\addM2.m2\repository\documentum\dfc\16.4\dfc-16.4-certj.jar;C:\Users\JE67912\addM2.m2\repository\documentum\dfc\16.4\dfc-16.4-ci.jar;C:\Users\JE67912\addM2.m2\repository\documentum\dfc\16.4\dfc-16.4-collaboration.jar;C:\Users\JE67912\addM2.m2\repository\documentum\dfc\16.4\dfc-16.4-commons-codec-1.10.jar;C:\Users\JE67912\addM2.m2\repository\documentum\dfc\16.4\dfc-16.4-commons-lang-2.4.jar;C:\Users\JE67912\addM2.m2\repository\documentum\dfc\16.4\dfc-16.4-configservice-api.jar;C:\Users\JE67912\addM2.m2\repository\documentum\dfc\16.4\dfc-16.4-configservice-impl.jar;C:\Users\JE67912\addM2.m2\repository\documentum\dfc\16.4\dfc-16.4-cryptoj.jar;C:\Users\JE67912\addM2.m2\repository\documentum\dfc\16.4\dfc-16.4-cryptojce.jar;C:\Users\JE67912\addM2.m2\repository\documentum\dfc\16.4\dfc-16.4-cryptojcommon.jar;C:\Users\JE67912\addM2.m2\repository\documentum\dfc\16.4\dfc-16.4-dfc.jar;C:\Users\JE67912\addM2.m2\repository\documentum\dfc\16.4\dfc-16.4-dms-client-api.jar;C:\Users\JE67912\addM2.m2\repository\documentum\dfc\16.4\dfc-16.4-DmcRecords.jar;C:\Users\JE67912\addM2.m2\repository\documentum\dfc\16.4\dfc-16.4-jaxb-api.jar;C:\Users\JE67912\addM2.m2\repository\documentum\dfc\16.4\dfc-16.4-jaxb-impl.jar;C:\Users\JE67912\addM2.m2\repository\documentum\dfc\16.4\dfc-16.4-jcifs-krb5-1.3.1.jar;C:\Users\JE67912\addM2.m2\repository\documentum\dfc\16.4\dfc-16.4-jcm.jar;C:\Users\JE67912\addM2.m2\repository\documentum\dfc\16.4\dfc-16.4-jcmandroidfips.jar;C:\Users\JE67912\addM2.m2\repository\documentum\dfc\16.4\dfc-16.4-jcmFIPS.jar;C:\Users\JE67912\addM2.m2\repository\documentum\dfc\16.4\dfc-16.4-jsr173_api.jar;C:\Users\JE67912\addM2.m2\repository\documentum\dfc\16.4\dfc-16.4-krbutil.jar;C:\Users\JE67912\addM2.m2\repository\documentum\dfc\16.4\dfc-16.4-log4j.jar;C:\Users\JE67912\addM2.m2\repository\documentum\dfc\16.4\dfc-16.4-messageArchive.jar;C:\Users\JE67912\addM2.m2\repository\documentum\dfc\16.4\dfc-16.4-messageService.jar;C:\Users\JE67912\addM2.m2\repository\documentum\dfc\16.4\dfc-16.4-questFixForJDK7.jar;C:\Users\JE67912\addM2.m2\repository\documentum\dfc\16.4\dfc-16.4-servlet-api.jar;C:\Users\JE67912\addM2.m2\repository\documentum\dfc\16.4\dfc-16.4-subscription.jar;C:\Users\JE67912\addM2.m2\repository\documentum\dfc\16.4\dfc-16.4-util.jar;C:\Users\JE67912\addM2.m2\repository\documentum\dfc\16.4\dfc-16.4-vsj-license.jar;C:\Users\JE67912\addM2.m2\repository\documentum\dfc\16.4\dfc-16.4-workflow.jar;C:\Users\JE67912\addM2.m2\repository\documentum\dfc\16.4\dfc-16.4-xtrim-api.jar;C:\Users\JE67912\addM2.m2\repository\documentum\dfc\16.4\dfc-16.4-xtrim-server.jar;C:\Users\JE67912\addM2.m2\repository\com\aspose\aspose-words\19.4\aspose-words-19.4-jdk17.jar;C:\Users\JE67912\addM2.m2\repository\com\aspose\aspose-cells\19.2\aspose-cells-19.2.jar;C:\Users\JE67912\addM2.m2\repository\com\aspose\aspose-pdf\19.3\aspose-pdf-19.3-jdk17.jar;C:\Users\JE67912\addM2.m2\repository\com\aspose\aspose-email\19.3\aspose-email-19.3-jdk16.jar” com.intellij.rt.execution.junit.JUnitStarter -ideVersion5 -junit3 com.kbc.cast.test.TestAspose,testCreditFileMerge
Connected to the target VM, address: ‘127.0.0.1:61416’, transport: ‘socket’
16:02:20,896 DEBUG [main] com.kbc.cast.test.TestAspose - Connected to docbase GCRD as user ‘JE11624’ on host s2ab00ry.be.srv.dev.sys
Disconnected from the target VM, address: ‘127.0.0.1:61416’, transport: ‘socket’
java.lang.OutOfMemoryError: GC overhead limit exceeded
at com.aspose.pdf.internal.ms.System.Collections.Generic.lf.lI(Unknown Source)
at com.aspose.pdf.internal.ms.System.Collections.Generic.lf.lI(Unknown Source)
at com.aspose.pdf.internal.ms.System.Collections.Generic.lf.<init>(Unknown Source)
at com.aspose.pdf.internal.l1t.lI.<init>(Unknown Source)
at com.aspose.pdf.internal.l9j.le.<init>(Unknown Source)
at com.aspose.pdf.internal.l5n.l1j.lI(Unknown Source)
at com.aspose.pdf.internal.l5n.l1j.lI(Unknown Source)
at com.aspose.pdf.internal.l9h.lk.lb(Unknown Source)
at com.aspose.pdf.internal.l5n.l1l$lI.deserialize(Unknown Source)
at com.aspose.pdf.internal.l9j.le.deserialize(Unknown Source)
at com.aspose.pdf.internal.l5n.l1h.lf(Unknown Source)
at com.aspose.pdf.internal.l5n.l1h.<init>(Unknown Source)
at com.aspose.pdf.internal.l6t.lf.lI(Unknown Source)
at com.aspose.pdf.internal.l0f.lh.lI(Unknown Source)
at com.aspose.pdf.internal.l0f.lh.lI(Unknown Source)
at com.aspose.pdf.internal.l0f.lh.lI(Unknown Source)
at com.aspose.pdf.internal.l5n.l1j.l3h(Unknown Source)
at com.aspose.pdf.internal.l5n.l1j.l3t(Unknown Source)
at com.aspose.pdf.internal.l5n.l1j.l5if(Unknown Source)
at com.aspose.pdf.Copier.lI(Unknown Source)
at com.aspose.pdf.Copier.lI(Unknown Source)
at com.aspose.pdf.Copier.lI(Unknown Source)
at com.aspose.pdf.Copier.lI(Unknown Source)
at com.aspose.pdf.Copier.duplicate(Unknown Source)
at com.aspose.pdf.Copier.lI(Unknown Source)
at com.aspose.pdf.Copier.lI(Unknown Source)
at com.aspose.pdf.Copier.lI(Unknown Source)
at com.aspose.pdf.Copier.duplicate(Unknown Source)
at com.aspose.pdf.Copier.lI(Unknown Source)
at com.aspose.pdf.Copier.lI(Unknown Source)
at com.aspose.pdf.Copier.lI(Unknown Source)
at com.aspose.pdf.Copier.lI(Unknown Source)
Process finished with exit code -1
final_Test_Document.pdf (8.7 MB)
650da53a-6662-48c5-8bb4-ee11cd9b60c0.pdf (2.2 KB)
@asad.ali - please find above reply the - error messages and two files used to concatenate.
please help.
@Odon_Schoofs
We tested the scenario in our environment while using Aspose.PDF for Java 20.9 and were able to observe the similar issue that you have mentioned. Therefore, we have generated a ticket as PDFJAVA-39845 in our issue tracking system against it. We will further look into reasons behind this issue and keep you posted with the status of ticket resolution. Please be patient and spare us some time.
We are sorry for the inconvenience.
Thanks @asad.ali for the reply. can we have any idea by when we get any update?
@Odon_Schoofs
The issue has been recently logged in our issue management system under free support model and it will be investigated/resolved on first come first serve basis. We will surely inform you as soon as we have some certain news about its resolution. Please give us some time.
We apologize for the inconvenience.
Hi @asad.ali - did you get a chance to check on this subjected issue? kindly help us with this issue, this is preparing a priority blocker with merge feature with aspose for us…
@Odon_Schoofs
We are afraid that earlier logged issue is not yet resolved. We will surely update you as soon as we have some news about its fix and its investigation is completed. Furthermore, you may please check our priority support option where blocker and urgent issues are resolved on priority basis. We highly appreciate your patience in this matter. Please give us some time.
We are sorry for the inconvenience.
@asad.ali
We completely agree with you, we will wait for a few more time for the response on the fix.
but as soon as the issue resolution is found, please let us know- we are eagerly waiting for your response.
@Odon_Schoofs
We have recorded you concerns and will surely let you know as soon as we have some updates in this regard.
@asad.ali did we have any update on this issue ? by any chance aspose started with this?
@Odon_Schoofs
Regretfully, the ticket is not yet fully investigated due to other issues logged prior to it. We will surely provide an update within this forum thread once it is analyzed and fixed. We highly appreciate your patience and comprehension in this regard. Please spare us some time.
We are sorry for the inconvenience.
Sure @asad.ali. I will wait for your response.
Can you please help to give us a notification once it is picked up from Aspose?
@Odon_Schoofs
Sure, we will share updates with you as soon as the investigation of this ticket is completed and fix is available.
Hi,
What is the status of this investigation?
Where can I find this ticket?
Thanks,
Odon
This Topic is created by shahzadlatif using Email to Topic tool.
@Odon_Schoofs
We regret to inform you that the earlier logged ticket is not yet resolved. However, we have recorded your concerns and will surely inform you as soon as some certain progress is made towards issue resolution. Your patience and comprehension is greatly appreciated in this matter.
We apologize for your inconvenience.