All the documentation I am finding shows how to concatenate pdf files as stream objects. Then the forums suggest it is more efficient to use filename strings. Is there a code sample somewhere showing this?
My issue is actually I need to be able to use an array of files but do not know how many there will be until after I loop through a dataset. I need to be able to create the arraylist dynamically and then feed that to the concatenate method.
Hello Eva,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
Thanks for considering Aspose.
Please visit the following link and you will find code snippet to concatenate Pdf files, using filenames as strings. Try using public bool Concatenate(string,string,string); method which takes files names as string.
According to your requirement, please try using the following code snippet, to traverse and read all the files in a particular folder, at runtime.
[C#]
DataTable PDFFiles = GetDataTable(); string[] fileNames = newstring[PDFFiles.Rows.Count]; for (int i = 0; i <= (PDFFiles.Rows.Count - 1); i++)