开发者

Creating an exact copy of a pdf file

开发者 https://www.devze.com 2023-03-11 10:10 出处:网络
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 diffe

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?

0

精彩评论

暂无评论...
验证码 换一张
取 消