473,472 Members | 2,264 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Convert to PDF. Unzip

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
2 2195
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

19
by: Oliver Eichler | last post by:
Hi, I can find examples to convert lists into a list of tuples like: >>> map(None,,) but how is it done vice versa? Oliver
7
by: Chris | last post by:
Hi Where can I find info on unzipping file with VB.NET. I need to unzip a winzip file with my application Thanks
1
by: Jean Christophe Avard | last post by:
Hi! Finally I figure out what was wrong... "objZipEntry.size = strmFile" I wasn't giving the right file length... But now, I have issue with the unzip function... I can't unzip it, the unzip function...
3
by: SDRoy | last post by:
Hello Can someone tell me how I can unzip a .zip file in C#. The zip file is already there and I just need to unzip..not zip and unzip. -- Thanks, SDRoy
4
by: DataSmash | last post by:
I need to unzip all zip file(s) in the current directory into their own subdirectories. The zip file name(s) always start with the string "usa" and end with ".zip". The code below will make the...
0
by: Rocky Zhou | last post by:
python unzip At first, I tried to use 'os.popen3("unzip ...") like this: fin, fout, ferr = os.popen3("unzip -o -d %s %s" % (dest, zipfile)) strerr = ferr.read() # This makes the program hanging...
5
by: =?Utf-8?B?anVsaW8=?= | last post by:
Hi, I write a program to unzip a Tar file generated on a Unix environment file using SharpZipLib, but returns a error "Header checksum is invalid" when execute the program. This error appears...
1
by: olddocks | last post by:
I want to upload a zip file and then extract/unzip it. I am accomplishing this with php exec command. I am calling unzip from php exec command within a php script and it is not extracting files. why?...
2
by: somsub | last post by:
Hi all, Here is my samle code use strict ; use warnings ; use IO::Uncompress::Unzip ; When I compiled this three lines of code in win32 I got error like below.
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.