Ng2-pdf-viewer: Zoom in document

Created on 29 Jan 2018  路  3Comments  路  Source: VadimDez/ng2-pdf-viewer

Hello,

Your plugin is very great, but I have a problem with it in my project. I can't pinch to zoom in document when display it... I test it on Android and iOS 11.

Here is my call :

<pdf-viewer *ngIf="!error"
                [src]="{
                  url: url,
                  httpHeaders: httpHeaders
                }"
                [original-size]="false"
                [render-text]="true"
                style="display: block;"
                (after-load-complete)="onLoaded($event)"
                (error)="onError($event)"></pdf-viewer>

Thank you very much !

Most helpful comment

Zoom does not seem to always work in combination with [original-size]="false". Set [original-size]="true" and try again.

All 3 comments

Possibly duplicate of #22

Zoom does not seem to always work in combination with [original-size]="false". Set [original-size]="true" and try again.

Worked with [original-size]="false" when a display: block; class was applied to the pdf-viewer element.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

GarciaFreelancer picture GarciaFreelancer  路  6Comments

Gianlu82b19 picture Gianlu82b19  路  4Comments

RahmatAliMalik5 picture RahmatAliMalik5  路  5Comments

sabarinathancs picture sabarinathancs  路  4Comments

kevinariasf picture kevinariasf  路  6Comments