Re: document_save question



Hello Jani

В Срд, 28/12/2005 в 21:56 +0200, Jani Monoses пишет:
> Hi Nickolay,

> Is is because of the pdf annotations feature  that currently the pdf
> backend
> uses a separate save function path? I assume it is historical too
> because saving is done 
> 
> by poppler in the PDF case , but why was it not switched to a gnome-
> vfs backed save_document?
> 

Yeah, it was planned to do that in the early stage of evince
development. This function doesn't use gnome-vfs just because nobody did
it. As you see, the whole this part is currently in very unstable and
early stage, but let's hope there will be a solution.

>         We have much more important problems like this one for
>         example:
>         
>         http://bugzilla.gnome.org/show_bug.cgi?id=318568
>         
>         Bug 318568 C doesn't handle %%Orientation: Landscape 
>         
> 
> I see that the ps backend correctly sets the orientation, it is only
> the frontend that does
> not take it into account right? I wonder if this was checked on
> document (or per page) load it could 
> mimic a user triggered rotation of the image? I am not (yet) familiar
> enough with the source to
> see if this is a feasible solution.
>  

That is the backend problem I think, but I am not sure since it needs
investigation. There is orientation parsing code in ev/ps/ps.c (grep for
"Orientation:") but somehow it doesn't affect anything. Compare how ggv
shows landscape document and how evince does. If document has landscape
orientation, evince should show landscape by default.

Oh, and I forgot, there is also problem with ps backend itself that may
be related and also just requires work - cleaning up ghostscript usage.
There are many output drivers ghostscript supports. Currently we use X11
output device - gv renders directly to offscreen pixmap. This is rather
ugly way to do things, just because it has problems with extraction of
pixbuf from this pixmap and problem with threading and so on. It would
be much better to use ghostscript's pixbuf output device or somehow
create cairo output device for ghostscript. It's also a very important
work that just waits for people to do it :) Also there are plans to
support ps in poppler.






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]