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

Free Support Forum - aspose.com

Concatenated PDF file comes unreadable

I have 2 XLS files that I try to combine into a single PDF file. I first translate each of them into PDF with Aspose.Cells and then concatenate these PDFs with Aspose.Pdf.Kit. While each individual PDF comes out OK, the concatenated PDF comes out unreadable by Adobe Acrobat Reader.

Please find .xls files attached to this post.

I use the evaluation version of your software. Here is my code:

using System;
using System.Collections.Generic;
using System.Text.RegularExpressions;
using System.IO;

using Aspose.Cells;
using Aspose.Pdf.Kit;

namespace AsposeTest {
class Program {
static void Main(string[] args) {

string inputDir = @“C:\Documents and Settings\ghochman\Desktop\excel”;

List pdfFiles = new List();

foreach (string filePath in Directory.GetFiles(inputDir, “*.xls”)) {
Workbook wb = new Workbook();

string pdfPath = Regex.Replace(filePath, “xls$”, “pdf”, RegexOptions.IgnoreCase);


string joinPdf = inputDir + @"\join.pdf";

PdfFileEditor pfe = new PdfFileEditor();
pfe.Concatenate(pdfFiles.ToArray(), joinPdf);

Hi Gershon,

I have tested this issue using the latest hot fix (Aspose.Pdf.Kit for .NET, but couldn’t notice any problem. Can you please download the hot fix from this link and try it at your end?

I hope this is going to resolve your issue; however, if you still find any problem or have some more questions, please do let us know.

We’re sorry for the inconvenience.


Thanks for timely response. This fix definitely solves the reported issue.