save as wmf error (NoneType in uniconvertor)

Bug #420979 reported by Shula
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Inkscape
Invalid
Undecided
Unassigned

Bug Description

windows xp sp2
Inkscape22040-090810.win32.exe

i opened the PDF file from http://www.dan.co.il/download/files/map3.pdf
and saved as SVN
then as WMF

the WMF converted saved a 0-length file, with the following error message:

UniConvertor failed:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Program Files\Inkscape\python\lib\site-packages\uniconvertor\__init__.py", line 78, in <module>
    saver(doc, sys.argv[2])
  File "C:\Program Files\Inkscape\python\lib\site-packages\uniconvertor\app\plugins\plugins.py", line 201, in __call__
    module.save(document, file, filename, options)
  File "C:\Program Files\Inkscape\python\lib\site-packages\uniconvertor\app/plugins/Filters/wmfsaver.py", line 461, in save
    saver.SaveDocument(document)
  File "C:\Program Files\Inkscape\python\lib\site-packages\uniconvertor\app/plugins/Filters/wmfsaver.py", line 403, in SaveDocument
    left, bottom, right, top = doc.BoundingRect()
  File "C:\Program Files\Inkscape\python\lib\site-packages\uniconvertor\app\Graphics\document.py", line 221, in BoundingRect
    rect = layer.bounding_rect
  File "C:\Program Files\Inkscape\python\lib\site-packages\uniconvertor\app\Graphics\base.py", line 352, in __getattr__
    getattr(self, method)()
  File "C:\Program Files\Inkscape\python\lib\site-packages\uniconvertor\app\Graphics\compound.py", line 174, in update_rects
    boxes = map(lambda o: o.coord_rect, self.objects)
  File "C:\Program Files\Inkscape\python\lib\site-packages\uniconvertor\app\Graphics\compound.py", line 174, in <lambda>
    boxes = map(lambda o: o.coord_rect, self.objects)
  File "C:\Program Files\Inkscape\python\lib\site-packages\uniconvertor\app\Graphics\base.py", line 352, in __getattr__
    getattr(self, method)()
  File "C:\Program Files\Inkscape\python\lib\site-packages\uniconvertor\app\Graphics\compound.py", line 174, in update_rects
    boxes = map(lambda o: o.coord_rect, self.objects)
  File "C:\Program Files\Inkscape\python\lib\site-packages\uniconvertor\app\Graphics\compound.py", line 174, in <lambda>
    boxes = map(lambda o: o.coord_rect, self.objects)
  File "C:\Program Files\Inkscape\python\lib\site-packages\uniconvertor\app\Graphics\base.py", line 352, in __getattr__
    getattr(self, method)()
  File "C:\Program Files\Inkscape\python\lib\site-packages\uniconvertor\app\Graphics\text.py", line 492, in update_rects
    rect = apply(Rect, a.font.TextBoundingBox(self.text, a.font_size, a))
AttributeError: 'NoneType' object has no attribute 'TextBoundingBox'

Revision history for this message
Alvin Penner (apenner) wrote :

confirmed on Windows XP.
however, unfortunately, this is a uniconvertor issue, not an Inkscape issue, see for example : http://sk1project.org/forum/viewthread.php?thread_id=19

If there is no objection, I will mark this as Invalid so that it gets taken off the list of things to do. If you feel this is an error, please feel free to re-open the report or contact the developer of uniconvertor at : http://sk1project.org/forum/viewforum.php?forum_id=6

Changed in inkscape:
status: New → Invalid
su_v (suv-lp)
tags: added: exporting uniconvertor wmf
Revision history for this message
Urop (urop) wrote :

I've reported this on the uniconvertor bug tracker: http://code.google.com/p/sk1/issues/detail?id=20

It would be helpful if Inkscape developers could pass on bugs encountered in Inkscape tools to the relevant bug-trackers so that they can get fixed.

Revision history for this message
tiger (tiger66) wrote :

I've got the same problem on Ubuntu 10.04

Revision history for this message
tiger (tiger66) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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