Concatenating Files without creating Temporary files

Is there anyway to append several PDF files together without creating temporary files ... I am using the Concatenate method but all the methods ask for an outFile and it cannot be the same as one of the input files.

This is the only way that I have found that works:

For Each sPath In sFiles

If IO.File.Exists(".\Concatenated.pdf") Then

If Not oConcat.Concatenate(".\Concatenated.pdf", sPath, ".\Temp.pdf") Then Stop

IO.File.Delete(".\Concatenated.pdf")

IO.File.Move(".\Temp.pdf", ".\Concatenated.pdf")

Else

IO.File.Copy(sPath, ".\Concatenated.pdf")

End If

Next

Hi,

You can use the overloaded Concatenate method which works on Streams. You can use memory streams with this method.

Thanks.

Adeel Ahmad
Support Developer
Aspose Changsha Team
http://www.aspose.com/Wiki/default.aspx/Aspose.Corporate/ContactChangsha.html