By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,709 Members | 2,155 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,709 IT Pros & Developers. It's quick & easy.

Convert to PDF. Unzip

P: n/a
I am going to build a webapp. Our users are not allowed to download certain
files, so I need to show files in a directory (.doc, .ppt, ???) and the user
can then convert them to PDF and download that PDF to his PC instead of the
original.

If it's a zip-archive they should be able to unzip the file, and then maybe
PDF the files in the zip-archive.

Any tips, suggestions, links to products etc are most welcome.

/jim
Mar 31 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Well, when you say that you show the files in a directory, do you mean you
literally allow the user to browse a folder on the website, or you provide
some UI that displays a list of files they can download.

On way to do this might be to render the hyperlinks so they point to a proxy
file rather than the actual file. For instance, the URL might look like
"mydomain.com/download.aspx?filename=something.pdf". This allows the file
download.aspx to do whatever processing it needs before sending it to the
browser. The special processing in this case would be to zip the contents.
You can check out SharpZip which is a free zip component for .NET. Once
zipped, then you can stream the bytes to the browser which will then prompt
the user to save the file and such.

"Jim Andersen" <no****@nospam.dk> wrote in message
news:eT**************@TK2MSFTNGP09.phx.gbl...
I am going to build a webapp. Our users are not allowed to download certain
files, so I need to show files in a directory (.doc, .ppt, ???) and the
user can then convert them to PDF and download that PDF to his PC instead
of the original.

If it's a zip-archive they should be able to unzip the file, and then
maybe PDF the files in the zip-archive.

Any tips, suggestions, links to products etc are most welcome.

/jim

Mar 31 '06 #2

P: n/a
Thansk for the feedback, Peter,

"Peter Rilling" <pe***@nospam.rilling.net> skrev i en meddelelse
news:%2****************@tk2msftngp13.phx.gbl...
Well, when you say that you show the files in a directory, do you mean you
literally allow the user to browse a folder on the website, or you provide
some UI that displays a list of files they can download.
I provide some UI. A listbox or something. The UI finds out who the user is,
maps that to some folder, and then displays (in the listbox) the filenames
etc. User selects a file, and then either a button called "mail this file to
me" or "unzip file" or "convert to pdf this file and then mail it to me".
You can check out SharpZip which is a free zip component for .NET.
Will do.

thx.
/jim
"Jim Andersen" <no****@nospam.dk> wrote in message
news:eT**************@TK2MSFTNGP09.phx.gbl...
I am going to build a webapp. Our users are not allowed to download
certain files, so I need to show files in a directory (.doc, .ppt, ???)
and the user can then convert them to PDF and download that PDF to his PC
instead of the original.

If it's a zip-archive they should be able to unzip the file, and then
maybe PDF the files in the zip-archive.

Any tips, suggestions, links to products etc are most welcome.

/jim


Mar 31 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.