Using the program

26 views
Skip to first unread message

Lucy

unread,
Dec 13, 2013, 10:01:21 AM12/13/13
to prsa...@googlegroups.com
Hi, 

probably being thick but how do I open the program? It installed ok as administrator but I can't work out how to use it. I'm using windows 7, python 2.7.6. Thanks.

Robert Schroll

unread,
Dec 16, 2013, 6:06:53 PM12/16/13
to Lucy, prsa...@googlegroups.com
The scripts should be installed in the Scripts folder of you Python
distribution (C:\Python27\Scripts, if you accepted to defaults). The
script with the graphical interface is 'prsam-tk'; double-clicking that
should launch it and give you dialogs like these:
https://github.com/rschroll/prsannots/wiki/Screenshot-Tour.

I'm sorry you don't get a Start Menu item and everything. I'm not a
Windows person, so you get stuck with my primitive solutions.

Let me know if you run into other problems,
Robert



Tiếu Thủy

unread,
Jun 23, 2014, 9:02:00 AM6/23/14
to prsa...@googlegroups.com, lucy...@gmail.com
Hello,

When I tried to double click to prsam-tk, it opens the File Opening ... dialog (i.e MS Windows asked me to choose the application to open this file). Basically, I do not see the extension .exe of this file. How can I run it?

Robert Schroll

unread,
Jun 23, 2014, 11:48:06 AM6/23/14
to Vinh Đặng, prsa...@googlegroups.com
On Mon, Jun 23, 2014 at 11:23 AM, Vinh Đặng <dqvi...@gmail.com>
wrote:
> Yeah I am sure.
>
> Actually when i tried to open prsam-tk in cygwin, the dialog appears.

Ok. Did you install from source or with the Windows installer?

Robert

> On Mon, Jun 23, 2014 at 4:58 PM, Robert Schroll <rsch...@gmail.com>
> wrote:
>> On Mon, Jun 23, 2014 at 9:02 AM, Tiếu Thủy <dqvi...@gmail.com>
>> wrote:
>>> When I tried to double click to prsam-tk, it opens the File Opening
>>> ... dialog (i.e MS Windows asked me to choose the application to
>>> open this file). Basically, I do not see the extension .exe of this
>>> file. How can I run it?
>>
>> Are you sure that's what's happening? The first time you run
>> prsam-tk, the first thing that opens is a file dialog asking you to
>> select the mount point (drive name) of the reader. That may be what
>> you're seeing. For more details, see the screenshot tour:
>> https://github.com/rschroll/prsannots/wiki/Screenshot-Tour
>>
>> Robert
>>
>>
>>
>

Dang Quang Vinh

unread,
Jun 23, 2014, 12:00:13 PM6/23/14
to Robert Schroll, prsa...@googlegroups.com
Hello

I built from source (Python 2.7, Windows 8 64 bits)
---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com

Dang Quang Vinh

unread,
Jun 23, 2014, 12:06:41 PM6/23/14
to Robert Schroll, prsa...@googlegroups.com
Hello

Actually I am trying to find a solution to make annotation and highlight text in PDF files, then I came up with your solution.

Could you please tell me is it possible to add comments and highlight text in PDF files by using your library?

Thank you very much,

-----Original Message-----
From: Robert Schroll [mailto:rsch...@gmail.com]
Sent: Monday, June 23, 2014 17:48
To: Vinh Đặng
Cc: prsa...@googlegroups.com
Subject: Re: [PRSAnnots] Using the program

Robert Schroll

unread,
Jun 23, 2014, 12:24:49 PM6/23/14
to Dang Quang Vinh, prsa...@googlegroups.com
On Mon, Jun 23, 2014 at 12:00 PM, Dang Quang Vinh <dqvi...@gmail.com>
wrote:
> Hello
>
> I built from source (Python 2.7, Windows 8 64 bits)

That makes sense. I'm not sure how Windows assigns handlers, but
whatever it does only gets done in the Windows installer. I think you
should be able to run the scripts with the pythonw executable
(C:\Python27\pythonw.exe, by default), but I haven't actually tried
that.

On Mon, Jun 23, 2014 at 12:06 PM, Dang Quang Vinh <dqvi...@gmail.com>
wrote:
> Hello
>
> Actually I am trying to find a solution to make annotation and
> highlight text in PDF files, then I came up with your solution.
>
> Could you please tell me is it possible to add comments and highlight
> text in PDF files by using your library?

Yes, sort of. The prsam and prsam-tk scripts are designed for getting
annotations off of Sony ereaders. They don't provide any way to create
those annotations. (But if you have an ereader, you can make them
there and then import them.) As part of this, the prsannots package
has a Python module called pdfannotation.py that can add annotations to
a PDF file. You can use this to add annotations to PDF files in your
own scripts. There's a short sample of its use at the bottom of
pdfannotation.py.

Robert



Reply all
Reply to author
Forward
0 new messages