help displaying pdf thru client/server

Jean-Paul Calderone exarkun at divmod.com
Wed Dec 19 15:08:14 EST 2007


On Wed, 19 Dec 2007 13:50:10 -0600, Larry Bates <larry.bates at 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



More information about the Python-list mailing list