N0R7H / evoluspencil

Automatically exported from code.google.com/p/evoluspencil
0 stars 0 forks source link

Exporting page to PNG doesn't work #545

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Choose File > Export Page as PNG...
2. Type a file name
3. Save

Expected: The PNG file on the chosen directory.

Actual result: No further dialog.  No PNG file found.

I've tested with Debian Wheezy 64-bit and Ubuntu 12.04 LTS 64-bit, with both 
the extension and Deb version.  Pencil 2.0.3.

Original issue reported on code.google.com by CMP...@gmail.com on 20 Feb 2013 at 4:57

GoogleCodeExporter commented 9 years ago
Same problem for me

Original comment by travelli...@gmail.com on 27 Feb 2013 at 2:13

GoogleCodeExporter commented 9 years ago
Same, Pencil as Extention, version 2.0.3 on a MacOsX, PNG export broken

Original comment by bourz...@gmail.com on 6 Mar 2013 at 5:41

GoogleCodeExporter commented 9 years ago
me too , same problem.

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

Original comment by physics...@gmail.com on 10 Mar 2013 at 5:03

GoogleCodeExporter commented 9 years ago
( same problem in issue #526 )

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!

Original comment by physics...@gmail.com on 11 Mar 2013 at 9:44

GoogleCodeExporter commented 9 years ago
Hello, I edited the file 
/usr/share/pencil/content/pencil/common/svgRasterizer.js with this path but it 
don't work :(

[root@ecudesp ~]# cat /usr/share/pencil/content/pencil/common/svgRasterizer.js 
| grep "persist.saveURI"
    persist.saveURI(uri, null, null, null, null, localFile, null);

Original comment by bra...@gmail.com on 11 Mar 2013 at 11:02

GoogleCodeExporter commented 9 years ago
your suggest does not work for me too

Original comment by lorenzo....@gmail.com on 11 Mar 2013 at 11:10

GoogleCodeExporter commented 9 years ago
have you try to clear up cache like this:
 /usr/lib/xulrunner/xulrunner --app /usr/share/pencil/application.ini -purgecaches

Original comment by physics...@gmail.com on 11 Mar 2013 at 12:43

GoogleCodeExporter commented 9 years ago
Post #4 works for me.

I am still on Ubuntu 10.04 LTS (Pencil 2.0.3)

About the purging of cache, running this:
xulrunner --app /usr/share/pencil/application.ini -purgecachesError: Platform 
version 

gives me:
'1.9.2.28' is not compatible with
minVersion >= 1.9.8
maxVersion <= *

I can get it to start by modifying it to:
firefox --app /usr/share/pencil/application.ini -purgecaches

I have Mozilla Firefox 20.0 installed.

Original comment by muza...@gmail.com on 10 Apr 2013 at 9:52

GoogleCodeExporter commented 9 years ago
Post #4 works for me too on gentoo. Gentoo use firefox to launch the app (and 
not xul-runner) but you really need to purge the cache.

On gentoo is:
firefox --app /usr/share/evoluspencil/application.ini -purgecaches

Original comment by bonfante...@gmail.com on 7 May 2013 at 3:16

GoogleCodeExporter commented 9 years ago
The Mozilla docs give this warning about using null[1]:

Important: If you think that you should be passing null here, you are almost 
certainly wrong. null should be passed only when no plausible privacy context 
exists for the URI to be saved, which is an exceedingly rare corner case.

[1]: 
https://developer.mozilla.org/en-US/docs/XPCOM_Interface_Reference/nsIWebBrowser
Persist#saveURI%28%29

Original comment by kensing...@gentoo.org on 8 May 2013 at 12:45

GoogleCodeExporter commented 9 years ago
Further to my previous comment, I received confirmation that the suggested 
solution is safe.[1]

I also located an upstream bug about it.[2]

[1]: 
https://groups.google.com/d/msg/mozilla.dev.extensions/oIRT2WF-wT8/eKcCPcZznewJ
[2]: https://bugzilla.mozilla.org/show_bug.cgi?id=820522

Original comment by kensing...@gentoo.org on 13 Jun 2013 at 11:24