Click here to Skip to main content
15,860,972 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hey,

i ant a make a c# project, which is zip a pdf file wiht a password?
if it is possible?
if yes, then how?
Posted

Are you trying to programmatically create zip files? Then, I found a great CP article just for that: C# Zip Files and/or Folders[^].

This lists some third party libraries/frameworks: http://social.msdn.microsoft.com/forums/en-US/csharpgeneral/thread/477302fe-22b2-47b3-a895-a90f24f2ea61[^].

Good luck!
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 28-Feb-12 0:36am    
Useful references, my 5.
--SA
Zip is zip; there is no big difference what to zip, PDF or not (compression rates and optimal parameters may vary though).

Please look at these two libraries for .NET:

Open-Source DotNetZip library, http://dotnetzip.codeplex.com/[^].

A .NET Wrapper for the famous 7-zip is offered in this CodeProject article, "Best C# article of June 2008" prize winner: C# (.NET) Interface for 7-Zip Archive DLLs[^].

—SA
 
Share this answer
 
Hi,
Here is a link with code, which will help you,
it also contains a working sample solution of visual studio.


http://www.eggheadcafe.com/tutorials/csharp/9ce6c242-c14c-4969-9251-af95e4cf320f/zip--unzip-folders-and-files-with-c.aspx[^]



Or you can use this free library to do so:
http://dotnetzip.codeplex.com/wikipage?title=CS-Examples&referringTitle=Examples
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900