← Back to team overview

qpdfview team mailing list archive

Re: [Question #678138]: Only advance one page in Two-Page-Mode

 

Question #678138 on qpdfview changed:
https://answers.launchpad.net/qpdfview/+question/678138

    Status: Open => Answered

Adam Reichold proposed the following answer:
Hello Tim,

I think you description of how "prepareLayout" works is somewhat
accurate. IMHO, the problem is that DocumentView::prepareView assumes
that for a given current page, the pages between
DocumentLayout::leftIndex and DocumentLayout::rightIndex are visible and
that these intervals do not overlap, i.e. any given page is visible for
exactly one current page. Hence what you describe will be difficult to
accomplish without increasing the separate of concerns between
DocumentLayout and DocumentView further. (DocumetLayout is a post-facto
refactoring to remove some but not all layout-related code from
DocumentView, but it is by no means a principled approach to the
problem.)

While it would be rather welcome if someone tried to this shortcoming of
the qpdfview code base, your immediate use case might be better served
if you just transform the PDF in question to produce a version with
duplicate pages like 1, 2, 2, 3, 3, ... so that a two-page layout would
look like 1 2|2 3|3 4|...?

Best regards,
Adam.

-- 
You received this question notification because your team qpdfview is an
answer contact for qpdfview.