RavishaHesh / PDFJsAnnotations

Wrapper for PDF JS to add annotations
MIT License
322 stars 98 forks source link

How to implement Zoom #31

Closed unikuam closed 2 years ago

unikuam commented 3 years ago

I used this library in a React project. I am trying to implement zoom but it seems like that it is not possible through pdfjslib so I tried with zoom css but then annotation does not work properly. Any help will be appreciated. Thanks in advance.

RavishaHesh commented 3 years ago

sorry for the late reply, if you are still looking for a solution, rather than trying to zoom PDF try to zoom the canvas, each page get rendered into separate canvases. you should be able to scale the canvas

abhimanusharma commented 3 years ago

I like this idea, Can we change the value of scale variable to make zoom (+/-) dynamic?

RavishaHesh commented 3 years ago

Yes

RavishaHesh commented 2 years ago

Closing due to inactivity. Feel free to open again if you have any further questions