Skip to content

Have PDF with portrait mode as example of viewerjs.org (to show zooming tool) #111

Open

Description

@kossebau

Current PDF examples on viewerjs.org all are in landscape mode, so ViewerJS assumes slides and goes to automatic zoom handling (i.e. full page and not showing the Zoom control).

Results in people wondering if zooming is supported at all also for PDF.

Activity

  1. generic-user commented on Mar 18, 2015

    @generic-user

    Hi, is it possible to enable zoom-controls in landscape PDF's? I need this when displaying CAD -drawings, they are usually in landscape, and contain a lot of detail, so zooming is a must here.

    UPDATE:
    Ok, I found solution, just change this line to return false: PDFViewerPlugin.js LINE 270

     this.isSlideshow = function () {
            return false;
        };
    
  2. kossebau commented on Mar 18, 2015

    @kossebau
    ContributorAuthor

    @generic-user right, this hack should give you what you need, well found :)

    For the future there are plans to add a parameter mode or some more, so the UI of ViewerJS can be configured a little, as this automatic guessing about the nature of the PDF brings problems for too many, as your feedback showed by giving another good counter example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions