Showing posts with label ghostscript. Show all posts
Showing posts with label ghostscript. Show all posts

Tuesday, May 07, 2013

gs 9.07 can't render ps files on comma-locales [fixed]

Okular and other libspectre based PostScript viewers can't render some ps files when using a locale that uses , instead of . for decimals.

This happens because of a bug in ghostscript 9.07 that has now been fixed.

I'm not a huge fan of distro-patches myself, but in this case it may make sense to have one, so feel free to ping your distribution if you are a PostScript user.

Thursday, November 29, 2007

okular, libgs and crashes on Debian and derivatives

If you are trying postscript rendering on okular, be advised you need to have a recent version, the more recent the best. (around 8.60 or so should good enough)

Unless you use Debian or any of its derivatives that reuse their patches (like Ubuntu) because they are using a patch (06_libpaper_support.dpatch) that makes libgs crash when you reuse the gs instance.

Fortunately for the patch creator there is not any program i know that reused the gs instance, until now. Okular is reusing it and now we crash because of someone patching library code and not being prudent.

So next time you touch library code be prudent! And if you are not the main developer of it be more than prudent!

Monday, June 04, 2007

okular and PS files

I'm having some problems deciding what to do with PS files on okular, seems strange, eh, since PS is so old and unchanging one would think it's a solved problem. At the moment we are using libgs instead of calling the gs binary to render the files but there are some things i am not sure, here is the list of pros and cons of using libgs.

Pro:
* Using a library seems the right thing to my programmer mind
* We don't have to interact with gs using non-portable X properties like kghostview does
* We don't have to write the images to disk and then load them like ligature does

Con:
* Everyone (kghostview/evince/ligature) uses the gs binary
* libgs is not much widespread among distro packages, although that is improving and okular using it would probably "fix it"
* if libgs crashes it takes down the whole process
* libgs API is not what one would like it to be

So anyone out there that has the magic solution?

Of course, testers and constructive comments are more than welcome for the ghostscript okular backend, actually for all okular parts :-)