Export to GitHub

evoluspencil - issue #526

Export to PNG don't work


Posted on Jan 15, 2013 by Helpful Monkey

What steps will reproduce the problem? 1. create a new document 2. place something on the new page 3. file - export page as png - choose folder - save

What is the expected output? What do you see instead?

expected - PNG file instead - only svg file, but not complete (for example: text in rectangles missing and background too)

What version of the product are you using? On what operating system?

Evolus Pencil v.2.0.3 OS - Ubuntu 12.04.1 LTS Firefox - 18.0

Please provide any additional information below.

export worked sometime ago (2-3 weeks). i CAN export to pdf, but not to ODT ("Progress..." window hang) :(

Comment #1

Posted on Jan 22, 2013 by Happy Lion

same problem on version 2.0.4, running on Fedora 17 Export to pdf works. Export to: odt, png, single web page doesn't - progress window hangs. Everything worked fine a few weeks ago.

Comment #2

Posted on Feb 11, 2013 by Quick Kangaroo

same problem. And the pdf export is not complet. The table/Tree is not exportable.

Using Ubuntu 12.04 x86-64.

Comment #3

Posted on Mar 10, 2013 by Grumpy Dog

Fedora 17 , version 2.0.4 , xulrunner:Mozilla XULRunner 18.0.2 - 20130206130216 Fedora 18 , version 2.0.4 , xulrunner:Mozilla XULRunner 19.0 -20130218162742

can't export document to png on upon two environment.

A: --> Export Page as PNG --> choose a file --> save --> then nothing changes. B: --> Export Document --> Rasterized graphics (PNG files) --> select any "Pages" to export --> Next --> Browse to select a destination --> finish --> Progress bar doesn't change.

Comment #4

Posted on Mar 11, 2013 by Grumpy Dog

Hello , It seems that i have solved this problem. the reason why can't save the png because the nsIWebBrowserPersist require 7 parameters on some xulrunner.

so,correct it is easy : find 264 line in svgRasterizer.js , change the following line persist.saveURI(uri, null, null, null, null, localFile); to persist.saveURI(uri, null, null, null, null, localFile , null );

restart pencil , it works!

Comment #5

Posted on Mar 11, 2013 by Happy Rabbit

your suggest does not work for me.

Comment #6

Posted on Mar 11, 2013 by Grumpy Dog

have you try this: /usr/lib/xulrunner/xulrunner --app /usr/share/pencil/application.ini -purgecaches

Comment #7

Posted on Mar 11, 2013 by Grumpy Bear

Working for me :-) thank !

Comment #8

Posted on Mar 11, 2013 by Grumpy Bear

Updated : https://bugzilla.redhat.com/show_bug.cgi?id=920043 and switched priority to high.

Comment #9

Posted on Apr 16, 2013 by Happy Dog

This suggest doesn't work for me either. I tried the purge, but maybe there is something wrong... "Command not found"

:(

Comment #10

Posted on Apr 30, 2013 by Happy Ox

Comment deleted

Comment #11

Posted on Apr 30, 2013 by Happy Ox

Hi! I had the same the issue after upgrading my archlinux system.

First I was not able to open evolus-pencil because xulrunner-bin was not found. xulrunner-bin belongs to the version 14.*. So, I changed the execution of that file to the newest version of it wich is located in /usr/lib/xulrunner-devel-20.0/bin/xulrunner --app "$APP_INI", in /usr/lib/evolus-pencil-svn/evolus-pencil.sh.

Second issue arises after this fix, when Gecko attempts to load that version of xulrunner, so I changed to MaxVersion=20.* in /usr/lib/evolus-pencil-svn/app/application.ini.

At this point evolus-pencil is running fine.

Finally when I attempted to export to any different format, evolus-pencil fails as this thread reports the issue. It was fixed thank's to the suggestion #4.

find 264 line in svgRasterizer.js , change the following line persist.saveURI(uri, null, null, null, null, localFile); to persist.saveURI(uri, null, null, null, null, localFile , null );

Thank's :)

Comment #12

Posted on Aug 10, 2013 by Swift Kangaroo

This bug has been around forever. It's basically a critical defect, there's not much point in having a diagram you can't export. Any progress?

Comment #13

Posted on Aug 10, 2013 by Swift Kangaroo

Also, FYI the svgRasterizer.js fix does not work for me on Ubuntu 13.04; otherwise all the symptoms are as reported.

Comment #14

Posted on Aug 14, 2013 by Helpful Elephant

same problem fedora 19 firefox 21 export pdf works,can not get a png file

Comment #15

Posted on Aug 19, 2013 by Swift Dog

Experiencing this problem too, for several months. No error message.

Here's my environment: * pencil 2.0.4 (distribution package) * Fedora release 19 * Linux 3.10.4-300.fc19.x86_64 * Mozilla XULRunner 23.0 - 20130805131520 * Firefox 23

Everything is working well on windows.

Fix suggested on comment http://code.google.com/p/evoluspencil/issues/detail?id=526#c6 did not work.

Kind regards

Comment #16

Posted on Aug 19, 2013 by Swift Dog

SVG export is working well too.

Comment #17

Posted on Sep 18, 2013 by Swift Bird

For those with the "Command not found" problem you can do: /usr/bin/firefox --app "/usr/share/pencil/application.ini" -purgecaches instead.

That and change line 264 line in /usr/share/pencil/content/pencil/common/svgRasterizer.js from persist.saveURI(uri, null, null, null, null, localFile); to persist.saveURI(uri, null, null, null, null, localFile , null ); did the trick for me.

I use Ubuntu 12.04 and I'm using pencil v2.0.3.

Comment #18

Posted on Sep 18, 2013 by Helpful Ox

Thanx to #17 - this does the trick!!!

:-)

Comment #19

Posted on Mar 27, 2015 by Helpful Hippo

This is working over at https://github.com/prikhi/pencil

There's no packaged builds yet though - look for those on the Releases page once v2.0.8 hits.

Status: New

Labels:
Type-Defect Priority-Medium