sK1 Project :: OpenSource Solutions for Prepress
View Thread
 Print Thread
Error if convert SVG to WMF
xintrea
#1 Print Post
Posted on 17-08-2010 10:52
Member

Posts: 3
Joined: 17.08.10

Hi.


Uniconvertor 1.1.6pre from SVN, revision 291.

In process of convert SVG to WMF, uniconverter drop with error:

Download source  Code

Traceback (most recent call last):
  File "/usr/bin/uniconvertor", line 13, in <module>
    uniconv_run()
  File "/usr/lib/python2.5/site-packages/uniconvertor/__init__.py", line 100, in uniconv_run
    saver(doc, output_file)
  File "/usr/lib/python2.5/site-packages/sk1libs/filters/__init__.py", line 212, in __call__
    module.save(document, file, filename, options)
  File "/usr/lib/python2.5/site-packages/sk1libs/filters/export/wmfsaver.py", line 461, in save
    saver.SaveDocument(document)
  File "/usr/lib/python2.5/site-packages/sk1libs/filters/export/wmfsaver.py", line 448, in SaveDocument
    self.SaveLayers(doc.Layers())
  File "/usr/lib/python2.5/site-packages/sk1libs/filters/export/wmfsaver.py", line 366, in SaveLayers
    self.SaveObjects(layer.GetObjects())
  File "/usr/lib/python2.5/site-packages/sk1libs/filters/export/wmfsaver.py", line 353, in SaveObjects
    self.SaveObjects(object.GetObjects())
  File "/usr/lib/python2.5/site-packages/sk1libs/filters/export/wmfsaver.py", line 353, in SaveObjects
    self.SaveObjects(object.GetObjects())
  File "/usr/lib/python2.5/site-packages/sk1libs/filters/export/wmfsaver.py", line 361, in SaveObjects
    self.PolyBezier(object.Paths(), object.Properties())
  File "/usr/lib/python2.5/site-packages/sk1libs/filters/export/wmfsaver.py", line 264, in PolyBezier
    self.FillStyle(Properties)
  File "/usr/lib/python2.5/site-packages/sk1libs/filters/export/wmfsaver.py", line 234, in FillStyle
    self.CreateSelectBrush(Props.fill_pattern.gradient.Sample(3)[1])
  File "/usr/lib/python2.5/site-packages/uniconvertor/app/Graphics/gradient.py", line 91, in Sample
    pos2, color2 = colors[cur]
IndexError: list index out of range



 
igor
#2 Print Post
Posted on 23-08-2010 06:36
User Avatar

Super Administrator

Posts: 220
Joined: 09.02.09

Hi!

Thank you for reported issue.
Can you provide a sample file to reproduce an error?
Regards,

Igor Novikov
sK1 Project
 
Jump to Forum: