带有密码的zip pdf文件 [英] zip pdf file with password

查看:85
本文介绍了带有密码的zip pdf文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿,

我要制作一个C#项目,即使用密码将pdf文件压缩为
吗?
如果可能的话?
如果是,那么如何?

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?

推荐答案

您是否要以编程方式创建zip文件?然后,我找到了一篇很棒的CP文章,专门针对此文章: C#Zip文件和/或文件夹 [ ^ ].

这列出了一些第三方库/框架: http://social.msdn.microsoft.com/forums/zh-CN/csharpgeneral/thread/477302fe-22b2-47b3-a895-a90f24f2ea61 [
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!


邮政编码为zip;压缩或不压缩PDF并没有很大的区别(尽管压缩率和最佳参数可能会有所不同).

请查看.NET的以下两个库:

开源DotNetZip库,
http://dotnetzip.codeplex.com/ [
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



这是代码链接,对您有帮助,
它还包含Visual Studio的工作示例解决方案.


http://www.eggheadcafe.com/tutorials/csharp/9ce6c242-c14c-4969-9251-af95e4cf320f/zip--unzip-folders-and-files-with-c.aspx [ http://dotnetzip.codeplex.com/wikipage?title=CS-Examples&referringTitle=Examples
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


这篇关于带有密码的zip pdf文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆