Click here to Skip to main content
13,355,018 members (55,772 online)
Rate this:
 
Please Sign up or sign in to vote.
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 27-Feb-12 19:00pm
sarita2535
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 3

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!
  Permalink  
Comments
SAKryukov 28-Feb-12 0:36am
   
Useful references, my 5.
--SA
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

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
  Permalink  
v2

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy |
Web04 | 2.8.180111.1 | Last Updated 28 Feb 2012
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100