Showing posts with label ps. Show all posts
Showing posts with label ps. Show all posts

Tuesday, August 14, 2007

Weird PS files needed

As you may know, i'm currently working on adding PS support to okular. It's currently more or less working, the problem is most files i have around here are result of a few programs "printing" to PS, so most of them are basically "the same in their internals" and thus are quite unuseful for testing. What i need are PS files with different page sizes, different page rotations, etc. the weirder the better. If you have or know where to get some of this kind of files, please mail me at aacid@kde.org with the details.

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 :-)

Monday, April 09, 2007

Printing hack in KPDF 0.5.7

KPDF is usually good enough at printing documents, but sometimes it fails completely.

And there's nothing worse that having a document you need to print and not beign able to do it. To fix that situation i just added a small hack to KPDF version that will be released with KDE 3.5.7.

In that version there will be a PDF Options tab with a Force rasterization checkmark that will let you force KPDF to render each PDF page to an image and print the image instead convert PDF commands into PS commands. This is bad as you lose the vector side of having a PS, but in cases KPDF did show the document correctly, but printing failed, i think it will be a welcome addition.