[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.python

Re: help displaying pdf thru client/server

exarkun

12/19/2007 8:08:00 PM

On Wed, 19 Dec 2007 13:50:10 -0600, Larry Bates <larry.bates@websafe.com> wrote:
>PaulS wrote:
>> Connecting to a Linux server from XP pc using a telnet program, I run a
>> report and convert it to a pdf document(using Reportlab) which I need to
>> display. The pdf is on the Linux server. Ideas how to display to the pc
>> would be appreciated. thanks, paul
>>
>>
>You will need webserver running (Apache?) on Linux server that shows a page that
>has a link to the pdf file that you created.
>
>Alternatively you can use SimpleHTTPServer module or Twisted to make a more
>stripped down webserver but it is probably easier just to use Apache.

Serving static files with Twisted is pretty easy:

twistd web --port abcd --path /foo/bar

I don't think any way you can set up Apache is easier than that. ;)

>
>You didn't say if the Linux server was local or not. If local, you could use
>SAMBA to create a SMB share and have the XP PC get to it that way. There are
>other ways, but these should get you started.
>
>-Larry

Jean-Paul