Convert to PDF. Unzip

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jim Andersen

    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


  • Peter Rilling

    #2
    Re: Convert to PDF. Unzip

    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.c om/download.aspx?f ilename=somethi ng.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" <nospam@nospam. dk> wrote in message
    news:eTjM7HKVGH A.1868@TK2MSFTN GP09.phx.gbl...[color=blue]
    >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
    >[/color]


    Comment

    • Jim Andersen

      #3
      Re: Convert to PDF. Unzip

      Thansk for the feedback, Peter,

      "Peter Rilling" <peter@nospam.r illing.net> skrev i en meddelelse
      news:%23FUaUUKV GHA.2276@tk2msf tngp13.phx.gbl. ..[color=blue]
      > 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.[/color]

      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".
      [color=blue]
      > You can check out SharpZip which is a free zip component for .NET.[/color]

      Will do.

      thx.
      /jim
      [color=blue]
      > "Jim Andersen" <nospam@nospam. dk> wrote in message
      > news:eTjM7HKVGH A.1868@TK2MSFTN GP09.phx.gbl...[color=green]
      >>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
      >>[/color]
      >
      >[/color]


      Comment

      Working...