Hi,
Has there been any change in the way multiple PDFs are concatenated into a single one in the recent Aspose PDF libraries? I just updated my library to aspose.pdf-10.6.2.jar and it doesnt seem to be working.
My code below,
PdfFileEditor pdfEditor = new PdfFileEditor();
com.aspose.pdf.Document targetDoc = new com.aspose.pdf.Document();
com.aspose.pdf.Document[] docs = new com.aspose.pdf.Document[frameCounter];
for(int i=0; i<frameCounter; i++)
{
com.aspose.pdf.Document attachmentDoc = new com.aspose.pdf.Document(<>);
docs[i] = attachmentDoc;
}
pdfEditor.concatenate(docs, targetDoc); //concatenate all tiff pdf into the attachment pdf document
targetDoc.save(attachmentDocName);
I was looking at the examples and I found this but only for 2 PDFs.
http://www.aspose.com/docs/display/pdfjava/Concatenate+PDF+Files
Please help.
Thanks,
Wasim
Itsak26:
Has there been any change in the way multiple PDFs are concatenated into a single one in the recent Aspose PDF libraries? I just updated my library to aspose.pdf-10.6.2.jar and it doesnt seem to be working.
My code below,
PdfFileEditor pdfEditor = new PdfFileEditor();
com.aspose.pdf.Document targetDoc = new com.aspose.pdf.Document();
com.aspose.pdf.Document[] docs = new com.aspose.pdf.Document[frameCounter];
for(int i=0; i<frameCounter; i++)
{
com.aspose.pdf.Document attachmentDoc = new com.aspose.pdf.Document(<>);
docs[i] = attachmentDoc;
}
pdfEditor.concatenate(docs, targetDoc); //concatenate all tiff pdf into the attachment pdf document
targetDoc.save(attachmentDocName);
I was looking at the examples and I found this but only for 2 PDFs.
http://www.aspose.com/docs/display/pdfjava/Concatenate+PDF+Files
Itsak26:
I was looking at the examples and I found this but only for 2 PDFs.
http://www.aspose.com/docs/display/pdfjava/Concatenate+PDF+Files
com.aspose.pdf.Document targetDoc = new com.aspose.pdf.Document();
com.aspose.pdf.Document[] docs = new com.aspose.pdf.Document[4];
for(int i=0; i<4; i++)
{
com.aspose.pdf.Document attachmentDoc = new com.aspose.pdf.Document(myDir+"HelloWorld.pdf");
docs[i]=attachmentDoc;
}
for(int j=0; j<docs.length; j++)
{
// Add the pages of the source documents to the target document
targetDoc.getPages().add(docs[j].getPages());
}
targetDoc.save(myDir+"merged.pdf");
Please feel free to contact us for any further assistance.
Best Regards,
Hi Tilal,
The issue seems to be with licensing. After updating the library, license gets invalid. I have raised that in the forum and being looked at.
Will try once licensing issue is resolved and let you know the outcome.
Just curious, in which timezone does the Aspose support team work?
Thanks,
Wasim
Hi Wasim,
Hi Wasim,Itsak26:The issue seems to be with licensing. After updating the library, license gets invalid. I have raised that in the forum and being looked at.
Will try once licensing issue is resolved and let you know the outcome.
The support team works in different times zones but most of the team is available from 8:00 (Greenwich Meantime + 5) till 23:00 (GMT + 5).Itsak26:Just curious, in which timezone does the Aspose support team work?