Creating an exact copy of a pdf file
How can I create an exact copy of a pdf file found on开发者_运维问答 my server using itextsharp and save it under a different name. I will basically end up with 2 files with the same content but different names. Any help would be greatly appreciated.
Thanks,
Just use File.Copy
. No need for itextsharp
.
File.Copy(pathToPdf, pathWithNewName);
Why do you need itextsharp for this? Why not just create a copy of the file?
精彩评论