Bug#451018: evince: Page offset for broken PDFs

Jörg Sommer joerg at alea.gnuu.de
Sat Jan 12 23:41:59 UTC 2008


Hello Sven,

Sven Arvidsson schrieb am Fri 11. Jan, 21:32 (+0100):
> On Mon, 2007-11-12 at 21:32 +0100, Jörg Sommer wrote:
> > some broken documents starts the numbering of pages on page six or
> > thelike, i.e. all page numbers have an offset of six. Reading anywhere in
> > the document a pagenumber you can't use it directly. You must add an
> > offset of six. It would be nice when evince could do this.
> > 
> > After telling evince in a small dialog the offset is 6 pages (or maybe -3
> > pages) it display right of the input field for the page number the
> > offset. Then entering a number, evince jumps to the page (number +
> > offset).
> 
> Are you sure these documents are broken, and it's not just because
> evince now uses page labels, as described by upstream:
> 
>         "Evince uses page labels when displaying pages and page numbers
>         when printing, label and number may actually differ, for example
>         if pages count starts from something like I, II or similar
>         non-numbers."

Only for clarification page labels are the numbers (or letters) written
at the bottom of the page and page numbers are the count of pages
starting to count at begin of document. Right?

Ideally evince can access the page labels so it can jump to the page with
the page label N when you enter N in the “select page” box in the toolbar.

But, what if evince can't access these page labels and they aren't
correspond to the page numbers (in broken documents)? Take for example
this document
ftp://ftp.software.ibm.com/ps/products/db2/info/vr8/pdf/letter/db2d3e80.pdf

Entering 7 in the “select page” box brings me a page in the toc with the
page label v. It's the page with the page number 7. The offset in this
document is 16. I have to add 16 to all page labels in the document to
get the page number. This task should be done by evince (after telling
him the offset).

This feature should also be available for PS documents.

Regards, Jörg.
-- 
Geld allein macht nicht glücklich, aber es ist besser in einem Taxi zu
weinen, als in der Straßenbahn.
	       	   	       			(Marcel Reich‐Ranicki)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-gnome-maintainers/attachments/20080113/97954865/attachment.pgp 


More information about the pkg-gnome-maintainers mailing list