Presentation Viewer on django

1,359 views
Skip to first unread message

Amr Abdel-wahab

unread,
May 7, 2012, 11:03:52 AM5/7/12
to Django users
Hi All,
I am new to Django I need a complete way where I can allow the user to
upload a ppt or pdf file and then in the template I show this file
embedded

Many Thanks,
Amr

Sandro Dutra

unread,
May 7, 2012, 12:34:36 PM5/7/12
to django...@googlegroups.com
About PDF's you can use any PDF API for Python like reportlab and see examples like this: https://docs.djangoproject.com/en/dev/howto/outputting-pdf/?from=olddocs

PPT is a proprietary and closed spec format from MS Powerpoint, probably you've to reverse engineering (or search for format spec) to write a view that can handle the information you want to extract.

2012/5/7 Amr Abdel-wahab <amr.mohamed...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.


Jani Tiainen

unread,
May 7, 2012, 1:36:09 PM5/7/12
to django...@googlegroups.com
There exists few tools that uses openoffice/libreoffice to convert those proprietary formats (doc, ppt, xls) so that you can show them on a web. 


--
Jani Tiainen

- Well planned is half done, and a half done has been sufficient before...

Amr Abdel-wahab

unread,
May 7, 2012, 6:34:51 PM5/7/12
to Django users
I don't want to generate a pdf/ppt or edit it I just need to upload it
in one page and show it in a frame in another page in the browser

Jani Tiainen

unread,
May 8, 2012, 4:42:13 AM5/8/12
to django...@googlegroups.com
To be able to do that you have to convert your presentation to something more generic that can be shown. Plain HTML
and Flash are two popular formats to do that. For a free solution you can use (headless) openoffice/liberoffice to automatically convert your ppt to html/flash and then
show it on your page (inside frame).

Another option is to make sure that you return correct mime-types for a (i)frame and then your users are required to have powerpoint installed on their machines to be able to show it in browser. And I think it only works for IE, not  for FF/Chrome/Safari...

On Tue, May 8, 2012 at 1:34 AM, Amr Abdel-wahab <amr.mohamed...@gmail.com> wrote:
I don't want to generate a pdf/ppt or edit it I just need to upload it
in one page and show it in a frame in another page in the browser
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

Reply all
Reply to author
Forward
0 new messages