textmark option is doing nothing

Bug #1500453 reported by Romano Giannetti
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Nautilus-PdfTools
New
Undecided
Unassigned

Bug Description

I tested both with "replace the current file" and without, but the resulting PDF is not textmarked.
Running nautilus in a terminal, I have the following error:

<__main__.NautilusVFSFile object at 0x7f7171974aa0 (NautilusVFSFile at 0x1cecc70)>
Traceback (most recent call last):
  File "/usr/share/nautilus-python/extensions/nautilus-pdf-tools.py", line 2162, in textmark
    text = text.get_text()
UnboundLocalError: local variable 'text' referenced before assignment

Revision history for this message
Romano Giannetti (romano-giannetti) wrote :

Seems that changing that line to

     text = wd.get_text()

fixes the issue.

Revision history for this message
Romano Giannetti (romano-giannetti) wrote :

Here is the patch....

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.