Viewing a PDF Document and rearranging pages

1,288 views
Skip to first unread message

Thomas Laes

unread,
Nov 18, 2013, 5:02:29 AM11/18/13
to kivy-...@googlegroups.com
Hi,

Is it possible to create with Python & Kivy a PDF Viewer that allows to rearrange the PDF document (e.g. changing order of the pages, rotate, and delete a single page within)?

Are there any examples / code pieces that could push me in the right direction?

Many thanks in advance.

Kind regards,
Thomas

Ben Rousch

unread,
Nov 18, 2013, 6:41:37 AM11/18/13
to kivy-...@googlegroups.com

You will need to use a native PDF viewer to see the actual PDF content. However you could use various Python PDF libraries for the re-arranging.

--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

ZenCODE

unread,
Nov 18, 2013, 7:46:32 AM11/18/13
to kivy-...@googlegroups.com
PyPDF (now PyPDF2) was recommended to me by a friend. Should do the job?

http://mstamy2.github.io/PyPDF2/

Cheers

Ben Rousch

unread,
Nov 18, 2013, 8:08:26 AM11/18/13
to kivy-...@googlegroups.com
That will do the splitting/merging/re-arranging, but it will not render the content to a Kivy widget. We would need a PDF widget, like HTML and RST.


--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
 Ben Rousch
   bro...@gmail.com
   http://clusterbleep.net/

ZenCODE

unread,
Nov 18, 2013, 8:52:07 AM11/18/13
to kivy-...@googlegroups.com
Quite right Ben. Sorry, I should have made it clearer that my response was an addition to yours and not a complete reply to the question. Easy to convey the wrong impression sometimes. Thanks for the catch ;-)

Cheers

Dominique Burnand

unread,
Nov 18, 2013, 9:04:28 AM11/18/13
to kivy-...@googlegroups.com
To display the PDF's in kivy:
I've used tito's POC in the past. Works quite well: https://github.com/kivy/kivy/issues/213
Also there is a branch named pdf on the kivy/kivy repository on github. But I never used that.

Thomas Laes

unread,
Nov 18, 2013, 1:37:34 PM11/18/13
to kivy-...@googlegroups.com
Hi Dominique,

Any plans to make soon more out of the POC?

Outside the consumer market, they are still pretty document oriented. Having a way to view, rotate, annotate, change ordering, and saving the PDF (or the instructions back to a server side tool) could open opportunities for more projects.

Eventually, the browsers itself might have such functionality, but it took the browsers already a long time until they were able to view a PDF without any plugins.

Kind regards,
Thomas
Reply all
Reply to author
Forward
0 new messages